List 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.
sellerApiKeyAuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
updated_since?stringOnly returns changed at or after this time. Store the newest updatedAt you have seen and pass it next time.
date-timecursor?stringnextCursor from the previous page.
limit?number1 <= value <= 10050application/json- response
data*array<>nextCursor*string|nullhasMore*booleancurl -X GET 'https://api.bhaktibaazar.com/seller-api/v1/returns'{ "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}Get a return GET
Add a webhook endpoint POST
Up to five per seller. The signing secret is in this response only. Each request is a POST with a JSON body { id, type, created, data }, signed the Standard Webhooks way (https://www.standardwebhooks.com): headers webhook-id (the event id, the same on every retry), webhook-timestamp and webhook-signature. Any 2xx answer counts as received. Others are retried with growing waits for 24 hours; an endpoint that fails every attempt for 24 hours is switched off. Delivery is at least once and not in order: deduplicate on webhook-id, and read GET /orders/:id for the current state.