Shipment
Main shipment object containing all necessary data to create a shipment. Either parcel or parcels must be provided, but not both.
- referenceType: string | null
An optional field that may be used in place of id in other API endpoints
- fromType:
_address requiredProperties: 11Can be specified by ID or attributes to create a new one, and be verified inline. See Create an Address
- toType:
_address requiredProperties: 11Can be specified by ID or attributes to create a new one, and be verified inline. See Create an Address
- returnType: nullable
_address Properties: 11The shipper's address, defaults to from_address
- buyerType: nullable
_address Properties: 11The buyer's address, defaults to to_address
- parcelType: nullableProperties: 7
The dimensions and weight of the package. Business rule:
parcelandparcelsMUST NOT both be present. - parcelsType:Properties: 7
Array of parcels. Business rule:
parcelandparcelsMUST NOT both be present. - customsType: nullable
_info Properties: 10Information for processing the package through international customs
- optionsType: nullableProperties: 35
Additional shipment options. If
carrier_accountsandserviceare set andoptions.create_and_buyis not explicitly false, it is treated as true. - isType: boolean | null
_return Set true to create as a return shipment
- carrierType: string | null
Carrier to use for the shipment. If omitted along with carrier_accounts, all carriers are considered
- carrierType: array of string | null
_accounts List of CarrierAccount IDs
- serviceType: string | null
Requested service level (e.g., Priority, Express, GroundAdvantage)