Skip to Content
Bhakti BaazarDevelopers
API referenceReturns

List returns

GET
/returns

Scope: returns:read

Returns on your orders, oldest change first; page with cursor and come back with updated_since. Approving, rejecting and confirming receipt stay in the seller portal. A parcel the courier sent back undelivered is not a return: see rto on the order.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Query Parameters

updated_since?string

Only returns changed at or after this time. 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

Response Body

application/json
  1. response
data*array<>
nextCursor*string|null
hasMore*boolean
Example Request
curl -X GET 'https://api.bhaktibaazar.com/seller-api/v1/returns'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",      "orderNumber": "string",      "status": "requested",      "resolution": "pickup",      "exceptional": true,      "lines": [        {          "lineId": "e698cdee-c4ef-4d12-b0ea-7c98b2fc64a8",          "sellerSku": "string",          "quantity": 1,          "reason": "damaged",          "status": "requested",          "refundAmount": 0        }      ],      "refundAmount": 0,      "pickup": {        "courierName": "string",        "awbCode": "string",        "status": "pending",        "scheduledPickupDate": "2019-08-24",        "qcStatus": "pending"      },      "requestedAt": "2019-08-24T14:15:22Z",      "approvedAt": "2019-08-24T14:15:22Z",      "pickedUpAt": "2019-08-24T14:15:22Z",      "receivedAt": "2019-08-24T14:15:22Z",      "refundedAt": "2019-08-24T14:15:22Z",      "completedAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string",  "hasMore": true}