ShiftDocs

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

POST/api/v1/open/outbound/cost-estimates

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
  }'
FieldRequiredDescription
order_idRequireddata.order_id from Create forward order. Must belong to your company.

The response has the same shape as Cost estimates.

Create a forward shipment

POST/api/v1/open/outbound_existing/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>"
  }'
FieldRequiredDescription
order_idRequiredThe order to ship. Must belong to your company.
carrier_codeRequiredcarrierCode from the same quote as request_id. Case-insensitive.
request_idRequiredrequestId 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.

SituationResponse
carrier_code or request_id missing422 is required
Unknown carrier_code422 Invalid carrier_code
request_id edited or not from cost estimates422 Invalid request_id
Quote at a different weight, pincode or carrier422 Quote mismatch, naming the field
Quote from a return cost estimate422 Quote mismatch: request_id is from a return cost estimate
Quote issued to another seller422 Quote mismatch: request_id was not issued to your account
COD quote on a prepaid order, or the reverse422 Quote mismatch on payment type
Order amount more than 1 above the quote's declaredValue422 Quote mismatch: order value is higher than the declaredValue
order_id of a return order422 is a return and cannot be booked as a forward shipment
order_id not found, or of another companyOrder not found, or Order does not belong to your account
Wallet balance too low422 Insufficient wallet balance

Stuck on an integration?

Your account manager can put you in touch with our tech team.

Talk to us