Update a variant
Scope: catalog:write
Changes only the fields you send. Set stock with PUT /inventory.
sellerApiKeyAuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
variantId*stringuuidapplication/json- body
sellerSku?|Send null to clear it.
price?numbermrp?numberhsnCode?stringgstRate?number00.2535121828isPublished?booleanPublishing the default variant publishes the whole product, as in the seller portal.
attributes?array<>Replaces all of the variant’s attributes.
imageUrls?array<string>Replaces the variant’s images.
items <= 6itemWeight?numberGrams
shippingWeight?numberGrams, packed
itemDimensions?shippingDimensions?minOrderQuantity?number1 <= valuemaxOrderQuantity?number1 <= valueisReturnable?booleanapplication/json- response
id*stringuuidsku*stringBhakti Baazar SKU, assigned by us.
sellerSku*|Your own SKU. Unique within your account, ignoring letter case and surrounding spaces.
price*numberSelling price in rupees, GST included.
mrp*number|nulldiscountPercentage*|Worked out from price and MRP.
stock*numberisDefault*booleanisPublished*booleanhsnCode*stringgstRate*numberimages*array<string>Image URLs on our CDN.
attributes*array<>itemWeight*|Grams
shippingWeight*|Grams
itemDimensions*|nullshippingDimensions*|nullminOrderQuantity*number|nullmaxOrderQuantity*number|nullisReturnable*booleanhandlingTimeInDays*numberDays you need to pack and hand over an order.
updatedAt*stringdate-timecurl -X PATCH 'https://api.bhaktibaazar.com/seller-api/v1/variants/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "sku": "string", "sellerSku": "string", "price": 499, "mrp": 799, "discountPercentage": 0, "stock": 12, "isDefault": true, "isPublished": true, "hsnCode": "1404", "gstRate": 5, "images": [ "string" ], "attributes": [ { "name": "Mukhi", "value": "5", "unit": "string" } ], "itemWeight": 0, "shippingWeight": 0, "itemDimensions": { "length": 0, "width": 0, "height": 0 }, "shippingDimensions": { "length": 0, "width": 0, "height": 0 }, "minOrderQuantity": 0, "maxOrderQuantity": 0, "isReturnable": true, "handlingTimeInDays": 0, "updatedAt": "2019-08-24T14:15:22Z"}Update a product PATCH
Changes only the fields you send. Category and brand are changed in the seller portal. As in the portal, editing an approved product does not send it back for review.
Set stock PUT
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.