Skip to Content
Bhakti BaazarDevelopers
API referenceOrders

List orders

GET
/orders

Scope: orders:read

Your orders, oldest change first, so a sync can page through with cursor and come back later with updated_since. A change to an order, one of its lines, its shipment (courier scans included) or one of its returns moves it.

The customer’s name, phone number and address (customer) come only with the orders:read_pii scope, and only until 90 days after the order closes.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Query Parameters

status?string

Only orders in this status.

updated_since?string

Only orders changed at or after this time (the order, its lines or its shipment). Store the newest updatedAt you have seen and pass it next time.

Formatdate-time
cursor?string

nextCursor from the previous page.

limit?number
Range1 <= value <= 100
Default50
placed_from?string

Only orders placed at or after this time (placedAt).

Formatdate-time
placed_to?string

Only orders placed at or before this time (placedAt).

Formatdate-time
line_id?array<string>

Only the orders holding these lines: one or more line ids, separated by commas (up to 100). For systems that work line by line.

Response Body

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page. Null on the last page.

hasMore*boolean
Example Request
curl -X GET 'https://api.bhaktibaazar.com/seller-api/v1/orders'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "orderNumber": "BB2611270042",      "status": "ordered",      "paymentMethod": "cod",      "codAmount": 0,      "invoicePrepared": true,      "lines": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",          "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",          "sku": "string",          "sellerSku": "string",          "sellerProductCode": "string",          "name": "string",          "attributes": [            {              "name": "Bead size",              "value": {},              "unit": "mm"            }          ],          "quantity": 1,          "unitPrice": 0,          "mrp": 0,          "shippable": true,          "status": "pending",          "returnedQuantity": 0,          "hsnCode": "9603",          "gstRate": 5,          "tax": {            "taxableValue": 0,            "taxAmount": 0,            "total": 0,            "gstType": "igst",            "cgst": 0,            "sgst": 0,            "igst": 0          }        }      ],      "shipment": {        "fulfilment": "self_ship",        "courierCode": "string",        "courierName": "string",        "awbCode": "string",        "status": "created",        "trackingUrl": "string",        "dispatchedAt": "2019-08-24T14:15:22Z",        "pickedUpAt": "2019-08-24T14:15:22Z",        "estimatedDelivery": "string"      },      "invoice": {        "number": "BBSL-C-I-2612-000042",        "date": "2019-08-24T14:15:22Z"      },      "returns": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "status": "requested",          "requestedAt": "2019-08-24T14:15:22Z"        }      ],      "rto": {        "status": "in_transit",        "initiatedAt": "2019-08-24T14:15:22Z",        "deliveredAt": "2019-08-24T14:15:22Z",        "receivedAt": "2019-08-24T14:15:22Z"      },      "customer": {        "name": "string",        "phone": "9876543210",        "email": "string",        "address": {          "line1": "string",          "landmark": "string",          "city": "string",          "state": "string",          "stateCode": "09",          "pincode": "282001"        }      },      "placedAt": "2019-08-24T14:15:22Z",      "dispatchDueAt": "2019-08-24T14:15:22Z",      "cancelledAt": "2019-08-24T14:15:22Z",      "completedAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string",  "hasMore": true}