Set Ethical Product
This endpoint set ethical product.
Path
get
{host}/inventory/v1/fs/:fs_id/shop/:shop_id/product/attribute
Request Parameters
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
fs_id | integer | required | path | Fulfillment Service Unique Identifier |
shop_id | integer | required | path | Shop Unique Identifier |
product_id | integer | required | body | Product Unique Identifier |
attribute | object array | required | body | Attributes Object Array to Update |
need_prescription | bool | required | body | Ethical Product Status (true/false) |
Example Request
curl -location -request GET
'https://fs.tokopedia.net//inventory/v1/fs/1234/shop/5678/product/attribute' \
-H 'Authorization: Bearer oXQuqXjXTHa02x5hedG5IQ' \
-H 'Content-Type: application/json' \
-d '[
{
"product_id": 999999,
"attribute":{
"need_prescription": true
}
}
]'
Success Response Examples
{
"header": {
"process_time": 0.299028,
"messages": "Success"
"reason": ""
"error_code": 0
},
"data": null
}