Create a product
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.
sellerApiKeyAuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
Idempotency-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
sellerProductCode?stringYour own product code, unique in your account ignoring case.
bulletPoints?array<string>items <= 10keywords?array<string>Search words shoppers might use.
items <= 20tags?array<string>items <= 10isPublished?booleanYou 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?stringgiftWrapAvailable?booleancontainsLiquid?booleanageRestriction?numberMinimum buyer age; 0 for none.
0 <= value <= 100thumbnailUrl?stringPublic HTTPS image URL. We copy it to our CDN.
galleryUrls?array<string>Public HTTPS image URLs. We copy them to our CDN.
items <= 9name*stringdescription*stringsubcategoryId*stringFrom GET /reference/categories.
uuidbrandId*stringFrom GET /brands.
uuidattributes*array<>The subcategory’s product attributes. Required ones must be present.
variants*array<>1 <= items <= 50application/json- response
id*stringuuidsellerProductCode*|Your own product code. Unique within your account, ignoring letter case and surrounding spaces.
name*stringdescription*stringbulletPoints*array<string>keywords*array<string>tags*array<string>subcategoryId*stringuuidbrandId*|uuidstatus*stringpending_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.
"pending_review""live""unpublished""deleted"approved*booleanApproved by Bhakti Baazar.
isPublished*booleanYou want it on sale. Shoppers see it once it is also approved.
images*attributes*array<>variants*array<>Deleted variants are left out.
manufacturedOrigin*string|nullgiftWrapAvailable*booleancontainsLiquid*booleanageRestriction*numberMinimum buyer age; 0 for none.
createdAt*stringdate-timeupdatedAt*stringThe last change to the product or any of its variants, stock and deletions included. updated_since filters on this.
date-timedeletedAt?|date-timecurl -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 } ]}'{ "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"}