ShiftDocs

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.

POST/api/v1/open/cost-estimates

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
  }'
FieldRequiredDescription
originPinRequired6-digit pickup pincode: your pickup location (SELF), the warehouse (WAREHOUSE), or the customer (returns).
destinationPinRequired6-digit delivery pincode: the customer (forward), or you or the warehouse (returns).
weightInGramsRequiredAbove 0 and at most 25000. Send the applicable weight; volumetric weight is not added for you. Decimals are dropped.
declaredValueRequiredAt least 0.01. The same as the order's payment_details.amount (for returns, the sum of commodity_value × quantity).
packageLengthpackageBreadthpackageHeightRequiredAbove 0, in cm. The same as the order's dimensions.
codOrderOptionalDefault false. Set true for COD orders.
returnOrderOptionalDefault false. Set true for return shipments.

Response

data is a list with one entry per carrier:

FieldDescription
requestIdQuote reference. Pass it as request_id when booking, copied exactly (it may contain /, + and =).
carrierCodecarrierNameCarrier identifier and display name.
serviceTypedeliveryModeService level, for example Air or Surface.
totalChargescodChargesrtoChargesCharges in ₹.
totalChargesBreakupItemised charges.
estimatedDeliveryDateExpected delivery date.

Stuck on an integration?

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

Talk to us