ShiftDocs

Get started

Integration flows

Choose the flow that fits your system. Flow B is the simplest way to ship: the quote is generated from the saved order, so it always matches the booking.

Flow A: create and ship in one call (SELF)

  1. Optional: save a pickup address with POST /address and note its address_uid.
  2. Call POST /cost-estimates with returnOrder: false.
  3. Choose a carrier and note its carrierCode and requestId.
  4. Call POST /outbound/forward with that carrier_code and request_id. Save the order_number and shipment.trackingNumber.
  5. Track with GET /outbound/track.
  6. To cancel before pickup, call POST /outbound/shipment/cancel. The order returns to NEW.

Flow B: create the order first, ship later (SELF or WAREHOUSE)

  1. Call POST /outbound/order. SELF needs pickup_location; WAREHOUSE needs warehouse_code. Save the order_id.
  2. Call POST /outbound/cost-estimates with that order_id. Choose a carrier.
  3. Call POST /outbound_existing/shipment with order_id, carrier_code and request_id.
  4. Track with GET /outbound/track.

WAREHOUSE orders are normally shipped by the fulfilment warehouse after picking and packing, so steps 2 and 3 are usually not needed for them.

Flow C: returns

  1. Call POST /cost-estimates with returnOrder: true. originPin is the customer's pincode; destinationPin is yours or the warehouse's.
  2. Call POST /return with that quote's carrier_code and request_id. Save the return_order_number and tracking_number.
  3. Track with GET /return/track.
  4. To cancel before pickup, call POST /return/shipment/cancel.

Stuck on an integration?

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

Talk to us