curl --location --request POST 'https://api.goshippo.com/transactions' \
--header 'Authorization: ShippoToken <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
{
"shipment": {
"address_from": {
"name": "Mr. Hippo",
"company": "Shippo & Son",
"street1": "1901 W Madison Street",
"street2": "Press Box 23",
"city": "Chicago",
"state": "IL",
"zip": "60612",
"country": "US",
"phone": "+1 555 341 9393",
"email": "support@shippo.com"
},
"address_to": {
"name": "Mrs. Hippo",
"company": "Shippo & Co",
"street1": "100 STOCKYARD",
"city": "Nashville",
"state": "TN",
"zip": "37201",
"country": "US",
"metadata": "Customer ID 123456"
},
"parcels": [
{
"weight": "8",
"length": "9",
"width": "9",
"height": "8",
"distance_unit": "in",
"mass_unit": "lb"
}
],
"extra": {
"signature_confirmation": true,
"alcohol": {
"contains_alcohol": false
}
}
},
"carrier_account": "{{BETTER_TRUCKS_ACC}}",
"async": false,
"servicelevel_token": "better_trucks_next_day",
"label_file_type": "PDF_4x6"
}'