Orders
Ship an existing order
Ships an order you created with Create forward order, SELF or WAREHOUSE, in two steps: get quotes for the saved order, then book one of them.
The shipping charge is debited from your WMS wallet. If the balance is too low, the booking fails with 422 Insufficient wallet balance and the order stays NEW.
Cost estimates for an order
Returns quotes for an order you have already created. The weight, pincodes, declared value and payment mode come from the saved order, so the quote always matches the booking.
curl -X POST 'https://wms.shift.in/api/v1/open/outbound/cost-estimates' \
-H 'X-API-Key: <your api key>' \
-H 'Content-Type: application/json' \
--data '{
"order_id": 10001
}'| Field | Required | Description |
|---|---|---|
order_id | Required | data.order_id from Create forward order. Must belong to your company. |
The response has the same shape as Cost estimates.
Create a forward shipment
Books a shipment for the order using a quote from Cost estimates for an order.
curl -X POST 'https://wms.shift.in/api/v1/open/outbound_existing/shipment' \
-H 'X-API-Key: <your api key>' \
-H 'Content-Type: application/json' \
--data '{
"order_id": 10001,
"carrier_code": "DES",
"request_id": "<requestId from Cost estimates for an order>"
}'| Field | Required | Description |
|---|---|---|
order_id | Required | The order to ship. Must belong to your company. |
carrier_code | Required | carrierCode from the same quote as request_id. Case-insensitive. |
request_id | Required | requestId from that quote, copied exactly. |
Response: 200 OK
{
"data": {
"trackingNumber": "10000000000001",
"carrierCode": "DES",
"carrierDisplayName": "Delhivery(Surface)",
"shippingLabelUrl": "https://.../ShippingLabel-10001.pdf",
"invoiceUrl": "https://.../INV-OB-100-100001.pdf",
"success": true,
"responseMessage": "Shipment confirmed successfully with Delhivery(Surface)"
}
}Booking errors
When a booking fails, the order stays NEW, so you can book it again.
| Situation | Response |
|---|---|
carrier_code or request_id missing | 422 is required |
Unknown carrier_code | 422 Invalid carrier_code |
request_id edited or not from cost estimates | 422 Invalid request_id |
| Quote at a different weight, pincode or carrier | 422 Quote mismatch, naming the field |
| Quote from a return cost estimate | 422 Quote mismatch: request_id is from a return cost estimate |
| Quote issued to another seller | 422 Quote mismatch: request_id was not issued to your account |
| COD quote on a prepaid order, or the reverse | 422 Quote mismatch on payment type |
Order amount more than 1 above the quote's declaredValue | 422 Quote mismatch: order value is higher than the declaredValue |
order_id of a return order | 422 is a return and cannot be booked as a forward shipment |
order_id not found, or of another company | Order not found, or Order does not belong to your account |
| Wallet balance too low | 422 Insufficient wallet balance |
Stuck on an integration?
Your account manager can put you in touch with our tech team.