Skip to Content
Bhakti BaazarDevelopers
API referenceStock and prices

Set prices

PUT
/prices

Scope: inventory:write

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.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Request Body

application/json
  1. body
items*array<>
Items1 <= items <= 100

Response Body

application/json
  1. response
results*array<>
summary*
Example Request
curl -X PUT 'https://api.bhaktibaazar.com/seller-api/v1/prices' \  -H 'Content-Type: application/json' \  -d '{  "items": [    {      "price": 499,      "mrp": 799    }  ]}'
Example Response
{  "results": [    {      "index": 0,      "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",      "sellerSku": "string",      "status": "updated",      "error": {        "code": "STALE_STOCK",        "message": "string",        "currentStock": 0      },      "price": 0,      "mrp": 0,      "discountPercentage": 0    }  ],  "summary": {    "updated": 0,    "unchanged": 0,    "failed": 0  }}