Orders
Cost estimates
Returns a shipping quote from each of your enabled couriers that can serve the shipment. Pass the chosen quote's carrierCode and requestId when you book.
Which carriers appear
Only the couriers enabled under Couriers in your WMS account are quoted: forward couriers when returnOrder is false, return couriers when it is true (if none are set, all return-capable carriers). A courier is skipped if it can't serve the pincodes, isn't available on your account, or is outside its weight or value range. For example, Delhivery-10KG quotes only 5 to 10 kg, and Delhivery returns both Air (DE) and Surface (DES).
Request
curl -X POST 'https://wms.shift.in/api/v1/open/cost-estimates' \
-H 'X-API-Key: <your api key>' \
-H 'Content-Type: application/json' \
--data '{
"originPin": 500081,
"destinationPin": 500032,
"weightInGrams": 1500,
"declaredValue": 220,
"packageLength": 20,
"packageBreadth": 15,
"packageHeight": 10,
"codOrder": true,
"returnOrder": false
}'| Field | Required | Description |
|---|---|---|
originPin | Required | 6-digit pickup pincode: your pickup location (SELF), the warehouse (WAREHOUSE), or the customer (returns). |
destinationPin | Required | 6-digit delivery pincode: the customer (forward), or you or the warehouse (returns). |
weightInGrams | Required | Above 0 and at most 25000. Send the applicable weight; volumetric weight is not added for you. Decimals are dropped. |
declaredValue | Required | At least 0.01. The same as the order's payment_details.amount (for returns, the sum of commodity_value × quantity). |
packageLengthpackageBreadthpackageHeight | Required | Above 0, in cm. The same as the order's dimensions. |
codOrder | Optional | Default false. Set true for COD orders. |
returnOrder | Optional | Default false. Set true for return shipments. |
Response
data is a list with one entry per carrier:
| Field | Description |
|---|---|
requestId | Quote reference. Pass it as request_id when booking, copied exactly (it may contain /, + and =). |
carrierCodecarrierName | Carrier identifier and display name. |
serviceTypedeliveryMode | Service level, for example Air or Surface. |
totalChargescodChargesrtoCharges | Charges in ₹. |
totalChargesBreakup | Itemised charges. |
estimatedDeliveryDate | Expected delivery date. |
Stuck on an integration?
Your account manager can put you in touch with our tech team.