Skip to content

Instantly share code, notes, and snippets.

@ccovey
Created June 30, 2016 23:39
Show Gist options
  • Save ccovey/413d2ce03dc9b90a0cb7dca1134659ef to your computer and use it in GitHub Desktop.
Save ccovey/413d2ce03dc9b90a0cb7dca1134659ef to your computer and use it in GitHub Desktop.

#Payload:

array:6 [
  "is_return" => true
  "carrier_accounts" => array:1 [
    0 => "ca_d8a5da68b6104162a57bb5042b4dbfa5"
  ]
  "from_address" => array:1 [
    "id" => "adr_2cd10f003f1f4ec79f4ea4cf407f07d7"
  ]
  "to_address" => array:1 [
    "id" => "adr_812e9948d4674bf7acdcebbae1c67df6"
  ]
  "parcel" => array:2 [
    "weight" => 16.0
    "predefined_package" => null
  ]
  "options" => array:3 [
    "print_custom_1" => "Order Id 101949124"
    "label_format" => "PDF"
    "dhlgm_return_location" => "5330799"
  ]
]

Example Rate for Shipment ID shp_9d5f3b43c7cc4de6a92c7b6e4acfa0a7

#_values: array:19 [
      "id" => "rate_eec7ca3266ef45a6963df1affaa761c9"
      "object" => "Rate"
      "created_at" => "2016-06-30T23:35:46Z"
      "updated_at" => "2016-06-30T23:35:46Z"
      "mode" => "production"
      "service" => "ParcelsExpeditedDomestic"
      "carrier" => "DHLGlobalMail"
      "rate" => "0.01"
      "currency" => "USD"
      "retail_rate" => null
      "retail_currency" => null
      "list_rate" => null
      "list_currency" => null
      "delivery_days" => null
      "delivery_date" => null
      "delivery_date_guaranteed" => null
      "est_delivery_days" => null
      "shipment_id" => "shp_9d5f3b43c7cc4de6a92c7b6e4acfa0a7"
      "carrier_account_id" => "ca_d8a5da68b6104162a57bb5042b4dbfa5"
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment