Skip to main content

View Slash Price

This endpoint view all slash price campaign that already set.

Path​

get

/v2/slash-price/fs/:fs_id/view

Request Parameters​

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service unique identifier
shop_id
Integer
Required
query
Shop unique identifier
warehouse_id
Integer
Required
query
Warehouse unique identifier
product_id
Integer
Required
query
Product unique identifier
page
Integer
Required
query
Determine which page the order list should start. The minimal value is 1
per_page
Integer
Required
query
Determine how many orders will be shown per page
status
String
Optional
query
Filter data by slash price status. The possible values are SCHEDULED,ONGOING, and PAUSED. By default, it will show all status if we don’t include this into query parameter

Example Request​

curl -X GET \
'https://fs.tokopedia.net/v2/slash-price/fs/13004/view?shop_id=479573&page=1&per_page=10' \
-H 'Authorization: Bearer EUqcir9oRCqNr_9OuvZgkg'

Response Parameters​

NameTypeDemo ValueDescription
slash_price_product_id
Integer
261688
Slash Price Product Unique Identifier
product_id
Integer
2147608578
Product Unique Identifier
Name
String
Test add product
Product Name
price
Object
stock
Integer
10
Product Stock
url
String
https://staging.tokopedia.com/wandyshopz/test-add-product
Product URL
sku
String
test12t
Product SKU
discounted_price
Integer
2000
Product Discounted Price
discounted_percentage
Integer
80
Product Discounted Percentage
max_order
Integer
2
Product Maximum Order
start_date
Timestamp
2021-09-27T13:25:00+07:00
Slash Price Start Date Timestamp
end_date
Timestamp
2021-09-28T01:24:00+07:00
Slash Price Start Date Timestamp
warehouses
Object Array
slash_price_status_id
Integer
1
Slash Price Status

Success Response Examples​

{
"header": {
"process_time": 18,
"messages": "Your request has been processed successfully"
},
"data": [
{
"slash_price_product_id": 261688,
"product_id": 2147608578,
"Name": "Test add product",
"price": {
"min": 10000,
"min_formated": "Rp 10.000",
"max": 10000,
"max_formated": "Rp 10.000"
},
"stock": 10,
"url": "https://staging.tokopedia.com/wandyshopz/test-add-product",
"sku": "test123",
"discounted_price": 2000,
"discounted_percentage": 80,
"max_order": 2,
"start_date": "2021-09-27T13:25:00+07:00",
"end_date": "2021-09-28T01:24:00+07:00",
"warehouses": [
{
"warehouse_id": 341044,
"warehouse_name": "Lokasi Seller",
"warehouse_location": "Jakarta Barat, Grogol petamburan,11510",
"warehouse_stock": 10,
"initial_quota": 0,
"max_order": 2,
"event_id": 352615
}
],
"slash_price_status_id": 2
}
]
}

Error Response Examples​

{
"header": {
"process_time": 0,
"messages": "We could not process your request due to malformed request, please check again",
"reason": "Value of field [per_page] exceed limit max=20",
"error_code": "SPE_DLV_007"
},
"data": null
}

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_USC_002
Product ID does not belong to Shop ID or Warehouse ID
Product ID is not associated, please kindly check
SPE_USC_003
Warehouse ID Information Not Found
Warehouse information not found, please kindly check
SPE_USC_004
Cannot View Slash Price Information Parent Product Variant
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_DLV_008
Value %s of field %s is not allowed, the allowed fields are %s
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
  • Path
  • Request Parameters
  • Example Request
  • Response Parameters
  • Success Response Examples
  • Error Response Examples
  • Error Codes
  • Have a feedback?