First-time users and those looking for specific integration tutorials,
see our full API documentation and guides.
Download the API Specification yaml file
For example, the /addresses/
resource is reachable at https://api.goshippo.com/addresses/
.
In order to authenticate properly, please put Authorization: ShippoToken <token>
in your header. You can find your token on the
Shippo API settings page.
For more information about authentication and test mode, please visit our Authentication guide.
The API is available via Secure Socket Layer (SSL) only. All requests to the Shippo API must use TLS version 1.2 or higher.
Response data also formatted as JSON object. You can specify how many results per page are to be returned. For instance,
/rates/?results=25
will return up to 25 results.
Only the Carrier Accounts object can be updated via PUT requests. All other objects such as Addresses, Parcels, Shipments, Rates, Transactions, Refunds, Customs Items, and Customs Declarations are disposable. This means that once you have created an object, you cannot change it. Instead, create a new one with the desired values.
This reference guide supports the Shippo API version: 2018-02-08
.
To see reference guides for older API versions, see our legacy reference guide. For more information about Shippo API versions, see our API versions guide.
Addresses are the locations a parcel is being shipped from and to. They represent company and residential places. Among other things, you can use address objects to create shipments, calculate shipping rates, and purchase shipping labels.
Address represents the address as retrieved from the database
name | string required for purchase |
company | string Company Name |
street1 | string required for purchase |
street2 | string Second street line, 35 character limit. |
street3 | string Third street line, 35 character limit. Only accepted for USPS international shipments, UPS domestic and UPS international shipments. |
street_no | string Street number of the addressed building. This field can be included in street1 for all carriers except for DHL Germany. |
city | string required for purchase |
state | string required for purchase for some countries |
zip | string required for purchase |
country required | string ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like |
phone | string Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. |
string E-mail address of the contact person, RFC3696/5321-compliant. | |
is_residential | boolean |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
is_complete | boolean Complete addresses contain all required values. |
latitude | number or string Latitude of address |
longitude | number or string Longitude of address |
object_created | string <date-time> Date and time of Address creation. |
object_id | string Unique identifier of the given Address object. This ID is required to create a Shipment object. |
object_owner | string Username of the user who created the Address object. |
object_updated | string <date-time> Date and time of last Address update. Since you cannot update Addresses after they were created, this time stamp reflects the time when the Address was changed by Shippo's systems for the last time, e.g., during the approximation of one or more values. |
object (AddressValidationResults) Object that contains information regarding if an address had been validated or not. Also contains any messages
generated during validation. Children keys are | |
test | boolean Indicates whether the object has been created in test mode. |
{- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}
Returns a list of all address objects that have been created in this account.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/addresses/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}
]
}
Creates a new address object. You can use address objects to create new shipments, calculate rates, and to create orders.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Address details.
name | string required for purchase |
company | string Company Name |
street1 | string required for purchase |
street2 | string Second street line, 35 character limit. |
street3 | string Third street line, 35 character limit. Only accepted for USPS international shipments, UPS domestic and UPS international shipments. |
street_no | string Street number of the addressed building. This field can be included in street1 for all carriers except for DHL Germany. |
city | string required for purchase |
state | string required for purchase for some countries |
zip | string required for purchase |
country required | string ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like |
phone | string Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. |
string E-mail address of the contact person, RFC3696/5321-compliant. | |
is_residential | boolean |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
validate | boolean Set to true to validate Address object. |
{- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}
{- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}
Returns an existing address using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/addresses/d799c2679e644279b59fe661ac8fa488/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}
Validates an existing address using an object ID
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/addresses/d799c2679e644279b59fe661ac8fa488/validate/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}
A parcel is an item you are shipping. The parcel object includes details about its physical make-up of the parcel. It includes dimensions and weight that Shippo uses to calculate rates.
object (ParcelExtra) An object holding optional extra services to be requested for each parcel in a multi-piece shipment. See the Parcel Extra table below for all available services. | |
metadata | string |
mass_unit required | string (WeightUnitEnum) The unit used for weight. |
weight required | string Weight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
distance_unit required | string (DistanceUnitEnum) The measure unit used for length, width and height. |
height required | string Height of the parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
length required | string Length of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
width required | string Width of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
object_created | string <date-time> Date and time of Parcel creation. |
object_id | string Unique identifier of the given Parcel object. This ID is required to create a Shipment object. |
object_owner | string Username of the user who created the Parcel object. |
object_state | string A Parcel will only be valid when all required values have been sent and validated successfully. |
object_updated | string <date-time> Date and time of last Parcel update. Since you cannot update Parcels after they were created, this time stamp reflects the time when the Parcel was changed by Shippo's systems for the last time, e.g., during sorting the dimensions given. |
FedEx Parcel Template (string) or UPS Parcel Template (string) or USPS Parcel Template (string) or DHL eCommerce Parcel Template (string) or DPD UK Parcel Template (string) or Couriers Please Parcel Template (string) or Aramex Australia Parcel Template (string) (ParcelTemplateEnumSet) | |
test | boolean Indicates whether the object has been created in test mode. |
{- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
The following values are supported for the extra
field of the parcel object.
An object holding optional extra services to be requested for each parcel in a multi-piece shipment. See the Parcel Extra table below for all available services.
object (COD) Specify collection on delivery details (UPS only). | |
object (ParcelInsurance) To add insurace to your parcel, specify | |
reference_1 | string Optional text to be printed on the shipping label if supported by carrier. Up to 50 characters. |
reference_2 | string Optional text to be printed on the shipping label if supported by carrier. Up to 50 characters. |
{- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}
Returns a list of all parcel objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/parcels/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
]
}
Creates a new parcel object.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Parcel details.
object (ParcelExtra) An object holding optional extra services to be requested for each parcel in a multi-piece shipment. See the Parcel Extra table below for all available services. | |
metadata | string |
mass_unit required | string (WeightUnitEnum) The unit used for weight. |
weight required | string Weight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
distance_unit required | string (DistanceUnitEnum) The measure unit used for length, width and height. |
height required | string Height of the parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
length required | string Length of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
width required | string Width of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
{- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1"
}
{- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
Returns parcel details using an existing parcel object ID (this will not return parcel details associated with un-purchased shipment/rate parcel object IDs).
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/parcels/7df2ecf8b4224763ab7c71fae7ec8274/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
A carrier parcel template represents a package used for shipping that has preset dimensions defined by a carrier. Some examples of a carrier parcel template include USPS Flat Rate Box and Fedex Small Pak. When using a carrier parcel template, the rates returned may be limited to the carrier that provides the box. You can create user parcel templates using a carrier parcel template. Shippo takes the dimensions of the carrier parcel template but you must configure the weight.
carrier | string The name of the carrier that provides this parcel template |
distance_unit | string (DistanceUnitEnum) The measure unit used for length, width and height. |
height | string The height of the package, in units specified by the distance_unit attribute |
is_variable_dimensions | boolean True if the carrier parcel template allows custom dimensions, such as USPS Softpack. |
length | string The length of the package, in units specified by the distance_unit attribute |
name | string The name of the carrier parcel template |
token | string The unique string representation of the carrier parcel template |
width | string The width of the package, in units specified by the distance_unit attribute |
{- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
List all carrier parcel template objects.
Use the following query string params to filter the results as needed.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/parcel-templates \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396" \ -H "Content-Type: application/json"
{- "results": [
- {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
]
}
Fetches the parcel template information for a specific carrier parcel template, identified by the token.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/parcel-templates/Fedex_Box_Small_1 \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396" \ -H "Content-Type: application/json"
{- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
A user parcel template represents a package used for shipping that has preset dimensions and attributes defined by you. They are useful for capturing attributes of parcel-types you frequently use for shipping, allowing them to be defined once and then used for many shipments. These parcel templates can also be used for live rates.
User parcel templates can also be created using a carrier parcel template, where the dimensions will be copied from the carrier presets, but the weight can be configured by you.
distance_unit | string (DistanceUnitEnum) The measure unit used for length, width and height. Required, but if using a preset carrier template then this field must be empty. |
height | string The height of the package, in units specified by the |
length | string The length of the package, in units specified by the |
name | string The name of the User Parcel Template |
weight | string The weight of the package, in units specified by the weight_unit attribute. |
weight_unit | string (WeightUnitEnum) The unit used for weight. |
width | string The width of the package, in units specified by the |
object_created | string <date-time> Date and time of User Parcel Template creation |
object_id | string Unique identifier of the given User Parcel Template object |
object_owner | string Username of the user who created the User Parcel Template object |
object_updated | string <date-time> Date and time of last update on User Parcel Template |
object (CarrierParcelTemplate) |
{- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
Returns a list all of all user parcel template objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/user-parcel-templates \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396" \ -H "Content-Type: application/json"
{- "results": [
- {
- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
]
}
Creates a new user parcel template.
You can choose to create a
parcel template using a preset carrier template as a starting point, or
you can create an entirely custom one. To use a preset carrier template,
pass in a unique template token from this list
plus the weight fields (weight and weight_unit). Otherwise, omit
the template field and pass the other fields, for the weight, length, height,
and depth, as well as their units."
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8"
}
{- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
Deletes a user parcel template using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
The user parcel template was successfully deleted.
curl -X DELETE https://api.goshippo.com/user-parcel-templates/{UserParcelTemplateObjectId} \ -H "Authorization: ShippoToken <API_TOKEN>"
{ }
Returns the parcel template information for a specific user parcel template, identified by the object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl /user-parcel-templates/{UserParcelTemplateToken} \ -H "Authorization: ShippoToken <API_TOKEN>" \ -H "Content-Type: application/json"
{- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
Updates an existing user parcel template.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8"
}
{- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
A shipment is the act of transporting goods. A shipment object contains to and from addresses, and the parcel details that you are shipping. You can use the shipment object to retrieve shipping rates and purchase a shipping label.
Shipment represents the parcel as retrieved from the database
object (ShipmentExtra) An object holding optional extra services to be requested. | |
metadata required | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
shipment_date | string Date the shipment will be tendered to the carrier. Must be in the format |
required | object (AddressFrom) Address object of the sender / seller. Will be returned expanded by default. |
object (AddressReturn) 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). | |
required | object (AddressTo) Address object of the recipient / buyer. Will be returned expanded by default. |
carrier_accounts required | Array of strings 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 |
object (CustomsDeclaration) | |
required | Array of objects (ResponseMessageList) |
object_created required | string <date-time> Date and time of Shipment creation. |
object_id required | string Unique identifier of the given Shipment object. |
object_owner required | string Username of the user who created the Shipment object. |
object_updated required | string <date-time> Date and time of last Shipment update. |
required | Array of objects (Parcel) List of Parcel objects to be shipped. |
required | Array of objects (Rate) An array with all available rates. If |
status required | string
|
test | boolean Indicates whether the object has been created in test mode. |
{- "extra": {
- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}, - "metadata": "Customer ID 123456",
- "shipment_date": "2021-03-22T12:00:00Z",
- "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_return": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_to": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "carrier_accounts": [
- "string"
], - "customs_declaration": {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}, - "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcels": [
- {
- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
], - "rates": [
- {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
], - "status": "QUEUED",
- "test": true
}
The following values are supported for the extra
field of the shipment object.
An object holding optional extra services to be requested.
object (UPSReferenceFields) UPS only. Adds custom accounts receivable customer account reference to UPS labels. | |
object (Alcohol) Indicates that a shipment contains Alcohol (Fedex and UPS only). | |
ancillary_endorsement | any Specify an ancillary service endorsement to provide the USPS with instructions on how to handle undeliverable-as-addressed pieces (DHL eCommerce only). |
object (UPSReferenceFields) UPS only. Adds custom appropriation number reference to UPS labels. | |
authority_to_leave | boolean Request |
object (UPSReferenceFields) UPS only. Adds custom bill of lading number reference to UPS labels. | |
object (Billing) Specify billing details (UPS, FedEx, and DHL Germany only). | |
bypass_address_validation | boolean Bypasses address validation (USPS, UPS, & LaserShip only). |
carbon_neutral | boolean Request carbon offsets by passing true (UPS only). |
carrier_hub_id | string Identifies the carrier injection site. |
carrier_hub_travel_time | integer Travel time in hours from fulfillment center to carrier injection site. |
object (COD) Specify collection on delivery details (UPS only). | |
object (UPSReferenceFields) UPS only. Adds custom COD number reference to UPS labels. | |
container_type | string Specify container type. |
critical_pull_time | string Carrier arrival time to pickup packages from the fulfillment center.
UTC format: |
customer_branch | string Specify customer branch (Lasership only). |
object (CustomerReference) Specify the reference field on the label (FedEx and UPS only). | |
object (DangerousGoodsObject) Container for specifying the presence of dangerous materials. This is specific to USPS, and if any contents are provided, only certain USPS service levels will be eligible. For more information, see our guide on hazardous or dangerous materials shipping. | |
dangerous_goods_code | any Dangerous Goods Code (DHL eCommerce only). See Category Codes |
object (UPSReferenceFields) UPS only. Adds custom dealer order number reference to UPS labels. | |
delivery_instructions | string Specify delivery instructions. Up to 500 characters. (FedEx and OnTrac only). |
object (DepartmentNumber) Specify the department number field on the label (FedEx and UPS only). | |
object (DryIce) Specify that the package contains Dry Ice (FedEx, Veho, and UPS only). | |
object (UPSReferenceFields) UPS only. Adds custom FDA product code reference to UPS labels. | |
fulfillment_center | string The fulfilment center where the package originates from. |
object (Insurance) To add 3rd party insurance powered by XCover,
specify | |
object (InvoiceNumber) Specify the invoice number field on the label (FedEx and UPS only). | |
is_return | boolean This field specifies if it is a scan-based return shipment. See the Create a return shipment section for more details. |
lasership_attrs | Array of strings (ShipmentExtraLasershipAttributesEnum) Specify Lasership Attributes (Lasership only). Multiple options accepted. |
lasership_declared_value | string Declared value (Lasership only). Defaults to |
object (UPSReferenceFields) UPS only. Adds custom manifest number reference to UPS labels. | |
object (UPSReferenceFields) UPS only. Adds custom model number reference to UPS labels. | |
object (UPSReferenceFields) UPS only. Adds custom part number reference to UPS labels. | |
object (PoNumber) Specify the PO number field on the label (FedEx and UPS only). | |
preferred_delivery_timeframe | any Required for DHL Germany Paket Sameday. Designates a desired timeframe for delivery. Format is |
premium | boolean Add premium service to a shipment (DHL Germany international shipments only). |
object (UPSReferenceFields) UPS only. Adds custom product code reference to UPS labels. | |
object (UPSReferenceFields) UPS only. Adds custom purchase request number reference to UPS labels. | |
qr_code_requested | boolean Request a QR code for a given transaction when creating a shipping label (USPS domestic and Evri UK only). |
reference_1 | string Optional text to be printed on the shipping label if supported by carrier. Up to 50 characters. |
reference_2 | string Optional text to be printed on the shipping label if supported by carrier. Up to 50 characters. For DHL eCommerce, this field can be used for billing reference. |
request_retail_rates | boolean Returns retail rates instead of account-based rates (UPS and FedEx only). |
ShipmentExtraReturnServiceTypeUPSEnum (string) or ShipmentExtraReturnServiceTypeLasershipEnum (string) Request additional return option for return shipments (UPS and Lasership only). | |
object (RmaNumber) Specify the RMA number field on the label (FedEx and UPS only). | |
saturday_delivery | boolean Marks shipment as to be delivered on a Saturday. |
object (UPSReferenceFields) UPS only. Adds custom salesperson number reference to UPS labels. | |
object (UPSReferenceFields) UPS only. Adds custom serial number reference to UPS labels. | |
signature_confirmation | any Request standard or adult signature confirmation. You can alternatively request Certified Mail (USPS only) or Indirect signature (FedEx only) or Carrier Confirmation (Deutsche Post only). |
object (UPSReferenceFields) UPS only. Adds custom store number reference to UPS labels. | |
object (UPSReferenceFields) UPS only. Adds custom transaction reference number to UPS labels. |
{- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}
Returns a list of all shipment objects.
In order to filter results, you must use the below path parameters.
A maximum date range of 90 days is permitted.
Provided dates should be ISO 8601 UTC dates (timezone offsets are currently not supported).
Optional path parameters:
object_created_gt
- object(s) created greater than a provided date time
object_created_gte
- object(s) created greater than or equal to a provided date time
object_created_lt
- object(s) created less than a provided date time
object_created_lte
- object(s) created less than or equal to a provided date time
Date format examples:
2017-01-01
2017-01-01T03:30:30
or 2017-01-01T03:30:30.5
2017-01-01T03:30:30Z
Example URL:
https://api.goshippo.com/shipments/?object_created_gte=2017-01-01T00:00:30&object_created_lt=2017-04-01T00:00:30
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/shipments/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "extra": {
- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}, - "metadata": "Customer ID 123456",
- "shipment_date": "2021-03-22T12:00:00Z",
- "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_return": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_to": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "carrier_accounts": [
- "string"
], - "customs_declaration": {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}, - "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcels": [
- {
- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
], - "rates": [
- {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
], - "status": "QUEUED",
- "test": true
}
]
}
Creates a new shipment object.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Shipment details and contact info.
object (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. |
shipment_date | string Date the shipment will be tendered to the carrier. Must be in the format |
required | AddressCreateRequest (object) or string |
AddressCreateRequest (object) or string | |
required | AddressCreateRequest (object) or string |
CustomsDeclarationCreateRequest (object) or string | |
async | boolean |
carrier_accounts | Array of strings List of Carrier Accounts |
required | Array of ParcelCreateRequest (object) or ParcelCreateFromTemplateRequest (object) or strings |
{- "extra": {
- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}, - "metadata": "Customer ID 123456",
- "shipment_date": "2021-03-22T12:00:00Z",
- "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "address_return": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "address_to": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "customs_declaration": {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "Blumenstraße",
- "street2": "string",
- "street3": "",
- "street_no": "22",
- "city": "München",
- "state": "CA",
- "zip": "80331",
- "country": "DE",
- "phone": "80331",
- "email": "shippotle@shippo.com",
- "is_residential": true
}, - "contents_type": "DOCUMENTS",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "items": [
- {
- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD"
}
], - "non_delivery_option": "ABANDON",
- "test": true
}, - "async": true,
- "carrier_accounts": [
- "065a4a8c10d24a34ab932163a1b87f52",
- "73f706f4bdb94b54a337563840ce52b0"
], - "parcels": [
- {
- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1"
}
]
}
{- "extra": {
- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}, - "metadata": "Customer ID 123456",
- "shipment_date": "2021-03-22T12:00:00Z",
- "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_return": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_to": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "carrier_accounts": [
- "string"
], - "customs_declaration": {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}, - "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcels": [
- {
- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
], - "rates": [
- {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
], - "status": "QUEUED",
- "test": true
}
Returns an existing shipment using an object ID
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/shipments/7c47d12aa95a4cbb9d90c167cca7bea7 \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "extra": {
- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}, - "metadata": "Customer ID 123456",
- "shipment_date": "2021-03-22T12:00:00Z",
- "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_return": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "address_to": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "carrier_accounts": [
- "string"
], - "customs_declaration": {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}, - "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcels": [
- {
- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1",
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "template": "FedEx_Box_10kg",
- "test": true
}
], - "rates": [
- {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
], - "status": "QUEUED",
- "test": true
}
A rate is the cost to ship a parcel from a carrier. The rate object details the service level including the cost and transit time.
amount required | string Final Rate price, expressed in the currency used in the sender's country. |
amount_local required | string Final Rate price, expressed in the currency used in the recipient's country. |
currency required | string Currency used in the sender's country, refers to |
currency_local required | string Currency used in the recipient's country, refers to |
arrives_by | string Predicted time the carrier will deliver the package in the destination's local time zone. In the format |
attributes required | Array of strings An array containing specific attributes of this Rate in context of the entire shipment.
Attributes can be assigned |
carrier_account required | string Object ID of the carrier account that has been used to retrieve the rate. |
duration_terms | string Further clarification of the transit times. Often, this includes notes that the transit time as given in "days" is only an average, not a guaranteed time. |
estimated_days | integer <int64> Estimated transit time (duration) in days of the Parcel at the given servicelevel. Please note that this is not binding, but only an average value as given by the provider. Shippo is not able to guarantee any transit times. |
included_insurance_price | string Cost to the user to insure the Rate for the requested amount of coverage, if insurance coverage was requested.
Expressed in the currency used in the sender's country. Will be null if no insurance coverage was requested, or if insurance is requested from a non-standard insurance provider.
Please note this price is already included in the |
Array of objects (ResponseMessageList) | |
object_created required | string <date-time> Date and time of Rate creation. |
object_id required | string Unique identifier of the given Rate object. |
object_owner required | string Username of the user who created the rate object. |
provider required | string Carrier offering the rate, e.g., |
provider_image_75 | string URL to the provider logo with max. dimensions of 75*75px. Please refer to the provider's Logo Usage Guidelines before using the logo. |
provider_image_200 | string URL to the provider logo with max. dimensions of 200*200px. Please refer to the provider's Logo Usage Guidelines before using the logo. |
required | object (ServiceLevelWithParent) Contains details regarding the service level for the given rate. |
shipment required | string |
test | boolean Indicates whether the object has been created in test mode. |
zone | string The parcel's transit zone token. These tokens can vary depending on the provider. |
{- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
Returns an existing rate using a rate object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/rates/ee81fab0372e419ab52245c8952ccaeb \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
Returns a paginated list of rates associated with a shipment
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/shipments/5e40ead7cffe4cc1ad45108696162e42/rates/USD \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
]
}
Returns all available shipping rates for a shipment object.
When you create a new valid shipment object, Shippo automatically calculates all available rates. Depending on your shipment data, there may be none, one or multiple rates.
By default, the calculated rates will return the price in two currencies under the amount
and amount_local
keys, respectively. The amount
key will contain the price of a rate expressed in the currency that is used in the country from where the parcel originates, and the amount_local
key will contain the price expressed in the currency that is used in the country the parcel is shipped to. You can request rates with prices expressed in a different currency by adding the currency code to the end of the resource URL. The full list of supported currencies along with their codes can be viewed on open exchange rates.
Note: re-requesting the rates with a different currency code will re-queue the shipment (i.e. set the Shipment's status
to QUEUED
) and the converted currency rates will only be available when the Shipment's status
is set to SUCCESS
.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
import shippo from shippo.models import operations s = shippo.Shippo( api_key_header="ShippoToken <API_TOKEN>", shippo_api_version='2018-02-08', ) res = s.rates.list_shipment_rates_by_currency_code(request=operations.ListShipmentRatesByCurrencyCodeRequest( shipment_id='<value>', currency_code='USD', )) if res is not None: # handle response pass
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "arrives_by": "08:30:00",
- "attributes": [
- "BESTVALUE"
], - "carrier_account": "078870331023437cb917f5187429b093",
- "duration_terms": "Delivery in 1 to 3 business days",
- "estimated_days": 2,
- "included_insurance_price": "1.05",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "pp@gmail.com",
- "provider": "USPS",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "test": true,
- "zone": "1"
}
]
}
A transaction is the purchase of a shipping label from a shipping provider for a specific service. You can print purchased labels and used them to ship a parcel with a carrier, such as USPS or FedEx.
commercial_invoice_url | string A URL pointing to the commercial invoice as a 8.5x11 inch PDF file. A value will only be returned if the Transactions has been processed successfully and if the shipment is international. |
object or null | |
eta | string The estimated time of arrival according to the carrier. |
label_file_type | string (LabelFileTypeEnum) Print format of the label. If empty, will use the default format set from the Shippo dashboard. |
label_url | string A URL pointing directly to the label in the format you've set in your settings. A value will only be returned if the Transactions has been processed successfully. |
Array of objects (ResponseMessageList) | |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
object_created | string <date-time> Date and time of Transaction creation. |
object_id | string Unique identifier of the given Transaction object. |
object_owner | string Username of the user who created the Transaction object. |
object_state | string (ObjectStateEnum) Indicates the validity of the enclosing object |
object_updated | string <date-time> Date and time of last Transaction update. |
parcel | string Object ID of the Parcel object that is being shipped. |
qr_code_url | string A URL pointing directly to the QR code in PNG format. A value will only be returned if requested using qr_code_requested flag and the carrier provides such an option. |
CoreRate (object) or string ID of the Rate object for which a Label has to be obtained. | |
status | string (TransactionStatusEnum) Indicates the status of the Transaction. |
test | boolean Indicates whether the object has been created in test mode. |
tracking_number | string The carrier-specific tracking number that can be used to track the Shipment. A value will only be returned if the Rate is for a trackable Shipment and if the Transactions has been processed successfully. |
tracking_status | string (TrackingStatusEnum) Indicates the high level status of the shipment. |
tracking_url_provider | string A link to track this item on the carrier-provided tracking website. A value will only be returned if tracking is available and the carrier provides such a service. |
{- "commercial_invoice_url": "string",
- "created_by": {
- "first_name": "Shwan",
- "last_name": "Ippotle",
- "username": "shippotle@shippo.com"
}, - "eta": "string",
- "label_file_type": "PDF_4x6",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "metadata": "string",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "915d94940ea54c3a80cbfa328722f5a1",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcel": "e94c7fdfdc7b495dbb390a28d929d90a",
- "rate": {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "provider": "USPS",
- "carrier_account": "078870331023437cb917f5187429b093",
- "servicelevel_name": "Priority Mail",
- "servicelevel_token": "fedex_ground"
}, - "status": "SUCCESS",
- "test": true,
- "tracking_number": "9499907123456123456781",
- "tracking_status": "DELIVERED",
- "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"
}
Returns a list of all transaction objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/transactions/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "commercial_invoice_url": "string",
- "created_by": {
- "first_name": "Shwan",
- "last_name": "Ippotle",
- "username": "shippotle@shippo.com"
}, - "eta": "string",
- "label_file_type": "PDF_4x6",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "metadata": "string",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "915d94940ea54c3a80cbfa328722f5a1",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcel": "e94c7fdfdc7b495dbb390a28d929d90a",
- "rate": {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "provider": "USPS",
- "carrier_account": "078870331023437cb917f5187429b093",
- "servicelevel_name": "Priority Mail",
- "servicelevel_token": "fedex_ground"
}, - "status": "SUCCESS",
- "test": true,
- "tracking_number": "9499907123456123456781",
- "tracking_status": "DELIVERED",
- "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"
}
]
}
Creates a new transaction object and purchases the shipping label using a rate object that has previously been created.
OR
Creates a new transaction object and purchases the shipping label instantly using shipment details, an existing carrier account, and an existing service level token.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Examples.
async | boolean Default: true |
label_file_type | string (LabelFileTypeEnum) Print format of the label. If empty, will use the default format set from the Shippo dashboard. |
metadata | string |
rate required | string |
order | string |
{- "async": true,
- "carrier_account": "b741b99f95e841639b54272834bc478c",
- "label_file_type": "PDF",
- "metadata": "Order ID",
- "servicelevel_token": "usps_priority",
- "shipment": {
- "address_from": {
- "city": "San Francisco",
- "company": "Shippo",
- "country": "US",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "name": "Shwan Ippotle",
- "phone": "+1 555 341 9393",
- "state": "CA",
- "street1": "215 Clayton St.",
- "street2": "215 Clayton St.",
- "validate": true,
- "zip": 94117
}, - "address_return": {
- "city": "San Francisco",
- "company": "Shippo",
- "country": "US",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "name": "Shwan Ippotle",
- "phone": "+1 555 341 9393",
- "state": "CA",
- "street1": "215 Clayton St.",
- "street2": "215 Clayton St.",
- "validate": true,
- "zip": 94117
}, - "address_to": {
- "city": "San Francisco",
- "company": "Shippo",
- "country": "US",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "name": "Shwan Ippotle",
- "phone": "+1 555 341 9393",
- "state": "CA",
- "street1": "215 Clayton St.",
- "street2": "215 Clayton St.",
- "validate": true,
- "zip": 94117
}, - "parcels": [
- {
- "distance_unit": "in",
- "height": 1,
- "length": 1,
- "mass_unit": "lb",
- "template": "USPS_LargeFlatRateBox",
- "weight": 1,
- "width": 1
}
]
}
}
{- "commercial_invoice_url": "string",
- "created_by": {
- "first_name": "Shwan",
- "last_name": "Ippotle",
- "username": "shippotle@shippo.com"
}, - "eta": "string",
- "label_file_type": "PDF_4x6",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "metadata": "string",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "915d94940ea54c3a80cbfa328722f5a1",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcel": "e94c7fdfdc7b495dbb390a28d929d90a",
- "rate": {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "provider": "USPS",
- "carrier_account": "078870331023437cb917f5187429b093",
- "servicelevel_name": "Priority Mail",
- "servicelevel_token": "fedex_ground"
}, - "status": "SUCCESS",
- "test": true,
- "tracking_number": "9499907123456123456781",
- "tracking_status": "DELIVERED",
- "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"
}
Returns an existing transaction using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/transactions/70ae8117ee1749e393f249d5b77c45e0 \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "commercial_invoice_url": "string",
- "created_by": {
- "first_name": "Shwan",
- "last_name": "Ippotle",
- "username": "shippotle@shippo.com"
}, - "eta": "string",
- "label_file_type": "PDF_4x6",
- "messages": [
- {
- "source": "UPS",
- "code": "carrier_timeout",
- "text": "UPS API did not respond. Please try again in a few minutes."
}
], - "metadata": "string",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "915d94940ea54c3a80cbfa328722f5a1",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2019-08-24T14:15:22Z",
- "parcel": "e94c7fdfdc7b495dbb390a28d929d90a",
- "rate": {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "provider": "USPS",
- "carrier_account": "078870331023437cb917f5187429b093",
- "servicelevel_name": "Priority Mail",
- "servicelevel_token": "fedex_ground"
}, - "status": "SUCCESS",
- "test": true,
- "tracking_number": "9499907123456123456781",
- "tracking_status": "DELIVERED",
- "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"
}
A batch is a technique for creating multiple labels at once. Use the batch object to create and purchase many shipments in two API calls. After creating the batch, retrieve the batch to verify that all shipments are valid. You can add and remove shipments after you have created the batch. When all shipments are valid you can purchase the batch and retrieve all the shipping labels.
default_carrier_account required | string ID of the Carrier Account object to use as the default for all shipments in this Batch. The carrier account can be changed on a per-shipment basis by changing the carrier_account in the corresponding BatchShipment object. |
default_servicelevel_token required | string Token of the service level to use as the default for all shipments in this Batch. The servicelevel can be changed on a per-shipment basis by changing the servicelevel_token in the corresponding BatchShipment object. Servicelevel tokens can be found here. |
label_filetype | string (LabelFileTypeEnum) Print format of the label. If empty, will use the default format set from the Shippo dashboard. |
metadata | string <= 100 characters A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
required | object (BatchShipmentPaginatedList) Array of BatchShipment objects. The response keeps the same order as in the request array. |
label_url required | Array of strings An array of URLs each pointing to a merged file of 100 labels each |
object_created required | string Date and time of Batch creation |
object_id required | string Unique identifier of the given Batch object |
object_owner required | string Username of the user who created the Address object. |
required | object An object containing the following counts: |
object_updated required | string Date and time of last update to the Batch |
status required | string Batches that are |
test | boolean |
{- "default_carrier_account": "078870331023437cb917f5187429b093",
- "default_servicelevel_token": "usps_priority",
- "label_filetype": "PDF_4x6",
- "metadata": "BATCH #1",
- "batch_shipments": {
- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "messages": [ ],
- "object_id": "e11c95a6788d4ddcaa22f03175838740",
- "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "status": "INVALID",
- "transaction": "4c33736a67e2450da88b38c42deef6b7"
}
]
}, - "label_url": [
- "string"
], - "object_created": "2016-01-04T00:15:44.394Z",
- "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4",
- "object_owner": "shippo@shippo.com",
- "object_results": {
- "creation_failed": 3,
- "creation_succeeded": 5,
- "purchase_failed": 0,
- "purchase_succeeded": 0
}, - "object_updated": "2016-01-04T00:48:13.841Z",
- "status": "VALID",
- "test": false
}
The batch shipment object is a wrapper around a shipment object, which include shipment-specific information for batch processing.
Note: batch shipments can only be created on the batch endpoint, either when creating a batch object or by through
the /batches/{BATCH_OBJECT_ID}/add_shipments
endpoint
carrier_account | string Object ID of the carrier account to be used for this shipment (will override batch default) |
metadata | string <= 100 characters A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
servicelevel_token | string A token that sets the shipping method for the batch, overriding the batch default. Servicelevel tokens can be found in this list or at this endpoint. |
messages | Array of arrays List of Shipment and Transaction error messages. |
object_id required | string Object ID of this batch shipment. Can be used in the remove_shipments endpoint. |
shipment required | string Object ID of the shipment object created for this batch shipment. |
status required | string
|
transaction | string Object ID of the transaction object created for this batch shipment. |
{- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "messages": [ ],
- "object_id": "e11c95a6788d4ddcaa22f03175838740",
- "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "status": "INVALID",
- "transaction": "4c33736a67e2450da88b38c42deef6b7"
}
Creates a new batch object for purchasing shipping labels for many shipments at once. Batches are created asynchronously. This means that the API response won't include your batch shipments yet. You need to retrieve the batch later to verify that all batch shipments are valid.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Batch details.
default_carrier_account required | string ID of the Carrier Account object to use as the default for all shipments in this Batch. The carrier account can be changed on a per-shipment basis by changing the carrier_account in the corresponding BatchShipment object. |
default_servicelevel_token required | string Token of the service level to use as the default for all shipments in this Batch. The servicelevel can be changed on a per-shipment basis by changing the servicelevel_token in the corresponding BatchShipment object. Servicelevel tokens can be found here. |
label_filetype | string (LabelFileTypeEnum) Print format of the label. If empty, will use the default format set from the Shippo dashboard. |
metadata | string <= 100 characters A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
required | Array of objects (BatchShipmentCreateRequest) Array of BatchShipment objects. The response keeps the same order as in the request array. |
{- "default_carrier_account": "078870331023437cb917f5187429b093",
- "default_servicelevel_token": "usps_priority",
- "label_filetype": "PDF_4x6",
- "metadata": "BATCH #1",
- "batch_shipments": [
- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "shipment": {
- "extra": {
- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}, - "metadata": "Customer ID 123456",
- "shipment_date": "2021-03-22T12:00:00Z",
- "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "address_return": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "address_to": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "customs_declaration": {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "Blumenstraße",
- "street2": "string",
- "street3": "",
- "street_no": "22",
- "city": "München",
- "state": "CA",
- "zip": "80331",
- "country": "DE",
- "phone": "80331",
- "email": "shippotle@shippo.com",
- "is_residential": true
}, - "contents_type": "DOCUMENTS",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "items": [
- {
- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD"
}
], - "non_delivery_option": "ABANDON",
- "test": true
}, - "async": true,
- "carrier_accounts": [
- "065a4a8c10d24a34ab932163a1b87f52",
- "73f706f4bdb94b54a337563840ce52b0"
], - "parcels": [
- {
- "extra": {
- "COD": {
- "amount": null,
- "currency": null,
- "payment_method": null
}, - "insurance": {
- "amount": null,
- "content": null,
- "currency": null,
- "provider": null
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1"
}
]
}
}
]
}
{- "default_carrier_account": "078870331023437cb917f5187429b093",
- "default_servicelevel_token": "usps_priority",
- "label_filetype": "PDF_4x6",
- "metadata": "BATCH #1",
- "batch_shipments": {
- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "messages": [ ],
- "object_id": "e11c95a6788d4ddcaa22f03175838740",
- "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "status": "INVALID",
- "transaction": "4c33736a67e2450da88b38c42deef6b7"
}
]
}, - "label_url": [
- "string"
], - "object_created": "2016-01-04T00:15:44.394Z",
- "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4",
- "object_owner": "shippo@shippo.com",
- "object_results": {
- "creation_failed": 3,
- "creation_succeeded": 5,
- "purchase_failed": 0,
- "purchase_succeeded": 0
}, - "object_updated": "2016-01-04T00:48:13.841Z",
- "status": "VALID",
- "test": false
}
Returns a batch using an object ID.
Batch shipments are displayed 100 at a time. You can iterate
through each page
using the ?page= query
parameter. You can also filter based on batch shipment
status, for example, by passing a query param like ?object_results=creation_failed
.
For more details on filtering results, see our guide on filtering.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/batches/<BATCH OBJECT ID>?page=2&object_results=creation_failed \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "default_carrier_account": "078870331023437cb917f5187429b093",
- "default_servicelevel_token": "usps_priority",
- "label_filetype": "PDF_4x6",
- "metadata": "BATCH #1",
- "batch_shipments": {
- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "messages": [ ],
- "object_id": "e11c95a6788d4ddcaa22f03175838740",
- "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "status": "INVALID",
- "transaction": "4c33736a67e2450da88b38c42deef6b7"
}
]
}, - "label_url": [
- "string"
], - "object_created": "2016-01-04T00:15:44.394Z",
- "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4",
- "object_owner": "shippo@shippo.com",
- "object_results": {
- "creation_failed": 3,
- "creation_succeeded": 5,
- "purchase_failed": 0,
- "purchase_succeeded": 0
}, - "object_updated": "2016-01-04T00:48:13.841Z",
- "status": "VALID",
- "test": false
}
Adds batch shipments to an existing batch.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Array of shipments to add to the batch
carrier_account | string Object ID of the carrier account to be used for this shipment (will override batch default) |
metadata | string <= 100 characters A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
servicelevel_token | string A token that sets the shipping method for the batch, overriding the batch default. Servicelevel tokens can be found in this list or at this endpoint. |
required | object (ShipmentCreateRequest) |
[- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "shipment": {
- "extra": {
- "accounts_receivable_customer_account": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "alcohol": {
- "contains_alcohol": true,
- "recipient_type": "licensee"
}, - "ancillary_endorsement": "FORWARDING_SERVICE_REQUESTED",
- "appropriation_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "authority_to_leave": true,
- "bill_of_lading_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "billing": {
- "account": "string",
- "country": "string",
- "participation_code": "string",
- "type": "SENDER",
- "zip": "string"
}, - "bypass_address_validation": true,
- "carbon_neutral": true,
- "carrier_hub_id": "string",
- "carrier_hub_travel_time": 0,
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "cod_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "container_type": "string",
- "critical_pull_time": "string",
- "customer_branch": "string",
- "customer_reference": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "dangerous_goods": {
- "contains": true,
- "biological_material": {
- "contains": true
}, - "lithium_batteries": {
- "contains": true
}
}, - "dangerous_goods_code": "01",
- "dealer_order_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "delivery_instructions": "string",
- "dept_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 3
}, - "dry_ice": {
- "contains_dry_ice": true,
- "weight": "string"
}, - "fda_product_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "fulfillment_center": "string",
- "insurance": {
- "amount": "5.5",
- "content": "string",
- "currency": "USD",
- "provider": "FEDEX"
}, - "invoice_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "is_return": true,
- "lasership_attrs": [
- "TwoPersonDelivery"
], - "lasership_declared_value": "string",
- "manifest_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "model_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "part_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "po_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 2
}, - "preferred_delivery_timeframe": "10001200",
- "premium": true,
- "production_code": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "purchase_request_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "qr_code_requested": true,
- "reference_1": "string",
- "reference_2": "string",
- "request_retail_rates": true,
- "return_service_type": "PRINT_AND_MAIL",
- "rma_number": {
- "prefix": "string",
- "value": "string",
- "ref_sort": 1
}, - "saturday_delivery": true,
- "salesperson_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "serial_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "signature_confirmation": "STANDARD",
- "store_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}, - "transaction_reference_number": {
- "prefix": "ABC",
- "value": "value",
- "ref_sort": 1
}
}, - "metadata": "Customer ID 123456",
- "shipment_date": "2021-03-22T12:00:00Z",
- "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "address_return": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "address_to": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "customs_declaration": {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "Blumenstraße",
- "street2": "string",
- "street3": "",
- "street_no": "22",
- "city": "München",
- "state": "CA",
- "zip": "80331",
- "country": "DE",
- "phone": "80331",
- "email": "shippotle@shippo.com",
- "is_residential": true
}, - "contents_type": "DOCUMENTS",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "items": [
- {
- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD"
}
], - "non_delivery_option": "ABANDON",
- "test": true
}, - "async": true,
- "carrier_accounts": [
- "065a4a8c10d24a34ab932163a1b87f52",
- "73f706f4bdb94b54a337563840ce52b0"
], - "parcels": [
- {
- "extra": {
- "COD": {
- "amount": "5.5",
- "currency": "USD",
- "payment_method": "CASH"
}, - "insurance": {
- "amount": "5.5",
- "content": "Laptop",
- "currency": "USD",
- "provider": "UPS"
}, - "reference_1": "string",
- "reference_2": "string"
}, - "metadata": "Customer ID 123456",
- "mass_unit": "lb",
- "weight": "1",
- "distance_unit": "in",
- "height": "1",
- "length": "1",
- "width": "1"
}
]
}
}
]
{- "default_carrier_account": "078870331023437cb917f5187429b093",
- "default_servicelevel_token": "usps_priority",
- "label_filetype": "PDF_4x6",
- "metadata": "BATCH #1",
- "batch_shipments": {
- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "messages": [ ],
- "object_id": "e11c95a6788d4ddcaa22f03175838740",
- "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "status": "INVALID",
- "transaction": "4c33736a67e2450da88b38c42deef6b7"
}
]
}, - "label_url": [
- "string"
], - "object_created": "2016-01-04T00:15:44.394Z",
- "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4",
- "object_owner": "shippo@shippo.com",
- "object_results": {
- "creation_failed": 3,
- "creation_succeeded": 5,
- "purchase_failed": 0,
- "purchase_succeeded": 0
}, - "object_updated": "2016-01-04T00:48:13.841Z",
- "status": "VALID",
- "test": false
}
Purchases an existing batch with a status of VALID
.
Once you send a POST request to the purchase endpoint the batch status will change to PURCHASING
.
When all the shipments are purchased, the status will change to PURCHASED
and you will receive a
batch_purchased
webhook indicating that the batch has been purchased
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl -X POST https://api.goshippo.com/batches/<BATCH OBJECT ID>/purchase \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "default_carrier_account": "078870331023437cb917f5187429b093",
- "default_servicelevel_token": "usps_priority",
- "label_filetype": "PDF_4x6",
- "metadata": "BATCH #1",
- "batch_shipments": {
- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "messages": [ ],
- "object_id": "e11c95a6788d4ddcaa22f03175838740",
- "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "status": "INVALID",
- "transaction": "4c33736a67e2450da88b38c42deef6b7"
}
]
}, - "label_url": [
- "string"
], - "object_created": "2016-01-04T00:15:44.394Z",
- "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4",
- "object_owner": "shippo@shippo.com",
- "object_results": {
- "creation_failed": 3,
- "creation_succeeded": 5,
- "purchase_failed": 0,
- "purchase_succeeded": 0
}, - "object_updated": "2016-01-04T00:48:13.841Z",
- "status": "VALID",
- "test": false
}
Removes shipments from an existing batch shipment.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Array of shipments object ids to remove from the batch
[- "string"
]
{- "default_carrier_account": "078870331023437cb917f5187429b093",
- "default_servicelevel_token": "usps_priority",
- "label_filetype": "PDF_4x6",
- "metadata": "BATCH #1",
- "batch_shipments": {
- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3",
- "metadata": "SHIPMENT #1",
- "servicelevel_token": "fedex_ground",
- "messages": [ ],
- "object_id": "e11c95a6788d4ddcaa22f03175838740",
- "shipment": "adcfdddf8ec64b84ad22772bce3ea37a",
- "status": "INVALID",
- "transaction": "4c33736a67e2450da88b38c42deef6b7"
}
]
}, - "label_url": [
- "string"
], - "object_created": "2016-01-04T00:15:44.394Z",
- "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4",
- "object_owner": "shippo@shippo.com",
- "object_results": {
- "creation_failed": 3,
- "creation_succeeded": 5,
- "purchase_failed": 0,
- "purchase_succeeded": 0
}, - "object_updated": "2016-01-04T00:48:13.841Z",
- "status": "VALID",
- "test": false
}
If you purchased your shipping label through Shippo, you can also get all the tracking details of your Shipment from the Transaction object.
A tracking status of a package is an indication of current location of a package in the supply chain. For example, sorting, warehousing, or out for delivery. Use the tracking status object to track the location of your shipments.When using your Test token for tracking, you need to use Shippo's predefined tokens for testing different tracking statuses. You can find more information in our Tracking tutorial on how to do this, and what the payloads look like.
object (TrackingStatusFromLocation) The sender address with city, state, zip and country information. | |
object (TrackingStatusToLocation) The recipient address with city, state, zip and country information. | |
carrier required | string Name of the carrier of the shipment to track. See Carriers. |
eta | string <date-time> The estimated time of arrival according to the carrier, this might be updated by carriers during the life of the shipment. |
messages required | Array of strings |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
original_eta | string <date-time> The estimated time of arrival according to the carrier at the time the shipment first entered the system. |
object (ServiceLevelWithParent) Contains details regarding the service level for the given rate. | |
required | Array of objects (TrackingStatus) A list of tracking events, following the same structure as |
tracking_number required | string Tracking number to track. |
object (TrackingStatus) The latest tracking information of this shipment. | |
transaction | string The |
{- "address_from": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "address_to": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "carrier": "usps",
- "eta": "2019-08-24T14:15:22Z",
- "messages": [
- "string"
], - "metadata": "Order 000123",
- "original_eta": "2021-07-23T00:00:00Z",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "tracking_history": [
- {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}
], - "tracking_number": "9205590164917312751089",
- "tracking_status": {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}, - "transaction": "string"
}
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "carrier": "usps",
- "metadata": "Order 000123",
- "tracking_number": "9205590164917312751089"
}
{- "address_from": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "address_to": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "carrier": "usps",
- "eta": "2019-08-24T14:15:22Z",
- "messages": [
- "string"
], - "metadata": "Order 000123",
- "original_eta": "2021-07-23T00:00:00Z",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "tracking_history": [
- {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}
], - "tracking_number": "9205590164917312751089",
- "tracking_status": {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}, - "transaction": "string"
}
Returns the tracking status of a shipment using a carrier name and a tracking number.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/tracks/usps/9205590164917312751089 \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "address_from": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "address_to": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "carrier": "usps",
- "eta": "2019-08-24T14:15:22Z",
- "messages": [
- "string"
], - "metadata": "Order 000123",
- "original_eta": "2021-07-23T00:00:00Z",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "tracking_history": [
- {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}
], - "tracking_number": "9205590164917312751089",
- "tracking_status": {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}, - "transaction": "string"
}
Webhooks are a way for Shippo to notify your application when a specific event occurs. For example, when a label is purchased or when a shipment tracking status has changed. You can use webhooks to trigger actions in your application, such as sending an email or updating a database.
event required | string Type of event that triggers the webhook. |
url required | string URL webhook events are sent to. |
active | boolean Determines whether the webhook is active or not. |
is_test | boolean Determines whether the webhook is a test webhook or not. |
object_created | string <date-time> Timestamp of the creation of the webhook. |
object_id | string Unique identifier of the webhook. This can be used to retrieve or delete the webhook. |
object_updated | string <date-time> Timestamp of the last update of the webhook. |
object_owner | string Username of the user who created the webhook. |
{- "event": "track_updated",
- "active": true,
- "is_test": false,
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "object_owner": "string"
}
The payload is the body of the POST request Shippo sends to the URL specified at the time of webhook registration.
event | string (WebhookEventTypeEnum) Type of event that triggered the webhook. |
test | boolean Determines whether the webhook is a test webhook or not. |
object (Track) |
{- "event": "track_updated",
- "test": true,
- "data": {
- "address_from": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "address_to": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "carrier": "usps",
- "eta": "2019-08-24T14:15:22Z",
- "messages": [
- "string"
], - "metadata": "Order 000123",
- "original_eta": "2021-07-23T00:00:00Z",
- "servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string",
- "parent_servicelevel": {
- "name": "Priority Mail Express",
- "terms": "string",
- "token": "usps_priority_express",
- "extended_token": "string"
}
}, - "tracking_history": [
- {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}
], - "tracking_number": "9205590164917312751089",
- "tracking_status": {
- "location": {
- "city": "Las Vegas",
- "country": "US",
- "state": "NV",
- "zip": "89101"
}, - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "DELIVERED",
- "substatus": {
- "code": "information_received",
- "text": "Information about the package received.",
- "action_required": true
}, - "status_date": "2016-07-23T00:00:00Z",
- "status_details": "Your shipment has been delivered at the destination mailbox."
}, - "transaction": "string"
}
}
Creates a new webhook to send notifications to a URL when a specific event occurs.
Webhook created successfully
{- "event": "transaction_created",
- "active": true,
- "is_test": false
}
{- "event": "track_updated",
- "active": true,
- "is_test": false,
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "object_owner": "string"
}
Returns a list of all webhooks you have created.
List of webhooks
import shippo s = shippo.Shippo( api_key_header="ShippoToken <API_TOKEN>", shippo_api_version='2018-02-08', ) res = s.webhooks.list_webhooks() if res is not None: # handle response pass
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "count": 0,
- "results": [
- {
- "event": "track_updated",
- "active": true,
- "is_test": false,
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "object_owner": "string"
}
]
}
Returns the details of a specific webhook using the webhook object ID.
Webhook details
import shippo s = shippo.Shippo( api_key_header="ShippoToken <API_TOKEN>", shippo_api_version='2018-02-08', ) res = s.webhooks.get_webhook(webhook_id='<value>') if res is not None: # handle response pass
{- "event": "track_updated",
- "active": true,
- "is_test": false,
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "object_owner": "string"
}
Updates an existing webhook using the webhook object ID.
Webhook updated successfully
{- "event": "transaction_created",
- "active": true,
- "is_test": false
}
{- "event": "track_updated",
- "active": true,
- "is_test": false,
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "object_owner": "string"
}
Deletes a specific webhook using the webhook object ID.
Webhook deleted successfully
import shippo s = shippo.Shippo( api_key_header="ShippoToken <API_TOKEN>", shippo_api_version='2018-02-08', ) s.webhooks.delete_webhook(webhook_id='<value>') # Use the SDK ...
Customs declarations are relevant information, including one or multiple customs items, you need to provide for customs clearance for your international shipments.
description required | string Text description of your item. |
eccn_ear99 | string Export Control Classification Number, required on some exports from the United States. |
mass_unit required | string (WeightUnitEnum) The unit used for weight. |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
net_weight required | string Total weight of this item, i.e. quantity * weight per item. |
origin_country required | string Country of origin of the item. Example: |
quantity required | integer <int64> Quantity of this item in the shipment you send. Must be greater than 0. |
sku_code | string SKU code of the item, which is required by some carriers. |
hs_code | string HS code of the item, which is required by some carriers. If |
tariff_number | string The tariff number of the item. If |
value_amount required | string Total value of this item, i.e. quantity * value per item. |
value_currency required | string Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. |
object_created | string <date-time> Date and time of object creation. |
object_id | string Unique identifier of the given object. |
object_owner | string Username of the user who created the object. |
object_state | string (ObjectStateEnum) Indicates the validity of the enclosing object |
object_updated | string <date-time> Date and time of last object update. |
test | boolean Indicates whether the object has been created in test mode. |
{- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD",
- "object_created": "2014-07-17T00:49:20.631Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T00:49:20.631Z",
- "test": true
}
Returns a list all customs items objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/customs/items/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD",
- "object_created": "2014-07-17T00:49:20.631Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T00:49:20.631Z",
- "test": true
}
]
}
Creates a new customs item object.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
CustomsItem details.
description required | string Text description of your item. |
eccn_ear99 | string Export Control Classification Number, required on some exports from the United States. |
mass_unit required | string (WeightUnitEnum) The unit used for weight. |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
net_weight required | string Total weight of this item, i.e. quantity * weight per item. |
origin_country required | string Country of origin of the item. Example: |
quantity required | integer <int64> Quantity of this item in the shipment you send. Must be greater than 0. |
sku_code | string SKU code of the item, which is required by some carriers. |
hs_code | string HS code of the item, which is required by some carriers. If |
tariff_number | string The tariff number of the item. If |
value_amount required | string Total value of this item, i.e. quantity * value per item. |
value_currency required | string Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. |
{- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD"
}
{- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD",
- "object_created": "2014-07-17T00:49:20.631Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T00:49:20.631Z",
- "test": true
}
Returns an existing customs item using an object ID
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/customs/items/55358464c7b740aca199b395536981bd \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD",
- "object_created": "2014-07-17T00:49:20.631Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T00:49:20.631Z",
- "test": true
}
Customs declarations are relevant information, including one or multiple customs items, you need to provide for customs clearance for your international shipments.
aes_itn | string required if eel_pfc is |
b13a_filing_option | string B13A Option details are obtained by filing a B13A Canada Export Declaration via the Canadian Export Reporting System (CERS). More information on reporting commercial exports from Canada. Allowed values available here |
b13a_number | string must be provided if and only if b13a_filing_option is provided |
certificate | string Certificate reference of the shipment. |
certify required | boolean Expresses that the certify_signer has provided all information of this customs declaration truthfully. |
certify_signer required | string Name of the person who created the customs declaration and is responsible for the validity of all information provided. |
commercial_invoice | boolean |
contents_explanation | string required if contents_type is |
disclaimer | string Disclaimer for the shipment and customs information that have been provided. |
object Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. | |
object (CustomsExporterIdentification) Additional exporter identification that may be required to ship in certain countries | |
exporter_reference | string Exporter reference of an export shipment. |
importer_reference | string Importer reference of an import shipment. |
is_vat_collected | boolean Indicates whether the shipment's destination VAT has been collected. May be required for some destinations. |
invoice | string Invoice reference of the shipment. |
license | string License reference of the shipment. |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
notes | string Additional notes to be included in the customs declaration. |
address_importer | string Object ID of the Importer address. |
contents_type required | string (CustomsDeclarationContentsType) Type of goods of the shipment. |
eel_pfc | string (CustomsDeclarationEelPfc) EEL / PFC type of the shipment. For most shipments from the US to CA, |
incoterm | string (CustomsDeclarationIncoterm) The incoterm reference of the shipment. FCA is available for DHL Express and FedEx only. eDAP is available for DPD UK only. DAP is available for DHL Express and DPD UK. If expecting DAP for other carriers, please use DDU. Allowed values available here |
object (CustomsInvoicedCharges) Additional invoiced charges to be shown on the Customs Declaration Commercial Invoice. | |
items required | Array of strings Distinct Parcel content items as Customs Items object_ids. |
non_delivery_option required | string (CustomsDeclarationNonDeliveryOption) Indicates how the carrier should proceed in case the shipment can't be delivered. Allowed values available here |
object_created | string <date-time> Date and time of object creation. |
object_id | string Unique identifier of the given object. |
object_owner | string Username of the user who created the object. |
object_state | string (ObjectStateEnum) Indicates the validity of the enclosing object |
object_updated | string <date-time> Date and time of last object update. |
test | boolean Indicates whether the object has been created in test mode. |
{- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}
Returns a a list of all customs declaration objects
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/customs/declarations/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}
]
}
Creates a new customs declaration object
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
CustomsDeclaration details.
aes_itn | string required if eel_pfc is |
b13a_filing_option | string (CustomsDeclarationB13AFilingOptionEnum) B13A Option details are obtained by filing a B13A Canada Export Declaration via the Canadian Export Reporting System (CERS). More information on reporting commercial exports from Canada. Allowed values available here |
b13a_number | string must be provided if and only if b13a_filing_option is provided |
certificate | string Certificate reference of the shipment. |
certify required | boolean Expresses that the certify_signer has provided all information of this customs declaration truthfully. |
certify_signer required | string Name of the person who created the customs declaration and is responsible for the validity of all information provided. |
commercial_invoice | boolean |
contents_explanation | string required if contents_type is |
disclaimer | string Disclaimer for the shipment and customs information that have been provided. |
object Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. | |
object (CustomsExporterIdentification) Additional exporter identification that may be required to ship in certain countries | |
exporter_reference | string Exporter reference of an export shipment. |
importer_reference | string Importer reference of an import shipment. |
is_vat_collected | boolean Indicates whether the shipment's destination VAT has been collected. May be required for some destinations. |
invoice | string Invoice reference of the shipment. |
license | string License reference of the shipment. |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
notes | string Additional notes to be included in the customs declaration. |
object (AddressImporter) Object that represents the address of the importer | |
contents_type required | string (CustomsDeclarationContentsTypeEnum) Type of goods of the shipment. |
eel_pfc | string (CustomsDeclarationEelPfcEnum) EEL / PFC type of the shipment. For most shipments from the US to CA, |
incoterm | string (CustomsDeclarationIncotermEnum) The incoterm reference of the shipment. FCA is available for DHL Express and FedEx only. eDAP is available for DPD UK only. DAP is available for DHL Express and DPD UK. If expecting DAP for other carriers, please use DDU. Allowed values available here |
required | Array of objects (CustomsItemCreateRequest) |
non_delivery_option required | string (CustomsDeclarationNonDeliveryOptionEnum) Indicates how the carrier should proceed in case the shipment can't be delivered. Allowed values available here |
test | boolean |
{- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "Blumenstraße",
- "street2": "string",
- "street3": "",
- "street_no": "22",
- "city": "München",
- "state": "CA",
- "zip": "80331",
- "country": "DE",
- "phone": "80331",
- "email": "shippotle@shippo.com",
- "is_residential": true
}, - "contents_type": "DOCUMENTS",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "items": [
- {
- "description": "T-Shirt",
- "eccn_ear99": "string",
- "mass_unit": "lb",
- "metadata": "Order ID \"123454\"",
- "net_weight": "5",
- "origin_country": "string",
- "quantity": 20,
- "sku_code": "HM-123",
- "hs_code": "0901.21",
- "tariff_number": "string",
- "value_amount": "200",
- "value_currency": "USD"
}
], - "non_delivery_option": "ABANDON",
- "test": true
}
{- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}
Returns an existing customs declaration using an object ID
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/customs/declarations/e2197a54da9d470480f4f8796cc419cb \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "aes_itn": "string",
- "b13a_filing_option": "FILED_ELECTRONICALLY",
- "b13a_number": "string",
- "certificate": "string",
- "certify": true,
- "certify_signer": "Shawn Ippotle",
- "commercial_invoice": true,
- "contents_explanation": "T-Shirt purchase",
- "disclaimer": "string",
- "duties_payor": {
- "account": "2323434543",
- "type": "THIRD_PARTY",
- "address": {
- "name": "Patrick Kavanagh",
- "zip": "80331",
- "country": "DE"
}
}, - "exporter_identification": {
- "eori_number": "PL123456790ABCDE",
- "tax_id": {
- "number": "123456789",
- "type": "EIN"
}
}, - "exporter_reference": "string",
- "importer_reference": "string",
- "is_vat_collected": true,
- "invoice": "#123123",
- "license": "string",
- "metadata": "Order ID #123123",
- "notes": "string",
- "address_importer": "257ba08436604d2aaf069caafe7acb2a",
- "contents_type": "MERCHANDISE",
- "eel_pfc": "NOEEI_30_37_a",
- "incoterm": "DDP",
- "invoiced_charges": {
- "currency": "string",
- "total_shipping": "string",
- "total_taxes": "string",
- "total_duties": "string",
- "other_fees": "string"
}, - "items": [
- "5087f181d1dc4b14b73fdbf636498886"
], - "non_delivery_option": "RETURN",
- "object_created": "2014-07-17T01:01:08.306Z",
- "object_id": "e2197a54da9d470480f4f8796cc419cb",
- "object_owner": "shippotle@shippo.com",
- "object_state": "VALID",
- "object_updated": "2014-07-17T01:01:08.306Z",
- "test": true
}
Carriers are the companies who deliver your package. Shippo uses Carrier account objects as credentials to retrieve shipping rates and purchase labels from shipping Carriers.
account_id required | string Unique identifier of the account. Please check the carrier accounts tutorial
page for the |
active | boolean Determines whether the account is active. When creating a shipment, if no |
carrier required | string Carrier token, see Carriers |
Account parameters (object) or FedEx account parameters (object) or UPS account parameters (object) | |
carrier_name | any Carrier name, see Carriers |
is_shippo_account | boolean |
metadata | string |
object_id | string Unique identifier of the carrier account object. |
object_owner | string Username of the user who created the carrier account object. |
Array of objects (CarrierAccountServiceLevel) | |
test | boolean Indicates whether the object has been created in test mode. |
{- "account_id": "****",
- "active": true,
- "carrier": "usps",
- "parameters": { },
- "carrier_name": "USPS",
- "is_shippo_account": false,
- "metadata": "string",
- "object_id": "6aa34d5f6865448fbb1ee93636e98999",
- "object_owner": "bob+22@gmail.com",
- "service_levels": [
- {
- "name": "Priority Mail Express",
- "token": "usps_priority_express",
- "supports_return_labels": true
}
], - "test": false
}
Returns a list of all carrier accounts connected to your Shippo account. These carrier accounts include both Shippo carrier accounts and your own carrier accounts that you have connected to your Shippo account.
Additionally, you can get information about the service levels associated with each carrier account by passing in the ?service_levels=true
query parameter.
Using it appends the property service_levels
to each carrier account.
By default, if the query parameter is omitted, the service_levels
property will not be included in the response.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/carrier_accounts?service_levels=true \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "account_id": "****",
- "active": true,
- "carrier": "usps",
- "parameters": { },
- "carrier_name": "USPS",
- "is_shippo_account": false,
- "metadata": "string",
- "object_id": "6aa34d5f6865448fbb1ee93636e98999",
- "object_owner": "bob+22@gmail.com",
- "service_levels": [
- {
- "name": "Priority Mail Express",
- "token": "usps_priority_express",
- "supports_return_labels": true
}
], - "test": false,
- "object_info": {
- "authentication": {
- "type": "default",
- "status": "disconnected"
}
}
}
]
}
Creates a new carrier account or connects an existing carrier account to the Shippo account.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Examples.
{- "account_id": 321123,
- "carrier": "fedex",
- "metadata": "FedEx Account",
- "parameters": {
- "first_name": "Hippo",
- "from_address_city": "San Francisco",
- "from_address_country_iso2": "US",
- "from_address_st": "250 Union St",
- "from_address_state": "CA",
- "from_address_zip": 94133,
- "last_name": "Hippovich",
- "meter": 118599345,
- "phone_number": 1112223333,
- "smartpost_id": 5902
}, - "test": false
}
{- "account_id": "****",
- "active": true,
- "carrier": "usps",
- "parameters": { },
- "carrier_name": "USPS",
- "is_shippo_account": false,
- "metadata": "string",
- "object_id": "6aa34d5f6865448fbb1ee93636e98999",
- "object_owner": "bob+22@gmail.com",
- "service_levels": [
- {
- "name": "Priority Mail Express",
- "token": "usps_priority_express",
- "supports_return_labels": true
}
], - "test": false
}
Returns an existing carrier account using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/carrier_accounts/b741b99f95e841639b54272834bc478c \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "account_id": "****",
- "active": true,
- "carrier": "usps",
- "parameters": { },
- "carrier_name": "USPS",
- "is_shippo_account": false,
- "metadata": "string",
- "object_id": "6aa34d5f6865448fbb1ee93636e98999",
- "object_owner": "bob+22@gmail.com",
- "service_levels": [
- {
- "name": "Priority Mail Express",
- "token": "usps_priority_express",
- "supports_return_labels": true
}
], - "test": false
}
Updates an existing carrier account object. The account_id and carrier can't be updated. This is because they form the unique identifier together.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Examples.
account_id required | string Unique identifier of the account. Please check the carrier accounts tutorial
page for the |
active | boolean Determines whether the account is active. When creating a shipment, if no |
carrier required | string Carrier token, see Carriers |
Account parameters (object) or FedEx account parameters (object) or UPS account parameters (object) |
{- "account_id": 123356,
- "active": true,
- "carrier": "ups",
- "parameters": { }
}
{- "account_id": "****",
- "active": true,
- "carrier": "usps",
- "parameters": { },
- "carrier_name": "USPS",
- "is_shippo_account": false,
- "metadata": "string",
- "object_id": "6aa34d5f6865448fbb1ee93636e98999",
- "object_owner": "bob+22@gmail.com",
- "service_levels": [
- {
- "name": "Priority Mail Express",
- "token": "usps_priority_express",
- "supports_return_labels": true
}
], - "test": false
}
Used by client applications to setup or reconnect an existing carrier account with carriers that support OAuth 2.0
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Redirects the browser to the carrier login page, with the needed parameters
Invalid parameters provided by the user
Invalid ShippoToken or unsupported carrier account provided by the user
Invalid carrier account provided by the user
curl "https://api.goshippo.com/carrier_accounts/2ccf5af209bb484cb20190d9cadbb61c/signin/initiate?redirect_uri=https://client.example.com/cb&state=SplxlOBeZQQYbYS6WxSbIA" \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "title": "Missing required parameter",
- "detail": "redirect_uri"
}
Adds a Shippo carrier account
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Examples.
{- "carrier": "canada_post",
- "parameters": {
- "canada_post_terms": true,
- "company": "Shippo",
- "email": "hippo@shippo.com",
- "full_name": "Shippo Meister",
- "phone": "1112223333"
}
}
{- "account_id": "****",
- "active": true,
- "carrier": "usps",
- "parameters": { },
- "carrier_name": "USPS",
- "is_shippo_account": false,
- "metadata": "string",
- "object_id": "6aa34d5f6865448fbb1ee93636e98999",
- "object_owner": "bob+22@gmail.com",
- "service_levels": [
- {
- "name": "Priority Mail Express",
- "token": "usps_priority_express",
- "supports_return_labels": true
}
], - "test": false
}
Returns the registration status for the given account for the given carrier
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
import shippo from shippo.models import operations s = shippo.Shippo( api_key_header="ShippoToken <API_TOKEN>", shippo_api_version='2018-02-08', ) res = s.carrier_accounts.get_registration_status(carrier=operations.Carrier.USPS) if res is not None: # handle response pass
{- "carrier_account": "99dc410d295b4a168993cc38809cb123",
- "object_created": "2019-08-24T14:15:22Z",
- "object_owner": "tom@gmail.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "PENDING_TERMS"
}
A manifest is a single-page document with a barcode that carriers can scan to accept all packages into transit without the need to scan each item individually. They are close-outs of shipping labels of a certain day. Some carriers require manifests to process the shipments.
carrier_account required | string ID of carrier account |
shipment_date required | string All shipments to be submitted on this day will be closed out.
Must be in the format |
transactions | Array of strings IDs transactions to use. If you set this to null or not send this parameter, Shippo will automatically assign all applicable transactions. |
address_from required | string ID of the Address object that should be used as pickup address for the scan form. The USPS will validate this address before creating the scan form. |
documents required | Array of strings An array containing the URLs to all returned manifest documents. |
errors | Array of strings An array of codes and messages describing the error that occurred if any. |
object_created required | string <date-time> Date and time of object creation. |
object_id required | string Unique identifier of the given object. |
object_owner required | string Username of the user who created the object. |
object_updated required | string <date-time> Date and time of last object update. |
status required | string Indicates the status of the manifest. |
{- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "shipment_date": "2014-05-16T23:59:59Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
], - "address_from": "d799c2679e644279b59fe661ac8fa488",
- "errors": [
- "string"
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS"
}
The following codes and messages are the possible errors that may occur when creating Manifests.
generic_carrier_error | string There is an error from the carrier that requires investigation. Please contact support with the object ID of this response. |
carrier_account_invalid_credentials | string The carrier account contains invalid credentials. Please update your carrier account with valid credentials. |
carrier_account_access_denied | string There is an issue with your carrier account. Please contact support with the information of your account manager at the carrier and the object ID of this response. |
manifest_invalid_transactions | string For this carrier, all shipments must be manifested on the same day that they are created regardless of shipment date. |
manifest_no_transactions | string There are no shipments in the manifest. Please check that the shipment date of the shipments matches the shipment date of the manifest. |
address_from_missing_zip | string The sender address is missing the zip. Please update the sender address and try again. |
address_from_invalid_zip1 | string The sender address contains an invalid zip. Please update the sender address and try again. |
address_from_invalid_zip2 | string The sender address contains an invalid zip. Please update the sender address and try again. You can also try removing the last 4 digits of the zip. |
address_from_missing_city | string The sender address is missing the city. Please update the sender address and try again. |
address_from_invalid_city | string The sender address contains an invalid city. Please update the sender address and try again. |
address_from_missing_state | string The sender address is missing the state. Please update the sender address and try again. |
address_from_invalid_state | string The sender address contains an invalid state. Please update the sender address and try again. |
address_from_missing_name | string The sender address is missing the name. Please update the sender address and try again. |
shipment_date_missing | string The shipment date is missing. Please update the shipment date and try again. |
shipment_date_invalid | string The shipment date is invalid. Please update the shipment date and try again. |
{- "generic_carrier_error": "string",
- "carrier_account_invalid_credentials": "string",
- "carrier_account_access_denied": "string",
- "manifest_invalid_transactions": "string",
- "manifest_no_transactions": "string",
- "address_from_missing_zip": "string",
- "address_from_invalid_zip1": "string",
- "address_from_invalid_zip2": "string",
- "address_from_missing_city": "string",
- "address_from_invalid_city": "string",
- "address_from_missing_state": "string",
- "address_from_invalid_state": "string",
- "address_from_missing_name": "string",
- "shipment_date_missing": "string",
- "shipment_date_invalid": "string"
}
Returns a list of all manifest objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/manifests/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "shipment_date": "2014-05-16T23:59:59Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
], - "address_from": "d799c2679e644279b59fe661ac8fa488",
- "errors": [
- "string"
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS"
}
]
}
Creates a new manifest object.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Manifest details and contact info.
{- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "shipment_date": "2014-05-16T23:59:59Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
], - "address_from": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "async": true
}
{- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "shipment_date": "2014-05-16T23:59:59Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
], - "address_from": "d799c2679e644279b59fe661ac8fa488",
- "errors": [
- "string"
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS"
}
Returns an existing manifest using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/manifests/0fadebf6f60c4aca95fa01bcc59c79ae \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "shipment_date": "2014-05-16T23:59:59Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
], - "address_from": "d799c2679e644279b59fe661ac8fa488",
- "errors": [
- "string"
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS"
}
A pickup is when you schedule a carrier to collect a package for delivery. Use Shippo’s pickups endpoint to schedule pickups with USPS and DHL Express for eligible shipments that you have already created.
carrier_account required | string The object ID of your USPS or DHL Express carrier account. You can retrieve this from your Rate requests or our Carrier Accounts endpoint. |
required | object (Location) Location where the parcel(s) will be picked up. |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
requested_end_time required | string <date-time> The latest that you requested your parcels to be available for pickup. Expressed in the timezone specified in the response. |
requested_start_time required | string <date-time> The earliest that you requested your parcels to be ready for pickup. Expressed in the timezone specified in the response. |
transactions required | Array of strings The transaction(s) object ID(s) for the parcel(s) that need to be picked up. |
object_created | string <date-time> Date and time of Pickup creation. |
object_id | string Unique identifier of the given Pickup object. |
object_updated | string <date-time> Date and time of last Pickup update. |
confirmed_start_time | string <datetime> The earliest that your parcels will be ready for pickup, confirmed by the carrier. Expressed in the timezone specified in the response. |
confirmed_end_time | string <datetime> The latest that your parcels will be available for pickup, confirmed by the carrier. Expressed in the timezone specified in the response. |
cancel_by_time | string <datetime> The latest time to cancel a pickup. Expressed in the timezone specified in the response. To cancel a pickup, you will need to contact the carrier directly. The ability to cancel a pickup through Shippo may be released in future iterations. |
status | string Indicates the status of the pickup. |
confirmation_code | string Pickup's confirmation code returned by the carrier.
To edit or cancel a pickup, you will need to contact USPS or DHL Express directly and provide your |
timezone | string The pickup time windows will be in the time zone specified here, not UTC. |
messages | Array of strings An array containing strings of any messages generated during validation. |
is_test | boolean Indicates whether the object has been created in test mode. |
{- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "location": {
- "address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "building_location_type": "Front Door",
- "building_type": "apartment",
- "instructions": "Behind screen door"
}, - "metadata": "string",
- "requested_end_time": "2019-08-24T14:15:22Z",
- "requested_start_time": "2019-08-24T14:15:22Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "confirmed_start_time": "2020-05-09T12:00:00Z",
- "confirmed_end_time": "2020-05-09T23:59:59.999Z",
- "cancel_by_time": "2020-05-09T08:00:00Z",
- "status": "CONFIRMED",
- "confirmation_code": "WTC310058750",
- "timezone": "US/Pacific",
- "messages": [ ],
- "is_test": true
}
Creates a pickup object. This request is for a carrier to come to a specified location to take a package for shipping.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Shippo’s pickups endpoint allows you to schedule pickups with USPS and DHL Express for eligible shipments that you have already created.
carrier_account required | string The object ID of your USPS or DHL Express carrier account. You can retrieve this from your Rate requests or our Carrier Accounts endpoint. |
required | object (Location) Location where the parcel(s) will be picked up. |
metadata | string A string of up to 100 characters that can be filled with any additional information you want to attach to the object. |
requested_end_time required | string <date-time> The latest that you requested your parcels to be available for pickup. Expressed in the timezone specified in the response. |
requested_start_time required | string <date-time> The earliest that you requested your parcels to be ready for pickup. Expressed in the timezone specified in the response. |
transactions required | Array of strings The transaction(s) object ID(s) for the parcel(s) that need to be picked up. |
{- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "location": {
- "address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "building_location_type": "Front Door",
- "building_type": "apartment",
- "instructions": "Behind screen door"
}, - "metadata": "string",
- "requested_end_time": "2019-08-24T14:15:22Z",
- "requested_start_time": "2019-08-24T14:15:22Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
]
}
{- "carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a",
- "location": {
- "address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "building_location_type": "Front Door",
- "building_type": "apartment",
- "instructions": "Behind screen door"
}, - "metadata": "string",
- "requested_end_time": "2019-08-24T14:15:22Z",
- "requested_start_time": "2019-08-24T14:15:22Z",
- "transactions": [
- "adcfdddf8ec64b84ad22772bce3ea37a"
], - "object_created": "2019-08-24T14:15:22Z",
- "object_id": "string",
- "object_updated": "2019-08-24T14:15:22Z",
- "confirmed_start_time": "2020-05-09T12:00:00Z",
- "confirmed_end_time": "2020-05-09T23:59:59.999Z",
- "cancel_by_time": "2020-05-09T08:00:00Z",
- "status": "CONFIRMED",
- "confirmation_code": "WTC310058750",
- "timezone": "US/Pacific",
- "messages": [ ],
- "is_test": true
}
An order is a request from a customer to purchase goods from a merchant. Use the orders object to load orders from your system to the Shippo dashboard. You can use the orders object to create, retrieve, list, and manage orders programmatically. You can also retrieve shipping rates, purchase labels, and track shipments for each order.
currency | string Required if total_price is provided |
notes | string Custom buyer- or seller-provided notes about the order. |
order_number | string An alphanumeric identifier for the order used by the seller/buyer. This identifier doesn't need to be unique. |
order_status | string (OrderStatusEnum) Current state of the order. See the orders tutorial for the logic of how the status is handled. |
placed_at required | string Date and time when the order was placed. This datetime can be different from the datetime of the order object creation on Shippo. |
shipping_cost | string Amount paid by the buyer for shipping. This amount can be different from the price the seller will actually pay for shipping. |
shipping_cost_currency | string Required if shipping_cost is provided |
shipping_method | string Shipping method (carrier + service or other free text description) chosen by the buyer. This value can be different from the shipping method the seller will actually choose. |
subtotal_price | string |
total_price | string Total amount paid by the buyer for this order. |
total_tax | string Total tax amount paid by the buyer for this order. |
weight | string Total weight of the order. |
weight_unit | string (WeightUnitEnum) The unit used for weight. |
object (AddressFrom) Address object of the sender / seller. Will be returned expanded by default. | |
required | object (AddressTo) Address object of the recipient / buyer. Will be returned expanded by default. |
Array of objects (LineItem) Array of line item objects representing the items in this order. All objects will be returned expanded by default. | |
object_id | string Unique identifier of the order object. |
object_owner | string Username of the user who created the object. |
shop_app | string (OrderShopAppEnum) Platform the order was created on and, if applicable, imported from. Orders created via the Shippo API or dashboard will have the value "Shippo". |
transactions | Array of objects Array of transaction objects representing all shipping labels purchased for this order. All objects are returned expanded with a limited number of fields by default. |
{- "currency": "USD",
- "notes": "This customer is a VIP",
- "order_number": "#1068",
- "order_status": "PAID",
- "placed_at": "2016-09-23T01:28:12Z",
- "shipping_cost": "12.83",
- "shipping_cost_currency": "USD",
- "shipping_method": "USPS First Class Package",
- "subtotal_price": "12.1",
- "total_price": "24.93",
- "total_tax": "0.0",
- "weight": "0.4",
- "weight_unit": "lb",
- "from_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "to_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "line_items": [
- {
- "currency": "USD",
- "manufacture_country": "US",
- "max_delivery_time": "2016-07-23T00:00:00Z",
- "max_ship_time": "2016-07-23T00:00:00Z",
- "quantity": 20,
- "sku": "HM-123",
- "title": "Hippo Magazines",
- "total_price": "12.1",
- "variant_title": "June Edition",
- "weight": "0.4",
- "weight_unit": "lb",
- "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"
}
], - "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "shop_app": "Shippo",
- "transactions": [
- { }
]
}
Line Items, and their corresponding abstract Products and Variants, might be exposed as a separate resource in the future. Currently it's a nested object within the order resource.
A line item is an individual object in an order. For example, if your order contains a t-shirt, shorts, and a jacket, each item is represented by a line item.currency | string Currency of the |
manufacture_country | string Country the item was manufactured in. In the Shippo dashboard, this value will be used ot pre-fill the customs declaration when creating a label for this order. |
max_delivery_time | string <date-time> The date and time this item needs to be delivered by, i.e. by when the carrier delivers it to the buyer. This value is used by some platforms such as eBay to measure a seller's shipping time and performance. It will be displayed in the Shippo dashboard. |
max_ship_time | string <date-time> The date and time this item needs to be fulfilled by, i.e. by when the shipping label needs to be created and handed over to the carrier. This value is used by some platforms such as eBay to measure a seller's handling time and performance. It will be displayed in the Shippo dashboard. |
quantity | integer <int64> The quantity of this item in this order. |
sku | string The stock keeping unit value of this item. |
title | string Title of the line item. |
total_price | string Total price paid by the buyer for this item (or these items, if quantity > 1). |
variant_title | string A variant is a specific variation of an item (e.g. |
weight | string Total weight of this/these item(s). Instead of specifying the weight of all items,
you can also set the |
weight_unit | string (WeightUnitEnum) The unit used for weight. |
object_id | string Unique identifier of the line item object. |
{- "currency": "USD",
- "manufacture_country": "US",
- "max_delivery_time": "2016-07-23T00:00:00Z",
- "max_ship_time": "2016-07-23T00:00:00Z",
- "quantity": 20,
- "sku": "HM-123",
- "title": "Hippo Magazines",
- "total_price": "12.1",
- "variant_title": "June Edition",
- "weight": "0.4",
- "weight_unit": "lb",
- "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"
}
Returns a list of all order objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/orders/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "currency": "USD",
- "notes": "This customer is a VIP",
- "order_number": "#1068",
- "order_status": "PAID",
- "placed_at": "2016-09-23T01:28:12Z",
- "shipping_cost": "12.83",
- "shipping_cost_currency": "USD",
- "shipping_method": "USPS First Class Package",
- "subtotal_price": "12.1",
- "total_price": "24.93",
- "total_tax": "0.0",
- "weight": "0.4",
- "weight_unit": "lb",
- "from_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "to_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "line_items": [
- {
- "currency": "USD",
- "manufacture_country": "US",
- "max_delivery_time": "2016-07-23T00:00:00Z",
- "max_ship_time": "2016-07-23T00:00:00Z",
- "quantity": 20,
- "sku": "HM-123",
- "title": "Hippo Magazines",
- "total_price": "12.1",
- "variant_title": "June Edition",
- "weight": "0.4",
- "weight_unit": "lb",
- "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"
}
], - "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "shop_app": "Shippo",
- "transactions": [
- { }
]
}
]
}
Creates a new order object.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Order details.
currency | string Required if total_price is provided |
notes | string Custom buyer- or seller-provided notes about the order. |
order_number | string An alphanumeric identifier for the order used by the seller/buyer. This identifier doesn't need to be unique. |
order_status | string (OrderStatusEnum) Current state of the order. See the orders tutorial for the logic of how the status is handled. |
placed_at required | string Date and time when the order was placed. This datetime can be different from the datetime of the order object creation on Shippo. |
shipping_cost | string Amount paid by the buyer for shipping. This amount can be different from the price the seller will actually pay for shipping. |
shipping_cost_currency | string Required if shipping_cost is provided |
shipping_method | string Shipping method (carrier + service or other free text description) chosen by the buyer. This value can be different from the shipping method the seller will actually choose. |
subtotal_price | string |
total_price | string Total amount paid by the buyer for this order. |
total_tax | string Total tax amount paid by the buyer for this order. |
weight | string Total weight of the order. |
weight_unit | string (WeightUnitEnum) The unit used for weight. |
object (AddressFromCreateRequest) Address object of the sender / seller. Will be returned expanded by default.. | |
required | object (AddressToCreateRequest) Address object of the recipient / buyer. Will be returned expanded by default. |
Array of objects (LineItemCreateRequest) Array of line item objects representing the items in this order. All objects will be returned expanded by default. |
{- "currency": "USD",
- "notes": "This customer is a VIP",
- "order_number": "#1068",
- "order_status": "PAID",
- "placed_at": "2016-09-23T01:28:12Z",
- "shipping_cost": "12.83",
- "shipping_cost_currency": "USD",
- "shipping_method": "USPS First Class Package",
- "subtotal_price": "12.1",
- "total_price": "24.93",
- "total_tax": "0.0",
- "weight": "0.4",
- "weight_unit": "lb",
- "from_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "to_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "validate": true
}, - "line_items": [
- {
- "currency": "USD",
- "manufacture_country": "US",
- "max_delivery_time": "2016-07-23T00:00:00Z",
- "max_ship_time": "2016-07-23T00:00:00Z",
- "quantity": 20,
- "sku": "HM-123",
- "title": "Hippo Magazines",
- "total_price": "12.1",
- "variant_title": "June Edition",
- "weight": "0.4",
- "weight_unit": "lb"
}
]
}
{- "currency": "USD",
- "notes": "This customer is a VIP",
- "order_number": "#1068",
- "order_status": "PAID",
- "placed_at": "2016-09-23T01:28:12Z",
- "shipping_cost": "12.83",
- "shipping_cost_currency": "USD",
- "shipping_method": "USPS First Class Package",
- "subtotal_price": "12.1",
- "total_price": "24.93",
- "total_tax": "0.0",
- "weight": "0.4",
- "weight_unit": "lb",
- "from_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "to_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "line_items": [
- {
- "currency": "USD",
- "manufacture_country": "US",
- "max_delivery_time": "2016-07-23T00:00:00Z",
- "max_ship_time": "2016-07-23T00:00:00Z",
- "quantity": 20,
- "sku": "HM-123",
- "title": "Hippo Magazines",
- "total_price": "12.1",
- "variant_title": "June Edition",
- "weight": "0.4",
- "weight_unit": "lb",
- "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"
}
], - "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "shop_app": "Shippo",
- "transactions": [
- { }
]
}
Retrieves an existing order using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/orders/4f2bc588e4e5446cb3f9fdb7cd5e190b/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "currency": "USD",
- "notes": "This customer is a VIP",
- "order_number": "#1068",
- "order_status": "PAID",
- "placed_at": "2016-09-23T01:28:12Z",
- "shipping_cost": "12.83",
- "shipping_cost_currency": "USD",
- "shipping_method": "USPS First Class Package",
- "subtotal_price": "12.1",
- "total_price": "24.93",
- "total_tax": "0.0",
- "weight": "0.4",
- "weight_unit": "lb",
- "from_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "to_address": {
- "name": "Shwan Ippotle",
- "company": "Shippo",
- "street1": "215 Clayton St.",
- "street2": "string",
- "street3": "",
- "street_no": "",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94117",
- "country": "US",
- "phone": "+1 555 341 9393",
- "email": "shippotle@shippo.com",
- "is_residential": true,
- "metadata": "Customer ID 123456",
- "is_complete": true,
- "latitude": 0,
- "longitude": 0,
- "object_created": "2014-07-09T02:19:13.174Z",
- "object_id": "d799c2679e644279b59fe661ac8fa488",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2014-07-09T02:19:13.174Z",
- "validation_results": {
- "is_valid": false,
- "messages": [
- {
- "code": "Unknown Street",
- "source": "Shippo Address Validator",
- "text": "City, State and ZIP Code are valid, but street address is not a match.",
- "type": "address_warning"
}
]
}, - "test": false
}, - "line_items": [
- {
- "currency": "USD",
- "manufacture_country": "US",
- "max_delivery_time": "2016-07-23T00:00:00Z",
- "max_ship_time": "2016-07-23T00:00:00Z",
- "quantity": 20,
- "sku": "HM-123",
- "title": "Hippo Magazines",
- "total_price": "12.1",
- "variant_title": "June Edition",
- "weight": "0.4",
- "weight_unit": "lb",
- "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"
}
], - "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "shop_app": "Shippo",
- "transactions": [
- { }
]
}
Refunds are reimbursements for successfully created but unused shipping labels or other charges.
object_created | string <date-time> Date and time of object creation. |
object_id | string Unique identifier of the given object. |
object_owner | string Username of the user who created the object. |
object_updated | string <date-time> Date and time of last object update. |
status | string Indicates the status of the Refund. |
test | boolean Indicates whether the object has been created in test mode. |
transaction | string Object ID of the Transaction to be refunded. |
{- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS",
- "test": true,
- "transaction": "915d94940ea54c3a80cbfa328722f5a1"
}
Creates a new refund object.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Refund details
{- "async": false,
- "transaction": "915d94940ea54c3a80cbfa328722f5a1"
}
{- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS",
- "test": true,
- "transaction": "915d94940ea54c3a80cbfa328722f5a1"
}
Returns a list all refund objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/refunds/ \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS",
- "test": true,
- "transaction": "915d94940ea54c3a80cbfa328722f5a1"
}
]
}
Returns an existing rate using a rate object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/refunds/d7c811cff9e24e4387418876f1ffd371 \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2019-08-24T14:15:22Z",
- "status": "SUCCESS",
- "test": true,
- "transaction": "915d94940ea54c3a80cbfa328722f5a1"
}
A service group is a set of service levels grouped together. Rates at checkout uses services groups to present available shipping options to customers in their shopping basket.
description required | string Description for the service group |
flat_rate | string String representation of an amount to be returned as the flat rate
if 1. The service group is of type |
flat_rate_currency | string required unless type is |
free_shipping_threshold_currency | string optional unless type is |
free_shipping_threshold_min | string For service groups of type |
name required | string Name for the service group that will be shown to customers in the response |
rate_adjustment | integer <int64> The amount in percent (%) that the service group's returned rate should be adjusted. For example, if this field is set to 5 and the matched rate price is $5.00, the returned value of the service group will be $5.25. Negative integers are also accepted and will discount the rate price by the defined percentage amount. |
type required | string (ServiceGroupTypeEnum) The type of the service group. |
object_id required | string The unique identifier of the given Service Group object. |
is_active | boolean True if the service group is enabled, false otherwise. |
required | Array of objects (ServiceGroupAccountAndServiceLevel) |
{- "description": "USPS shipping options",
- "flat_rate": "5",
- "flat_rate_currency": "USD",
- "free_shipping_threshold_currency": "USD",
- "free_shipping_threshold_min": "5",
- "name": "USPS Shipping",
- "rate_adjustment": 15,
- "type": "FLAT_RATE",
- "object_id": "80feb1633d4a43c898f005850",
- "is_active": true,
- "service_levels": [
- {
- "account_object_id": "80feb1633d4a43c898f0058506cfd82d",
- "service_level_token": "ups_next_day_air_saver"
}
]
}
Returns a list of service group objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/service-groups \ -H "Authorization: ShippoToken <API_TOKEN>" \ -H "Content-Type: application/json"
[- {
- "description": "USPS shipping options",
- "flat_rate": "5",
- "flat_rate_currency": "USD",
- "free_shipping_threshold_currency": "USD",
- "free_shipping_threshold_min": "5",
- "name": "USPS Shipping",
- "rate_adjustment": 15,
- "type": "FLAT_RATE",
- "object_id": "80feb1633d4a43c898f005850",
- "is_active": true,
- "service_levels": [
- {
- "account_object_id": "80feb1633d4a43c898f0058506cfd82d",
- "service_level_token": "ups_next_day_air_saver"
}
]
}
]
Creates a new service group.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "description": "USPS shipping options",
- "flat_rate": "5",
- "flat_rate_currency": "USD",
- "free_shipping_threshold_currency": "USD",
- "free_shipping_threshold_min": "5",
- "name": "USPS Shipping",
- "rate_adjustment": 15,
- "type": "FLAT_RATE",
- "service_levels": [
- {
- "account_object_id": "80feb1633d4a43c898f0058506cfd82d",
- "service_level_token": "ups_next_day_air_saver"
}
]
}
{- "description": "USPS shipping options",
- "flat_rate": "5",
- "flat_rate_currency": "USD",
- "free_shipping_threshold_currency": "USD",
- "free_shipping_threshold_min": "5",
- "name": "USPS Shipping",
- "rate_adjustment": 15,
- "type": "FLAT_RATE",
- "object_id": "80feb1633d4a43c898f005850",
- "is_active": true,
- "service_levels": [
- {
- "account_object_id": "80feb1633d4a43c898f0058506cfd82d",
- "service_level_token": "ups_next_day_air_saver"
}
]
}
Updates an existing service group object.
The object_id cannot be updated as it is the unique identifier for the object.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "description": "USPS shipping options",
- "flat_rate": "5",
- "flat_rate_currency": "USD",
- "free_shipping_threshold_currency": "USD",
- "free_shipping_threshold_min": "5",
- "name": "USPS Shipping",
- "rate_adjustment": 15,
- "type": "FLAT_RATE",
- "object_id": "80feb1633d4a43c898f005850",
- "is_active": true,
- "service_levels": [
- {
- "account_object_id": "80feb1633d4a43c898f0058506cfd82d",
- "service_level_token": "ups_next_day_air_saver"
}
]
}
{- "description": "USPS shipping options",
- "flat_rate": "5",
- "flat_rate_currency": "USD",
- "free_shipping_threshold_currency": "USD",
- "free_shipping_threshold_min": "5",
- "name": "USPS Shipping",
- "rate_adjustment": 15,
- "type": "FLAT_RATE",
- "object_id": "80feb1633d4a43c898f005850",
- "is_active": true,
- "service_levels": [
- {
- "account_object_id": "80feb1633d4a43c898f0058506cfd82d",
- "service_level_token": "ups_next_day_air_saver"
}
]
}
Deletes an existing service group using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
The service group was successfully deleted.
curl -x DELETE https://api.goshippo.com/service-groups/80feb1633d4a43c898f0058506cfd82d \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396" \
{ }
Rates at checkout is a tool for merchants to display up-to-date shipping estimates based on what's in their customers cart and where they’re shipping to. Merchants set up curated shipping options for customers in the checkout flow based on data in the shopping cart. The request must include the to address and item information. Optional fields are the from address and package information. If the optional fields are not included, the service will use the default address and/or package configured for rates at checkout. The response is a list of shipping options based on the Service Group configuration. (see Service Group configuration for details).
amount | string Final Rate price, expressed in the currency used in the sender's country. |
amount_local | string Final Rate price, expressed in the currency used in the recipient's country. |
currency | string Currency used in the sender's country, refers to |
currency_local | string Currency used in the recipient's country, refers to |
estimated_days | integer <int64> The estimated days in transit of the rate that powers the shipping option, if available. |
title | string The name of the service group being returned |
{- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "estimated_days": 2,
- "title": "Shipping Option 1"
}
Assign one of your user parcel templates to be the default used when generating Live Rates. This template will be used by default when generating Live Rates, unless you explicitly provide a parcel in the Live Rates request.
distance_unit | string (DistanceUnitEnum) The measure unit used for length, width and height. Required, but if using a preset carrier template then this field must be empty. |
height | string The height of the package, in units specified by the |
length | string The length of the package, in units specified by the |
name | string The name of the User Parcel Template |
weight | string The weight of the package, in units specified by the weight_unit attribute. |
weight_unit | string (WeightUnitEnum) The unit used for weight. |
width | string The width of the package, in units specified by the |
object_created | string <date-time> Date and time of User Parcel Template creation |
object_id | string Unique identifier of the given User Parcel Template object |
object_owner | string Username of the user who created the User Parcel Template object |
object_updated | string <date-time> Date and time of last update on User Parcel Template |
object (CarrierParcelTemplate) |
{- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
Initiates a live rates request. Include either the object ID for an existing address record or a fully formed address object when entering an address value. You can also enter the object ID of an existing user parcel template or a fully formed user parcel template object as the parcel value.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
Generate rates at checkout
string or AddressCompleteCreateRequest (object) The sender address, which includes your name, company name, street address, city, state, zip code, country, phone number, and email address (strings). Special characters should not be included in any address element, especially name, company, and email. | |
required | string or AddressCompleteCreateRequest (object) The recipient address, which includes the recipient's name, company name, street address, city, state, zip code, country, phone number, and email address (strings). Special characters should not be included in any address element, especially name, company, and email. |
required | Array of objects (LineItem) Array of Line Item objects |
string or Parcel (object) Object ID for an existing User Parcel Template OR a fully formed Parcel object. |
{- "address_from": "string",
- "address_to": "string",
- "line_items": [
- {
- "currency": "USD",
- "manufacture_country": "US",
- "max_delivery_time": "2016-07-23T00:00:00Z",
- "max_ship_time": "2016-07-23T00:00:00Z",
- "quantity": 20,
- "sku": "HM-123",
- "title": "Hippo Magazines",
- "total_price": "12.1",
- "variant_title": "June Edition",
- "weight": "0.4",
- "weight_unit": "lb",
- "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"
}
], - "parcel": "5df144dca289442cv7a06"
}
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "count": 123,
- "results": [
- {
- "amount": "5.5",
- "amount_local": "5.5",
- "currency": "USD",
- "currency_local": "USD",
- "estimated_days": 2,
- "title": "Shipping Option 1"
}
]
}
Retrieve and display the currently configured default parcel template for live rates.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
curl https://api.goshippo.com/live-rates/settings/parcel-template \ -H "Authorization: ShippoToken <API_TOKEN>" \ -H "Content-Type: application/json"
{- "result": {
- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
}
Update the currently configured default parcel template for live rates. The object_id in the request payload should identify the user parcel template to be the new default.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "object_id": "b958d3690bb04bb8b2986724872750f5"
}
{- "result": {
- "distance_unit": "in",
- "height": "6",
- "length": "10",
- "name": "My Custom Template",
- "weight": "12",
- "weight_unit": "lb",
- "width": "8",
- "object_created": "2013-12-11T19:38:09.729Z",
- "object_id": "b958d3690bb04bb8b2986724872750f5",
- "object_owner": "shippotle@shippo.com",
- "object_updated": "2013-12-12T19:38:09.729Z",
- "template": {
- "carrier": "FedEx",
- "distance_unit": "in",
- "height": "1.5",
- "is_variable_dimensions": false,
- "length": "12.375",
- "name": "FedEx® Small Box (S1)",
- "token": "FedEx_Box_Small_1",
- "width": "10.875"
}
}
}
Clears the currently configured default parcel template for live rates.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
The parcel template was successfully deleted.
curl -X DELETE https://api.goshippo.com/live-rates/settings/parcel-template \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396" \
{ }
Shippo Accounts are used by Shippo Platform Accounts to create and manage Managed Shippo Accounts. Managed Shippo Accounts are headless accounts that represent your customers. They are opaque to your end customers, meaning customers do not need to create their own Shippo login or have a billing relationship with Shippo. They can be used by marketplaces, e-commerce platforms, and third-party logistics providers who want to offer, seamless, built-in shipping functionality to their customers. See our guide for more details.
email required | string |
first_name required | string |
last_name required | string |
company_name | string |
object_created | string <date-time> |
object_id | string |
object_updated | string <date-time> |
{- "email": "hippo@shippo.com",
- "first_name": "Shippo",
- "last_name": "Meister",
- "company_name": "Acme",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_updated": "2019-08-24T14:15:22Z"
}
Returns a list of Shippo Managed Accounts objects.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
import shippo s = shippo.Shippo( api_key_header="ShippoToken <API_TOKEN>", shippo_api_version='2018-02-08', ) res = s.shippo_accounts.list(page=1, results=25) if res is not None: # handle response pass
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "email": "hippo@shippo.com",
- "first_name": "Shippo",
- "last_name": "Meister",
- "company_name": "Acme",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_updated": "2019-08-24T14:15:22Z"
}
]
}
Creates a new Shippo Managed Account.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "email": "hippo@shippo.com",
- "first_name": "Shippo",
- "last_name": "Meister",
- "company_name": "Acme"
}
{- "email": "hippo@shippo.com",
- "first_name": "Shippo",
- "last_name": "Meister",
- "company_name": "Acme",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_updated": "2019-08-24T14:15:22Z"
}
Returns a Shippo Managed Account using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
import shippo s = shippo.Shippo( api_key_header="ShippoToken <API_TOKEN>", shippo_api_version='2018-02-08', ) res = s.shippo_accounts.get(shippo_account_id='<value>') if res is not None: # handle response pass
{- "email": "hippo@shippo.com",
- "first_name": "Shippo",
- "last_name": "Meister",
- "company_name": "Acme",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_updated": "2019-08-24T14:15:22Z"
}
Updates a Shippo Managed Account using an object ID.
SHIPPO-API-VERSION | string Optional string used to pick a non-default API version to use. See our API version guide. Example: 2018-02-08 |
{- "email": "hippo@shippo.com",
- "first_name": "Shippo",
- "last_name": "Meister",
- "company_name": "Acme"
}
{- "email": "hippo@shippo.com",
- "first_name": "Shippo",
- "last_name": "Meister",
- "company_name": "Acme",
- "object_created": "2019-08-24T14:15:22Z",
- "object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
- "object_updated": "2019-08-24T14:15:22Z"
}
Token | Carrier name |
---|---|
airterra | Airterra |
apc_postal | APC Postal |
apg | APG |
aramex | Aramex |
asendia_us | Asendia US |
australia_post | Australia Post (also used for Startrack) |
axlehire | Jitsu |
better_trucks | BetterTrucks |
borderguru | BorderGuru |
boxberry | Boxberry |
bring | Bring (also used for Posten Norge) |
canada_post | Canada Post |
cdl | CDL |
chronopost | Chronopost |
collect_plus | CollectPlus |
correios_br | CorreiosBR |
correos_espana | Correos España |
couriersplease | Couriers Please |
colissimo | Colissimo |
deutsche_post | Deutsche Post |
dhl_benelux | DHL Benelux |
dhl_ecommerce | DHL eCommerce |
dhl_express | DHL Express |
dhl_germany_c2c | DHL Germany C2C |
dhl_germany | DHL Germany |
dpd_de | DPD GERMANY |
dpd_uk | DPD UK |
estafeta | Estafeta |
fastway_australia | Aramex |
fedex | FedEx |
globegistics | Globegistics (now Asendia) |
gls_us | GLS US |
gophr | Gophr |
gso | GSO |
hermes_germany_b2c | Hermes Germany B2C |
hermes_uk | Evri UK |
hongkong_post | Hongkong Post |
lasership | LaserShip |
lso | LSO |
mondial_relay | Mondial Relay |
new_zealand_post | New Zealand Post (also used for Pace and CourierPost) |
nippon_express | Nippon Express |
ontrac | OnTrac |
orangeds | OrangeDS |
parcelforce | Parcelforce |
passport | Passport |
pcf | PCF |
poste_italiane | Poste Italiane |
posti | Posti |
purolator | Purolator |
royal_mail | Royal Mail |
rr_donnelley | ePost Global |
russian_post | Russian Post |
sendle | Sendle |
skypostal | SkyPostal |
stuart | Stuart |
swyft | Swyft |
uds | UDS (United Delivery Service) |
ups | UPS |
usps | USPS |
veho | Veho |
Token | Carrier name |
---|---|
airterra | Airterra |
apc_postal | APC Postal |
apg | APG |
aramex | Aramex |
asendia_us | Asendia US |
australia_post | Australia Post (also used for Startrack) |
axlehire | Jitsu |
better_trucks | BetterTrucks |
borderguru | BorderGuru |
boxberry | Boxberry |
bring | Bring (also used for Posten Norge) |
canada_post | Canada Post |
cdl | CDL |
chronopost | Chronopost |
collect_plus | CollectPlus |
correios_br | CorreiosBR |
correos_espana | Correos España |
couriersplease | Couriers Please |
colissimo | Colissimo |
deutsche_post | Deutsche Post |
dhl_benelux | DHL Benelux |
dhl_ecommerce | DHL eCommerce |
dhl_express | DHL Express |
dhl_germany_c2c | DHL Germany C2C |
dhl_germany | DHL Germany |
dpd_de | DPD GERMANY |
dpd_uk | DPD UK |
estafeta | Estafeta |
fastway_australia | Aramex |
fedex | FedEx |
globegistics | Globegistics (now Asendia) |
gls_us | GLS US |
gophr | Gophr |
gso | GSO |
hermes_germany_b2c | Hermes Germany B2C |
hermes_uk | Evri UK |
hongkong_post | Hongkong Post |
lasership | LaserShip |
lso | LSO |
mondial_relay | Mondial Relay |
new_zealand_post | New Zealand Post (also used for Pace and CourierPost) |
nippon_express | Nippon Express |
ontrac | OnTrac |
orangeds | OrangeDS |
parcelforce | Parcelforce |
passport | Passport |
pcf | PCF |
poste_italiane | Poste Italiane |
posti | Posti |
purolator | Purolator |
royal_mail | Royal Mail |
rr_donnelley | ePost Global |
russian_post | Russian Post |
sendle | Sendle |
skypostal | SkyPostal |
stuart | Stuart |
swyft | Swyft |
uds | UDS (United Delivery Service) |
ups | UPS |
usps | USPS |
veho | Veho |
"airterra"
Token | Service name |
---|---|
usps_priority | Priority Mail |
usps_priority_express | Priority Mail Express |
usps_media_mail | Media Mail, only for existing Shippo customers with grandfathered Media Mail option. |
usps_priority_mail_international | Priority Mail International |
usps_priority_mail_express_international | Priority Mail Express International |
usps_first_class_package_international_service | First Class Package International |
usps_ground_advantage | Ground Advantage |
"usps_priority"
A predefined package used by one or multiple carriers. See below for all available values and the corresponding tokens. When a template is given, the parcel dimensions do not have to be sent, the dimensions below will instead be used. The parcel weight is not affected by the use of a template.
If template is passed, length
, width
, height
, and distance_unit
are not required
Token | Name | Dimensions |
---|---|---|
FedEx_Box_10kg | FedEx® 10kg Box | 15.81 x 12.94 x 10.19 in |
FedEx_Box_25kg | FedEx® 25kg Box | 54.80 x 42.10 x 33.50 in |
FedEx_Box_Extra_Large_1 | FedEx® Extra Large Box (X1) | 11.88 x 11.00 x 10.75 in |
FedEx_Box_Extra_Large_2 | FedEx® Extra Large Box (X2) | 15.75 x 14.13 x 6.00 in |
FedEx_Box_Large_1 | FedEx® Large Box (L1) | 17.50 x 12.38 x 3.00 in |
FedEx_Box_Large_2 | FedEx® Large Box (L2) | 11.25 x 8.75 x 7.75 in |
FedEx_Box_Medium_1 | FedEx® Medium Box (M1) | 13.25 x 11.50 x 2.38 in |
FedEx_Box_Medium_2 | FedEx® Medium Box (M2) | 11.25 x 8.75 x 4.38 in |
FedEx_Box_Small_1 | FedEx® Small Box (S1) | 12.38 x 10.88 x 1.50 in |
FedEx_Box_Small_2 | FedEx® Small Box (S2) | 11.25 x 8.75 x 4.38 in |
FedEx_Envelope | FedEx® Envelope | 12.50 x 9.50 x 0.80 in |
FedEx_Padded_Pak | FedEx® Padded Pak | 11.75 x 14.75 x 2.00 in |
FedEx_Pak_1 | FedEx® Large Pak | 15.50 x 12.00 x 0.80 in |
FedEx_Pak_2 | FedEx® Small Pak | 12.75 x 10.25 x 0.80 in |
FedEx_Tube | FedEx® Tube | 38.00 x 6.00 x 6.00 in |
FedEx_XL_Pak | FedEx® Extra Large Pak | 17.50 x 20.75 x 2.00 in |
"FedEx_Box_10kg"
"Shippo Address Validator"
"verification_error"
B13A Option details are obtained by filing a B13A Canada Export Declaration via the Canadian Export Reporting System (CERS). More information on reporting commercial exports from Canada. Allowed values available here
B13A Option details are obtained by filing a B13A Canada Export Declaration via the Canadian Export Reporting System (CERS). More information on reporting commercial exports from Canada. Allowed values available here
"FILED_ELECTRONICALLY"
EEL / PFC type of the shipment. For most shipments from the US to CA, NOEEI_30_36
is applicable; for most
other shipments from the US, NOEEI_30_37_a
is applicable.
Allowed values available here
EEL / PFC type of the shipment. For most shipments from the US to CA, NOEEI_30_36
is applicable; for most
other shipments from the US, NOEEI_30_37_a
is applicable.
Allowed values available here
"NOEEI_30_37_a"
The incoterm reference of the shipment. FCA is available for DHL Express and FedEx only. eDAP is available for DPD UK only. DAP is available for DHL Express and DPD UK. If expecting DAP for other carriers, please use DDU. Allowed values available here
The incoterm reference of the shipment. FCA is available for DHL Express and FedEx only. eDAP is available for DPD UK only. DAP is available for DHL Express and DPD UK. If expecting DAP for other carriers, please use DDU. Allowed values available here
"DDP"
Indicates how the carrier should proceed in case the shipment can't be delivered. Allowed values available here
Indicates how the carrier should proceed in case the shipment can't be delivered. Allowed values available here
"ABANDON"