API referenceProducts
Get a product by your product code
GET
Scope: catalog:read
Matches ignoring letter case and surrounding spaces.
sellerApiKeyheader
AuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
sellerProductCode*stringapplication/json- response
id*stringFormat
uuidsellerProductCode*|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*stringFormat
uuidbrandId*|Format
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.
Value in
"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*stringFormat
date-timeupdatedAt*stringThe last change to the product or any of its variants, stock and deletions included. updated_since filters on this.
Format
date-timedeletedAt?|Format
date-timecurl -X GET 'https://api.bhaktibaazar.com/seller-api/v1/products/by-code/string'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"}