Update a product
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.
sellerApiKeyAuthorizationBearer <bbsk_live_…>A Seller API key, bbsk_live_…
productId*stringuuidapplication/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?stringattributes?array<>Replaces all product attributes, so send the full list.
application/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 PATCH 'https://api.bhaktibaazar.com/seller-api/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}