Skip to main content

Set Active Product

This endpoint use to set the product into active product status without changing the product’s current stock. The product that can be updated is up to 25 products at one request.

Path

post

/v1/products/fs/:fs_id/active

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
query
List of Product ID

Example Request

curl -X POST \
https://fs.tokopedia.net/v1/products/fs/13004/active?shop_id=479573 \
-H 'Authorization: Bearer OoHgyxcgQ5a1uCbmbbXjjA' \
-H 'Content-Type: application/json' \
-d '{
"product_id":[15362375,15306196]
}'

Response Parameters

NameTypeDemo ValueDescription
total_data
Integer
2
Total Data Count
succeed_rows
Integer
2
Succeed Row Count
failed_rows
Integer
0
Failed Row Count
failed_rows_data
String Array
Error Product ID [115306196] : There are some problem when retrieve product info
Failed Rows Count Message

Success Response Examples

{
"header": {
"process_time": 0.588856684,
"messages": "Your request has been processed successfully"
},
"data": {
"total_data": 2,
"succeed_rows": 2,
"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?