curl https://api.goshippo.com/live-rates \
-H "Authorization: ShippoToken <API_TOKEN>" \
-H "Content-Type: application/json"
--data-raw '{
"address_from": {
"name": "S. Hippo",
"company": "Shippo",
"street1": "731 Market St #200",
"street_no": "",
"street2": "",
"street3": "",
"city": "San Francisco",
"state": "CA",
"zip": "94103",
"country": "US"
},
"address_to": {
"name": "Bob Bloat",
"company": "SF Zoo",
"street1": "Sloat Blvd. & Upper Great Hwy.",
"street_no": "",
"street2": "",
"street3": "",
"city": "San Francisco",
"state": "CA",
"zip": "94132",
"country": "US"
},
"line_items": [
{
"quantity": 1,
"total_price": "12.00",
"currency": "USD",
"weight": "1.0",
"weight_unit": "lb",
"title": "Hippo Snax",
"manufacture_country": "US",
"sku": "HM-123"
}
],
"parcel": {
"length": "10",
"width": "15",
"height": "10",
"distance_unit": "in",
"weight": "1",
"mass_unit": "lb"
}
}'{
"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"
}
]
}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.
curl https://api.goshippo.com/live-rates \
-H "Authorization: ShippoToken <API_TOKEN>" \
-H "Content-Type: application/json"
--data-raw '{
"address_from": {
"name": "S. Hippo",
"company": "Shippo",
"street1": "731 Market St #200",
"street_no": "",
"street2": "",
"street3": "",
"city": "San Francisco",
"state": "CA",
"zip": "94103",
"country": "US"
},
"address_to": {
"name": "Bob Bloat",
"company": "SF Zoo",
"street1": "Sloat Blvd. & Upper Great Hwy.",
"street_no": "",
"street2": "",
"street3": "",
"city": "San Francisco",
"state": "CA",
"zip": "94132",
"country": "US"
},
"line_items": [
{
"quantity": 1,
"total_price": "12.00",
"currency": "USD",
"weight": "1.0",
"weight_unit": "lb",
"title": "Hippo Snax",
"manufacture_country": "US",
"sku": "HM-123"
}
],
"parcel": {
"length": "10",
"width": "15",
"height": "10",
"distance_unit": "in",
"weight": "1",
"mass_unit": "lb"
}
}'{
"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"
}
]
}API key authentication using the ShippoToken scheme. Format: Authorization: ShippoToken <API_TOKEN> Example: Authorization: ShippoToken shippo_live_abc123
Optional string used to pick a non-default API version to use. See our API version guide.
"2018-02-08"
Generate rates at checkout
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.
Array of Line Item objects
Show child attributes
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.
Object ID for an existing User Parcel Template OR a fully formed Parcel object.
"5df144dca289442cv7a06"
Was this page helpful?