curl --request POST \
--url https://api.getredo.com/v2.2/stores/{storeId}/shipments/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"carrier": {
"id": "<string>"
},
"destination": {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"postalCode": "<string>",
"state": "<string>",
"line2": ""
},
"name": "<string>",
"phoneNumber": "<string>"
},
"origin": {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"postalCode": "<string>",
"state": "<string>",
"line2": ""
},
"name": "<string>",
"phoneNumber": "<string>"
},
"parcel": {
"height": {
"unit": "in",
"value": 1
},
"length": {
"unit": "in",
"value": 1
},
"type": "box",
"weight": {
"unit": "g",
"value": 1
},
"width": {
"unit": "in",
"value": 1
}
},
"service": {
"name": "<string>"
}
}
'{
"shipment": {
"documents": [
{
"type": "label"
}
],
"id": "<string>",
"price": {
"amount": "<string>",
"currency": "<string>"
},
"tracker": {
"code": "<string>"
}
}
}Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
curl --request POST \
--url https://api.getredo.com/v2.2/stores/{storeId}/shipments/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"carrier": {
"id": "<string>"
},
"destination": {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"postalCode": "<string>",
"state": "<string>",
"line2": ""
},
"name": "<string>",
"phoneNumber": "<string>"
},
"origin": {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"postalCode": "<string>",
"state": "<string>",
"line2": ""
},
"name": "<string>",
"phoneNumber": "<string>"
},
"parcel": {
"height": {
"unit": "in",
"value": 1
},
"length": {
"unit": "in",
"value": 1
},
"type": "box",
"weight": {
"unit": "g",
"value": 1
},
"width": {
"unit": "in",
"value": 1
}
},
"service": {
"name": "<string>"
}
}
'{
"shipment": {
"documents": [
{
"type": "label"
}
],
"id": "<string>",
"price": {
"amount": "<string>",
"currency": "<string>"
},
"tracker": {
"code": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Store ID
"64e5a8a1af49a89df37e4ee7"
Contact information for shipping.
Show child attributes
Address.
Show child attributes
City name
Country code
Line 1
Postal or ZIP code
State or province
Line 2
Contact name
Contact phone number
Contact information for shipping.
Show child attributes
Address.
Show child attributes
Contact name
Contact phone number
Parcel information for shipping.
Show child attributes
Parcel type enum.
box, envelope, soft_pack Success
Shipment information.
Show child attributes
Shipment identifier
Was this page helpful?