1. Sum of items weight in package must be lesser or equal to package weight
Error :
"data.shipment.parcels.0.
Solution: "Sum of items weight in package must be lesser or equal to package weight" , The package weight should always be equal to or greater than the sum of item weights in a package.
In case , the customer plan to send one item tag for the entire package, then we can use ITEMS with QUANTITY as 1 .
"items": [
{
"description": " Accessories",
"sku": "",
"hs_code": "",
"variant": "",
"quantity": 1,
"price": {
"amount": <>,
"currency": "INR"
},
"weight": {
"value": <weight_of_package>,
"unit": "kg"
}
}
]
2.. The weight of the box should be greater than 0
Error:
data.shipment.parcels.weight.value should be > 0
3. The unit of weight should be one of them [kg,lb]
Error:
'data.shipment.parcels.weight.unit should be equal to one of values kg, lb
4.Quantity should be greater than 1
Error:
'data.shipment.parcels.items.quantity should be >= 1'