Skip to Content
Bhakti BaazarDevelopers
API referenceProducts

Update a variant

PATCH
/variants/{variantId}

Scope: catalog:write

Changes only the fields you send. Set stock with PUT /inventory.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Path Parameters

variantId*string
Formatuuid

Request Body

application/json
  1. body
sellerSku?|

Send null to clear it.

price?number
mrp?number
hsnCode?string
gstRate?number
Value in00.2535121828
isPublished?boolean

Publishing 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.

Itemsitems <= 6
itemWeight?number

Grams

shippingWeight?number

Grams, packed

itemDimensions?
shippingDimensions?
minOrderQuantity?number
Range1 <= value
maxOrderQuantity?number
Range1 <= value
isReturnable?boolean

Response Body

application/json
  1. response
id*string
Formatuuid
sku*string

Bhakti Baazar SKU, assigned by us.

sellerSku*|

Your own SKU. Unique within your account, ignoring letter case and surrounding spaces.

price*number

Selling price in rupees, GST included.

mrp*number|null
discountPercentage*|

Worked out from price and MRP.

stock*number
isDefault*boolean
isPublished*boolean
hsnCode*string
gstRate*number
images*array<string>

Image URLs on our CDN.

attributes*array<>
itemWeight*|

Grams

shippingWeight*|

Grams

itemDimensions*|null
shippingDimensions*|null
minOrderQuantity*number|null
maxOrderQuantity*number|null
isReturnable*boolean
handlingTimeInDays*number

Days you need to pack and hand over an order.

updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.bhaktibaazar.com/seller-api/v1/variants/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "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"}