View Slash Price
This endpoint view all slash price campaign that already set.
Pathβ
get
/v2/slash-price/fs/:fs_id/view
Request Parametersβ
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
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
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β
Name | Type | Demo Value | Description |
---|---|---|---|
Integer | 261688 | Slash Price Product Unique Identifier | |
Integer | 2147608578 | Product Unique Identifier | |
String | Test add product | Product Name | |
price | Object | ||
Integer | 10 | Product Stock | |
String | https://staging.tokopedia.com/wandyshopz/test-add-product | Product URL | |
String | test12t | Product SKU | |
Integer | 2000 | Product Discounted Price | |
Integer | 80 | Product Discounted Percentage | |
Integer | 2 | Product Maximum Order | |
Timestamp | 2021-09-27T13:25:00+07:00 | Slash Price Start Date Timestamp | |
Timestamp | 2021-09-28T01:24:00+07:00 | Slash Price Start Date Timestamp | |
warehouses | Object Array | ||
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 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 |
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 |