rates
Get Shipping Rates
Changed onIt's not uncommon that you want to give your customer the choice between whether they want to ship the fastest, cheapest, or the most trusted route. Most companies don't solely ship things using a single shipping option; so we provide functionality to show you all your options!
post/v1/rates
Request
- Base URLhttps://api.shipengine.com
- URLhttps://api.shipengine.com/v1/rates
- AuthAPI key in header API-Key
Request body
Example request
{
"rate_options": {
"carrier_ids": [
"se-28529731"
]
}
}Response
The request was a success.
Example response
{
"shipment_id": "se-28529731",
"carrier_id": "se-28529731",
"service_code": "usps_first_class_mail",
"shipping_rule_id": "se-28529731",
"items": [
{
"asin": "B00005N5PF"
}
],
"ship_date": "2018-09-23T00:00:00.000Z",
"created_at": "2018-09-23T15:00:00.000Z",
"modified_at": "2018-09-23T15:00:00.000Z",
"ship_to": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA",
"geolocation": [
{
"type": "what3words",
"value": "cats.with.thumbs"
}
]
},
"ship_from": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA"
},
"warehouse_id": "se-28529731",
"return_to": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA"
},
"customs": {
"importer_of_record": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA"
},
"customs_items": [
{
"customs_item_id": "se-28529731",
"country_of_origin": "CA"
}
]
},
"advanced_options": {
"bill_to_country_code": "CA",
"invoice_number": "IOC56888"
},
"tags": [
{
"tag_id": 8712,
"name": "Fragile",
"color": "#FF0000"
}
],
"packages": [
{
"shipment_package_id": "se-28529731",
"package_id": "se-28529731",
"package_code": "small_flat_rate_box",
"tracking_number": "1Z932R800392060079",
"content_description": "Hand knitted wool socks",
"products": [
{
"country_of_origin": "CA",
"vat_rate": 0.2
}
]
}
],
"comparison_rate_type": "retail",
"zone": 6,
"rate_response": {
"rates": [
{
"rate_id": "se-28529731",
"carrier_id": "se-28529731",
"zone": 6,
"package_type": "package",
"delivery_days": 5,
"estimated_delivery_date": "2018-09-23T00:00:00.000Z"
}
],
"invalid_rates": [
{
"rate_id": "se-28529731",
"carrier_id": "se-28529731",
"zone": 6,
"package_type": "package",
"delivery_days": 5,
"estimated_delivery_date": "2018-09-23T00:00:00.000Z"
}
],
"rate_request_id": "se-28529731",
"shipment_id": "se-28529731",
"created_at": "se-28529731",
"errors": [
{
"message": "Body of request cannot be null.",
"carrier_id": "se-28529731",
"carrier_code": "dhl_express",
"field_name": "shipment.ship_to.phone_number"
}
]
}
}Changes
- breaking
the response property
//////became nullable for the status - breaking
the response property
//////became nullable for the status - breaking
the response property
//////became nullable for the status - breaking
the response property
//////became nullable for the status
- breaking
- info
added the new optional request property
////// - info
added the optional property
///to the response with the status
- info