Add a variant to a product
Scope: catalog:write
sellerApiKeyAuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
productId*stringuuidIdempotency-Key*stringA new unique value (a UUID is ideal) for each create. Retrying with the same key and body returns the first response, marked Idempotent-Replayed: true, and creates nothing twice. Kept 24 hours.
application/json- body
sellerSku?stringYour own SKU, unique in your account ignoring case.
price*numberSelling price in rupees, GST included.
mrp*numberMRP in rupees, at least the price.
hsnCode*string4 to 8 digit HSN code.
gstRate*numberGST rate in percent.
00.2535121828isPublished?booleanDefaults to the product’s isPublished when creating.
attributes?array<>The subcategory’s variant attributes.
imageUrls?array<string>Public HTTPS image URLs (JPEG, PNG or WebP, up to 10 MB). We copy them to our CDN.
items <= 6itemWeight?numberGrams
0 <= valueshippingWeight?numberGrams, packed
0 <= valueitemDimensions?shippingDimensions?Packed
minOrderQuantity?number1 <= valuemaxOrderQuantity?number1 <= valueisReturnable?booleantruestock?number0 <= value0application/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 POST 'https://api.bhaktibaazar.com/seller-api/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/variants' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "price": 499, "mrp": 799, "hsnCode": "1404", "gstRate": 5}'{ "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"}Create a product POST
Creates a product with its variants. It starts as pending_review and goes on sale only after Bhakti Baazar approves it (and you publish it). Attributes are checked against the subcategory; image URLs are copied to our CDN first, and a URL we cannot use fails the request with nothing saved.
Get a product by your product code GET
Matches ignoring letter case and surrounding spaces.