Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 27.9 KB

Shipment.md

File metadata and controls

26 lines (22 loc) · 27.9 KB

Shipment

Shipment represents the parcel as retrieved from the database

Fields

Field Type Required Description Example
Extra ShipmentExtra An object holding optional extra services to be requested.
Metadata string ✔️ A string of up to 100 characters that can be filled with any additional information you want to attach to the object. Customer ID 123456
ShipmentDate string Date the shipment will be tendered to the carrier. Must be in the format 2014-01-18T00:35:03.463Z.
Defaults to current date and time if no value is provided. Please note that some carriers require this value to
be in the future, on a working day, or similar.
2021-03-22T12:00:00Z
AddressFrom Address ✔️ Address object of the sender / seller. Will be returned expanded by default.
AddressReturn Address ID of the Address object where the shipment will be sent back to if it is not delivered
(Only available for UPS, USPS, and Fedex shipments).

If this field is not set, your shipments will be returned to the address_from.
AddressTo Address ✔️ Address object of the recipient / buyer. Will be returned expanded by default.
CarrierAccounts List<string> ✔️ An array of object_ids of the carrier account objects to be used for getting shipping rates for this shipment.
If no carrier account object_ids are set in this field, Shippo will attempt to generate rates using all the
carrier accounts that have the active field set.
CustomsDeclaration CustomsDeclaration N/A
Messages List<ResponseMessage> ✔️ N/A
ObjectCreated DateTime ✔️ Date and time of Shipment creation.
ObjectId string ✔️ Unique identifier of the given Shipment object. adcfdddf8ec64b84ad22772bce3ea37a
ObjectOwner string ✔️ Username of the user who created the Shipment object. pp@gmail.com
ObjectUpdated DateTime ✔️ Date and time of last Shipment update.
Parcels List<Parcel> ✔️ List of Parcel objects to be shipped.
Rates List<Rate> ✔️ An array with all available rates. If async has been set to false in the request,
this will be populated with all available rates in the response. Otherwise rates will be created
asynchronously and this array will initially be empty.
Status ShipmentStatus ✔️ Waiting shipments have been successfully submitted but not yet been processed.
Queued shipments are currently being processed.
Success shipments have been processed successfully, meaning that rate generation has concluded.
Error does not occur currently and is reserved for future use.
QUEUED
Test bool Indicates whether the object has been created in test mode.