Discussions

Ask a Question
Back to All

I am having some problems while testing the Return Shipment API.

the json i am Using

{
"courier_selection": {
"allow_courier_fallback": false,
"apply_shipping_rules": true
},
"shipping_settings": {
"additional_services": {
"qr_code": "none"
}
},
"parcels": [
{
"items": [
{
"actual_weight": 1,
"dimensions": {
"length": 38,
"width": 24,
"height": 7.62
},
"id": "4cf5eb2f-5f69-4e80-8f40-d77269eddecd",
"quantity": 1
}
]
}
]
}


Error -

{
"error": {
"code": "invalid_content",
"details": [
"parcels[0].items[0].actual_weight can't be blank",
"parcels[0].items[0].dimensions.length must be greater than 0",
"parcels[0].items[0].dimensions.width must be greater than 0",
"parcels[0].items[0].dimensions.height must be greater than 0"
],
"message": "The request body content is not valid.",
"request_id": "0ac816da74f89e7a08b35fa1acb583a0",
"type": "invalid_request_error"
}
}