Skip to content

Instantly share code, notes, and snippets.

@robertbanh

robertbanh/rating.sh

Created Nov 20, 2017
Embed
What would you like to do?
Rating API
curl 'https://api.shipengine.com/v1/rates' -X POST \
-H "Content-type: application/json" \
-H "api-key: dmtzyBFq9DsGMGd1GkzHilzeEAKsyyRyxQH3cz7M+Lo" \
-d '
{
"shipment": {
"ship_to": {
"name": "Dade Murphy",
"phone": "+1 (212) 555-5555",
"company_name": "Zero Cool",
"address_line1": "345 Chambers Street",
"city_locality": "New York City",
"state_province": "NY",
"postal_code": "10282",
"country_code": "US"
},
"ship_from": {
"name": "Shippy",
"phone": "512-485-4282",
"company_name": "ShipStation",
"address_line1": "3800 N. Lamar Blvd.",
"address_line2": "Suite 220",
"city_locality": "Austin",
"state_province": "TX",
"postal_code": "78756",
"country_code": "US"
},
"packages": [
{
"weight": {
"value": 1.0,
"unit": "ounce"
}
}
]
},
"rate_options": {
"carrier_ids": ["se-123890"]
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment