- the “from” and “to” addresses
- the parcel details
- extra parameters
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 |
| 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. See carrier account response sample. 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 |
|---|---|
| signature_confirmation | Sets if signature confirmation is required for this shipment. Possible values true or false for one of such fields: - signature_confirmation - Is_over_21_required |
| alcohol | Need to fill if shipment contains alcohol: “alcohol”: “contains_alcohol”: false |
Response Code
201Examples
Request Sample for a shipment
cURL