In the packages field, you can send an object containing three combinations of child fields:
orderPackagingIdonly,packagingandweight,width,height,depth, andweight.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/shipments
- https://api.myshoptet.comhttps://api.myshoptet.com/api/shipments
- shoptetAccessToken
- shoptetPrivateApiToken
- object
- object (2)
- object (3)
curl -i -X POST \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/shipments \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"orderCode": "2024000008",
"note": "shipment note",
"cod": "21.00",
"shippingId": 250,
"addressId": 1,
"bankAccountId": 1,
"packages": [
{
"orderPackagingId": 3
}
]
}
}'Response
{ "data": { "guid": "1e3f3f32-3f3f-6766-3f3f-02423f1f0004", "checkUrls": [ … ] }, "errors": [ { … } ] }