Delete Product
This endpoint use to delete product from a shop, this endpoint could do bulk delete product by product_id
.
Path
post
/v3/products/fs/:fs_id/delete
Request Parameters
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
fs_id | Integer | Required | path | Fulfillment service unique identifier |
shop_id | Integer | Required | query | Shop unique identifier |
product_id | Integer Array | Required | body | List of Product ID |
Example Request
- Curl
curl -X POST \
https://fs.tokopedia.net/v3/products/fs/13004/delete?shop_id=479573 \
-H 'Authorization: Bearer OoHgyxcgQ5a1uCbmbbXjjA' \
-H 'Content-Type: application/json' \
-d '{
"product_id":[15362375]
}'
Response Parameters
Name | Type | Demo Value | Description |
---|---|---|---|
Integer | 2 | Total Data Count | |
Integer | 2 | Succeed Row Count | |
Integer | 2 | Failed Row Count | |
String Array | Error Product ID [115306196] : There are some problem when retrieve product info | Failed Rows Error Message |
Success Response Examples
{
"header": {
"process_time": 0.588856684,
"messages": "Your request has been processed successfully"
},
"data": {
"total_data": 1,
"succeed_rows": 1,
"failed_rows": 0,
"failed_rows_data": null
}
}
Error Response Examples
{
"header": {
"process_time": 0.029730173,
"messages": "Your request has been processed successfully"
},
"data": {
"total_data": 1,
"succeed_rows": 0,
"failed_rows": 1,
"failed_rows_data": [
"Error Product ID [115306196] : There are some problem when retrieve product info"
]
}
}
Error Codes
Error Code | Error Message | Description |
---|---|---|
PRD_GRPC_001 | Failed Send GRPC Request | Failed sending request to upstream |
PRD_GRPC_002 | There Are Error From Ext Service | Failed getting response from upstream |
PRD_API_001 | Failed To Initialize Request | Failed initialize request to upstream |
PRD_API_003 | Failed To Fetching Request | Failed fetching request from upstream |
PRD_API_004 | Failed To Reading Response Body | Error on processing data |
PRD_API_005 | Failed To Parsing Json Response | Error on processing data |
PRD_API_007 | Failed Marshalling JSON | Error on processing data |
PRD_USC_001 | fs_id Is Not Associated With Shop ID or Warehouse ID | fs_id not assosiated, please check again |
SHP_GRPC_001 | Failed Send GRPC Request | Failed sending request to upstream |
SHP_GRPC_003 | Data Not Found | Failed finding data from upstream |