Skip to main content

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

ParameterTypeRequiredLocationDescription
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 -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

NameTypeDemo ValueDescription
total_data
Integer
2
Total Data Count
succeed_rows
Integer
2
Succeed Row Count
failed_rows
Integer
2
Failed Row Count
failed_rows_data
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 CodeError MessageDescription
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

Have a feedback?