ShiftDocs

Orders

Create forward order

Creates a forward order without booking a shipment. Returns data.order_id and data.order_number. Ship it later with the shipping APIs.

POST/api/v1/open/outbound/order

Fulfilment types

SELF ordersWAREHOUSE orders
Ships fromYour own pickup locationStock at a fulfilment warehouse
pickup_locationRequiredMust not be sent
warehouse_codeMust not be sentRequired; must be mapped to your company
SKUsAny SKUACTIVE products in your catalog
Pickup detailsFrom the request or a saved addressTaken from the warehouse record

Request

curl -X POST 'https://wms.shift.in/api/v1/open/outbound/order' \
  -H 'X-API-Key: <your api key>' \
  -H 'Content-Type: application/json' \
  --data '{
    "order_number": null,
    "fulfillment_type": "SELF",
    "pickup_location": {
      "name": "Narmada",
      "phone": "9000000003",
      "email": "narmada@example.com",
      "address": {
        "addressLine1": "Hitech city",
        "addressLine2": "Jubilee Enclave",
        "city": "Hyderabad",
        "state": "Telangana",
        "pincode": 500081
      }
    },
    "drop_location": {
      "name": "Venkat",
      "phone": "7993199340",
      "email": "",
      "address": {
        "addressLine1": "Gowlidoddi",
        "addressLine2": "Gachibowli",
        "city": "Hyderabad",
        "state": "Telangana",
        "pincode": 500032
      }
    },
    "shipments": {
      "weight_grams": 2000,
      "product_details": [
        {
          "hsn_code/sku_code": "SHFT-10186",
          "quantity": 2,
          "description": "",
          "category_of_goods": "",
          "commodity_value": 100,
          "tax": 20
        }
      ],
      "payment_details": {
        "payment_mode": "COD",
        "amount": 220,
        "cod_collectible_amount": 220
      },
      "dimensions": {
        "length_cm": 20,
        "breadth_cm": 15,
        "height_cm": 10
      }
    }
  }'

For a WAREHOUSE order, use the same body but replace pickup_location with "fulfillment_type": "WAREHOUSE" and "warehouse_code": "<your warehouse code>", and use catalog SKUs.

Order fields

FieldRequiredDescription
order_numberOptionalOmit or send null to generate one. Max 50 characters, unique within your company.
fulfillment_typeOptionalSELF or WAREHOUSE. Defaults to SELF.
warehouse_codeFor WAREHOUSEMust exist and be mapped to your company.

Contact fields

For pickup_location and drop_location

FieldRequiredDescription
nameRequiredAt least 2 characters, starting with a letter; letters, digits, spaces and . ' - only.
phoneRequired10 digits starting with 6 to 9.
emailOptionalA valid email when sent; "" is accepted.
pickup_location.address_uidOptionalA saved pickup address (see Pickup addresses). Send it instead of address: exactly one of the two.
drop_location.addressRequiredAlways send the full delivery address. address_uid is not supported here.

Address fields

FieldRequiredDescription
addressLine1RequiredAt least 5 characters.
addressLine2OptionalAt least 3 characters when sent (omit it rather than send "").
cityRequiredLetters, spaces and . ' - (no digits).
stateRequiredLetters, spaces and . ' -.
pincodeRequired6-digit number.

Shipment fields

FieldRequiredDescription
weight_gramsRequiredAbove 0 and at most 25000. At least the sum of each product's weight × quantity.
product_detailsRequiredAt least one item.
hsn_code/sku_codeRequiredWAREHOUSE: an ACTIVE catalog SKU. SELF: any SKU.
quantityRequiredAt least 1.
commodity_valueRequiredAbove 0. Per-unit price before tax.
taxOptional0 or more, default 0. Total tax for the line (not per unit); cannot exceed commodity_value × quantity.
descriptioncategory_of_goodsOptionalFree text. For a SELF SKU not in your catalog, description becomes the product name.
weight_gramslength_cmbreadth_cmheight_cmOptionalOn a product line: per-product overrides of catalog values; each above 0 when sent.
payment_modeRequiredCOD or PPD.
amountRequiredAbove 0. Must equal the sum of (commodity_value × quantity + tax) across lines, within 0.01. In the sample: 100 × 2 + 20 = 220.
cod_collectible_amountFor CODCOD: above 0 and equal to amount. PPD: 0 or omitted.
dimensionsOptionalWhen sent, length_cm, breadth_cm and height_cm are all required and above 0.

The applicable weight must not exceed 25 kg.

Common errors

SituationResponse
order_number already used in your account422 already exists for this account
fulfillment_type in lowercase422 must be SELF or WAREHOUSE
SELF order without pickup_location, or with warehouse_code422
WAREHOUSE order with pickup_location, or without warehouse_code422
WAREHOUSE orders not enabled for your account403 fulfillment_type WAREHOUSE requires the FULFILLMENT SERVICES plan
Unknown or unmapped warehouse_code404 or 422
WAREHOUSE order with a SKU not in your catalog422 Product SKU not found
pickup_location with both or neither of address and address_uid422
address_uid that doesn't belong to your company404
Phone with a +91 or 0 prefix422
amount doesn't match the line totals422, showing the expected and provided values
COD with cod_collectible_amount not equal to amount422 must equal amount
PPD with a non-zero cod_collectible_amount422 must be 0 or omitted for PPD
Weight or volumetric weight above 25 kg422 25 kg limit
weight_grams below the catalog weight × quantity400

Stuck on an integration?

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

Talk to us