API referenceStock and prices
Set stock
PUT
Scope: inventory:write
Sets each variant's stock to an absolute number. Up to 100 lines. Each line succeeds or fails on its own, so the response is 200 even when some lines fail: check status on every line. Stock is reduced the moment an order is confirmed; send expectedStock so a stock count taken before an order came in cannot overwrite it.
sellerApiKeyheader
AuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
application/json- body
items*array<>Items
1 <= items <= 100application/json- response
results*array<>summary*curl -X PUT 'https://api.bhaktibaazar.com/seller-api/v1/inventory' \ -H 'Content-Type: application/json' \ -d '{ "items": [ { "stock": 25 } ]}'Example Response
{ "results": [ { "index": 0, "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf", "sellerSku": "string", "status": "updated", "error": { "code": "STALE_STOCK", "message": "string", "currentStock": 0 }, "stock": 0 } ], "summary": { "updated": 0, "unchanged": 0, "failed": 0 }}Update a variant PATCH
Changes only the fields you send. Set stock with PUT /inventory.
Set prices PUT
Sets each variant's selling price and MRP. The discount shown to shoppers is worked out from them. Up to 100 lines. Each line succeeds or fails on its own, so the response is 200 even when some lines fail: check status on every line.