ShiftDocs

After booking

Cancellation

Cancel a booked forward shipment or a return pickup before the carrier picks it up.

Cancel a forward shipment

POST/api/v1/open/outbound/shipment/cancel

Cancels the booked shipment of a forward order. For returns, use Cancel a return shipment.

curl -X POST 'https://wms.shift.in/api/v1/open/outbound/shipment/cancel' \
  -H 'X-API-Key: <your api key>' \
  -H 'Content-Type: application/json' \
  --data '{
    "tracking_number": "25338212527534",
    "order_number": "OB-128-100182"
  }'
FieldRequiredDescription
tracking_numberRequiredThe AWB from the shipment response.
order_numberRequiredThe order that owns this tracking number.

What happens, by order type

Order typeWhat happensAllowed when
SELF ordersThe AWB is cancelled with the carrier immediately, the shipping charge is refunded to your wallet, and the order returns to NEW.Before pickup: PROCESSING with SHIPMENT_PENDING, READY_TO_MANIFEST, MANIFESTED or READY_TO_SHIP.
WAREHOUSE ordersA cancel request is raised for the warehouse to review; nothing is cancelled until they act.Any time; the response includes cancelRequestId.

After a SELF cancel, the carrier, tracking number, label and invoice are cleared. The old AWB can no longer be tracked; track by order number instead. You can book the order again with a fresh quote.

Response

OutcomesuccesseligibleRefundmessagecancelRequestId
SELF order cancelledtrueShipping chargenull-
SELF order refused (for example, already picked up)falsenullThe reason-
WAREHOUSE order, request raisedtrueShipping chargeCancel shipment request created successfully. Warehouse will review your request.The request ID

Cancel a return shipment

POST/api/v1/open/return/shipment/cancel

Cancels the booked pickup of a return. Both return types are cancelled with the carrier immediately, with no warehouse review. Allowed only before pickup (PROCESSING or READY_TO_SHIP).

curl -X POST 'https://wms.shift.in/api/v1/open/return/shipment/cancel' \
  -H 'X-API-Key: <your api key>' \
  -H 'Content-Type: application/json' \
  --data '{
    "tracking_number": "62042210047633",
    "order_number": "OB-306-100061"
  }'
FieldRequiredDescription
tracking_numberRequiredtracking_number from the Create return response.
order_numberRequiredreturn_order_number from the Create return response, not a forward order number.

After a cancel, the return shipping charge is refunded to your wallet and the carrier and tracking number are cleared. The return stays NEW and can't be booked again through the API; create a new return instead.

The response data has success, eligibleRefund and message.

Cancellation errors

SituationResponse
Either field missing or blank422 is required
Unknown tracking number, or another company's order404 Order not found
order_number doesn't match the tracking number422 does not match
A return sent to Cancel a forward shipment422 is a return; use /return/shipment/cancel
A forward order sent to Cancel a return shipment404 Return order not found
Shipment already picked up or in transit200 with success: false and a message
Same shipment cancelled twiceThe second call fails

Stuck on an integration?

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

Talk to us