Skip to Content
Bhakti BaazarDevelopers
API referenceProducts

Create a product

POST
/products

Scope: catalog:write

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.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Header Parameters

Idempotency-Key*string

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

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
subcategoryId*string

From GET /reference/categories.

Formatuuid
brandId*string

From GET /brands.

Formatuuid
attributes*array<>

The subcategory’s product attributes. Required ones must be present.

variants*array<>
Items1 <= items <= 50

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 POST 'https://api.bhaktibaazar.com/seller-api/v1/products' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "name": "5 Mukhi Rudraksha Mala",  "description": "string",  "subcategoryId": "5d1d1977-a6ea-4651-9647-91e10003c846",  "brandId": "0e9bcbb3-096e-49f9-aeea-7a13a201eff5",  "attributes": [    {      "name": "Mukhi",      "value": "5"    }  ],  "variants": [    {      "price": 499,      "mrp": 799,      "hsnCode": "1404",      "gstRate": 5    }  ]}'
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"}