Skip to main content

Cancel Slash Price

This endpoint cancel slash price campaign that already be set.

Path

post

/v1/slash-price/fs/:fs_id/cancel

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service unique identifier
shop_id
Integer
Required
query
Shop unique identifier
slash_price_product_id
Integer
Required
body
Slash price product ID. To retrieve this value, please refer to View Slash Price Products or View Campaign Products
product_id
Integer
Required
body
Product ID that associated with slash_price_product_id, please refer to View Slash Price Products to view product_id that associated with slash_price_product_id

Example Request

curl -X POST \
'https://fs.tokopedia.net/v1/slash-price/fs/13004/cancel?shop_id=479573 ' \
-H 'Authorization: Bearer EUqcir9oRCqNr_9OuvZgkg'\
-d '[
{
"slash_price_product_id":19602,
"product_id":15351412
}
]'

Response Parameters

NameTypeDemo ValueDescription
total_data
Integer
0
Total Data Count
succeed_rows
Integer
1
Success Data Count
failed_rows
Integer
0
Failed Data Count
failed_rows_data
String Array
[Error To Cancel Slash Price Product ID [19602] : slash price product id doesn't associate with product id [15403846]]
Totel Failed Data Count

Success Response Examples

{
"header": {
"process_time": 2.495287703,
"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.390240645,
"messages": "Your request has been processed successfully"
},
"data": {
"total_data": 1,
"succeed_rows": 0,
"failed_rows": 1,
"failed_rows_data": [
"Error To Cancel Slash Price Product ID [19602] : slash price product id doesn't associate with product id [15403846]"
]
}
}

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
SHP_GRPC_001
Failed Send GRPC Request
Failed sending request to upstream
SHP_GRPC_003
Data Not Found
Failed finding data from upstream
SPE_USC_001
fs_id Is Not Associated With Shop ID or Warehouse ID
FS ID is not associated, please kindly check
SPE_DLV_001
fs_id cannot be empty
FS ID is empty
SPE_DLV_005
Invalid field %s format, value %v should be %s
Invalid field format, please kindly check
SPE_DLV_006
Invalid request body, please check again
Invalid reequest body, please kindly check
SPE_DLV_007
Value of field %s exceed limit %s=%d
Invalid field value, please kindly check
SPE_GRPC_001
Failed Send GRPC Request
Failed sending request to upstream
SPE_GRPC_003
Data Not Found
Data not found
SPE_GRPC_004
Failed Marshalling JSON
Failed processing request to upstream
SPE_GRPC_005
Failed Unmarshal JSON
Failed prorcessing response from upstream

Have a feedback?