Created
November 20, 2017 21:57
-
-
Save robertbanh/ff2e385c32d05077a81e641a8377a983 to your computer and use it in GitHub Desktop.
Rating API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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