- the “from” and “to” addresses
- the parcel details
- extra parameters
- customs declaration, that are required for international shipments
HTTP Method
POSTURL
Request Payload
| Parameter | Description |
|---|---|
| address_from* | Refer to the Address object |
| address_to* | Refer to the Address object |
| parcels* | Refer to the Parcel object |
| extra | Refer to the Extra object |
| customs_declaration* | Refer to the Customs declaration object. Required for international shipments |
| carrier_accounts | An array of object_ids of the carrier account objects to be used for getting shipping rates for this shipment. This carrier account object_id is available when an account is created. 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 to true |
| async | If 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 |
Objects
Address
| Parameter | Description |
|---|---|
| name* | First and Last name of the addressee |
| company* | Company Name |
| street1* | First street line, 35 character limit. Usually street number and street name |
| street_no | Street number of the addressed building. This field can be included in street1 |
| street2 | Second street line, 35 character limit |
| city* | Name of a city |
| zip* | Postal code of an address |
| state* | State/Province values are required for shipments from/to the US. |
| country* | ISO 2 country code |
| phone | Phone number of the addressee |
| E-mail address of the contact person, RFC3696/5321-compliant |
Parcel
| Parameter | Description |
|---|---|
| length* | Length of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted |
| width* | Width of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted |
| height* | Height of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted |
| distance_unit* | “cm”, “in”, “ft”, “mm”, “m”, “yd” |
| weight* | Weight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted |
| mass_unit* | “g”, “oz”, “lb”, “kg” |
Extra
| Parameter | Description |
|---|---|
| location_external_id | Should be set when a Pickup point ID is required. For example for colissimo_pick_up_point service level |
| signature_confirmation | Sets if signature confirmation is required for this shipment. Will be used to determine the correct service level. Optional |
| reference_1 | Optional text to be printed on the shipping label. Up to 50 characters |
Customs Declaration
| Parameter | Description |
|---|---|
| certify* | Boolean. Expresses that the certify_signer has provided all information of this customs declaration truthfully |
| certify_signer* | Name of the person who created the customs declaration and is responsible for the validity of all information provided |
| items* | Refer Items object |
| invoiced_charges | Refer Invoiced charges object. An object holding optional invoiced charges data to be printed on the Commercial Invoice. Mandatory for international shipping |
| incoterm | The incoterm reference of the shipment. For International Overseas shipment we can not use DDP. For International Shipment DDP, DDU, DAP, Empty can be used |
| contents_type* | Type of goods of the shipment |
| contents_explanation | This field is mandatory for contents_type = OTHER |
| hs_code | The HS (Harmonised System) or product code is used by customs officers worldwide to categorise products |
| invoice | Invoice reference of the shipment |
Items
| Parameter | Description |
|---|---|
| description | Text description of your item. |
| quantity* | Quantity of this item in the shipment you send. Must be greater than 0 |
| net_weight* | Total weight of this item, i.e. quantity * weight per item |
| mass_unit* | The unit used for net_weight |
| value_amount* | Total value of this item, i.e. quantity * value per item |
| value_currency* | Currency in which value is specified |
| origin_country* | ISO 2 country code |
Invoiced charges
| Parameter | Description |
|---|---|
| currency* | Currency for the invoiced charges amounts incurred on the end consumer. Needs to be in euros. Check shipment/customs_declarations/invoiced_charges/currency, if the currency is other than euros then convert to EUR |
| total_shipping* | Total shipping paid by the buyer |
Response Code
201Examples
Request Sample for a Domestic shipment
cURL
Response Sample for a Domestic shipment
Request sample for an international shipment
cURL