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.
Fulfilment types
| SELF orders | WAREHOUSE orders | |
|---|---|---|
| Ships from | Your own pickup location | Stock at a fulfilment warehouse |
pickup_location | Required | Must not be sent |
warehouse_code | Must not be sent | Required; must be mapped to your company |
| SKUs | Any SKU | ACTIVE products in your catalog |
| Pickup details | From the request or a saved address | Taken 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
| Field | Required | Description |
|---|---|---|
order_number | Optional | Omit or send null to generate one. Max 50 characters, unique within your company. |
fulfillment_type | Optional | SELF or WAREHOUSE. Defaults to SELF. |
warehouse_code | For WAREHOUSE | Must exist and be mapped to your company. |
Contact fields
For pickup_location and drop_location
| Field | Required | Description |
|---|---|---|
name | Required | At least 2 characters, starting with a letter; letters, digits, spaces and . ' - only. |
phone | Required | 10 digits starting with 6 to 9. |
email | Optional | A valid email when sent; "" is accepted. |
pickup_location.address_uid | Optional | A saved pickup address (see Pickup addresses). Send it instead of address: exactly one of the two. |
drop_location.address | Required | Always send the full delivery address. address_uid is not supported here. |
Address fields
| Field | Required | Description |
|---|---|---|
addressLine1 | Required | At least 5 characters. |
addressLine2 | Optional | At least 3 characters when sent (omit it rather than send ""). |
city | Required | Letters, spaces and . ' - (no digits). |
state | Required | Letters, spaces and . ' -. |
pincode | Required | 6-digit number. |
Shipment fields
| Field | Required | Description |
|---|---|---|
weight_grams | Required | Above 0 and at most 25000. At least the sum of each product's weight × quantity. |
product_details | Required | At least one item. |
hsn_code/sku_code | Required | WAREHOUSE: an ACTIVE catalog SKU. SELF: any SKU. |
quantity | Required | At least 1. |
commodity_value | Required | Above 0. Per-unit price before tax. |
tax | Optional | 0 or more, default 0. Total tax for the line (not per unit); cannot exceed commodity_value × quantity. |
descriptioncategory_of_goods | Optional | Free text. For a SELF SKU not in your catalog, description becomes the product name. |
weight_gramslength_cmbreadth_cmheight_cm | Optional | On a product line: per-product overrides of catalog values; each above 0 when sent. |
payment_mode | Required | COD or PPD. |
amount | Required | Above 0. Must equal the sum of (commodity_value × quantity + tax) across lines, within 0.01. In the sample: 100 × 2 + 20 = 220. |
cod_collectible_amount | For COD | COD: above 0 and equal to amount. PPD: 0 or omitted. |
dimensions | Optional | When sent, length_cm, breadth_cm and height_cm are all required and above 0. |
The applicable weight must not exceed 25 kg.
Common errors
| Situation | Response |
|---|---|
order_number already used in your account | 422 already exists for this account |
fulfillment_type in lowercase | 422 must be SELF or WAREHOUSE |
SELF order without pickup_location, or with warehouse_code | 422 |
WAREHOUSE order with pickup_location, or without warehouse_code | 422 |
| WAREHOUSE orders not enabled for your account | 403 fulfillment_type WAREHOUSE requires the FULFILLMENT SERVICES plan |
Unknown or unmapped warehouse_code | 404 or 422 |
| WAREHOUSE order with a SKU not in your catalog | 422 Product SKU not found |
pickup_location with both or neither of address and address_uid | 422 |
address_uid that doesn't belong to your company | 404 |
| Phone with a +91 or 0 prefix | 422 |
| amount doesn't match the line totals | 422, showing the expected and provided values |
COD with cod_collectible_amount not equal to amount | 422 must equal amount |
PPD with a non-zero cod_collectible_amount | 422 must be 0 or omitted for PPD |
| Weight or volumetric weight above 25 kg | 422 25 kg limit |
weight_grams below the catalog weight × quantity | 400 |
Stuck on an integration?
Your account manager can put you in touch with our tech team.