Skip to Content
Bhakti BaazarDevelopers
API referenceProducts

Update a product

PATCH
/products/{productId}

Scope: catalog:write

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.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Path Parameters

productId*string
Formatuuid

Request Body

application/json
  1. body
sellerProductCode?string

Your own product code, unique in your account ignoring case.

bulletPoints?array<string>
Itemsitems <= 10
keywords?array<string>

Search words shoppers might use.

Itemsitems <= 20
tags?array<string>
Itemsitems <= 10
isPublished?boolean

You want it on sale. Shoppers see it only once Bhakti Baazar has also approved it. Publishing needs any product resources (such as a size chart) the subcategory requires.

manufacturedOrigin?string
giftWrapAvailable?boolean
containsLiquid?boolean
ageRestriction?number

Minimum buyer age; 0 for none.

Range0 <= value <= 100
thumbnailUrl?string

Public HTTPS image URL. We copy it to our CDN.

galleryUrls?array<string>

Public HTTPS image URLs. We copy them to our CDN.

Itemsitems <= 9
name?string
description?string
attributes?array<>

Replaces all product attributes, so send the full list.

Response Body

application/json
  1. response
id*string
Formatuuid
sellerProductCode*|

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

name*string
description*string
bulletPoints*array<string>
keywords*array<string>
tags*array<string>
subcategoryId*string
Formatuuid
brandId*|
Formatuuid
status*string

pending_review: not approved by Bhakti Baazar, so not on sale. New products start here. An admin can also switch an approved product off, which shows the same status. live: approved and published. unpublished: approved, but you have hidden it. deleted: only with include_deleted=true.

Value in"pending_review""live""unpublished""deleted"
approved*boolean

Approved by Bhakti Baazar.

isPublished*boolean

You want it on sale. Shoppers see it once it is also approved.

images*
attributes*array<>
variants*array<>

Deleted variants are left out.

manufacturedOrigin*string|null
giftWrapAvailable*boolean
containsLiquid*boolean
ageRestriction*number

Minimum buyer age; 0 for none.

createdAt*string
Formatdate-time
updatedAt*string

The last change to the product or any of its variants, stock and deletions included. updated_since filters on this.

Formatdate-time
deletedAt?|
Formatdate-time
Example Request
curl -X PATCH 'https://api.bhaktibaazar.com/seller-api/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "sellerProductCode": "string",  "name": "5 Mukhi Rudraksha Mala",  "description": "string",  "bulletPoints": [    "string"  ],  "keywords": [    "string"  ],  "tags": [    "string"  ],  "subcategoryId": "5d1d1977-a6ea-4651-9647-91e10003c846",  "brandId": "0e9bcbb3-096e-49f9-aeea-7a13a201eff5",  "status": "pending_review",  "approved": true,  "isPublished": true,  "images": {    "thumbnail": "string",    "gallery": [      "string"    ]  },  "attributes": [    {      "name": "Mukhi",      "value": "5",      "unit": "string"    }  ],  "variants": [    {      "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"    }  ],  "manufacturedOrigin": "India",  "giftWrapAvailable": true,  "containsLiquid": true,  "ageRestriction": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "deletedAt": "2019-08-24T14:15:22Z"}