Create Showcase
This endpoint used to create new showcase based on shop_id
and fs_id
.
Path
post
/v1/showcase/fs/:fs_id/create?shop_id={{shop_id}}
Request Parameters
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
fs_id | Integer | Required | path | Fulfillment service unique identifier |
shop_id | Integer | Required | path | Shop unique identifier |
name | String | Required | body | Showcase name to be created |
Example Request
- Curl
curl -X POST \
'https://fs.tokopedia.net/v1/showcase/fs/13004/create?shop_id=479573' \
-H 'Authorization: Bearer avK2WV5pSda4HlxC5mLrFA' \
-H 'Content-Type: application/json' \
-d '{
"Name" : "testshowcase"
}'
Response Parameters
Name | Type | Demo Value | Description |
---|---|---|---|
String | Berhasil menambah Etalase Toko | Response Message | |
Integer | 1420235 | Showcase Unique Identifier |
Success Response Examples
{
"header": {
"process_time": 0.509604864,
"messages": "Your request has been processed successfully"
},
"data": {
"message": "Berhasil menambah Etalase Toko",
"created_id": 1420235
}
}
Error Response Examples
{
"header": {
"process_time": 0.000219264,
"messages": "We could not process your request due to malformed request, please check again",
"reason": "shop_id cannot be empty",
"error_code": "SHW_DLV_003"
},
"data": null
}
Error Codes
Error Code | Error Message | Description |
---|---|---|
SHP_GRPC_001 | Failed Send GRPC Request | Failed sending request to upstream |
SHP_GRPC_002 | There Are Error From Ext Service | Failed getting response from upstream |
SHP_GRPC_003 | Data Not Found | Failed finding data from upstream |
SHP_API_003 | Failed To Fetching Request | Failed fetching response from upstream |
SHP_USC_001 | FS ID is not associated with Shop ID | FS ID is not connected with the Shop ID, please kindly check |
SHP_USC_004 | Shop information is empty | Failed getting shop info, please kindly check |
SHP_DLV_001 | FS ID is not valid | Invalid FS ID, please kindly check |
SHP_DLV_002 | Shop ID is not valid | Invalid Shop ID, please kindly check |
SHP_DLV_008 | failed read body request | Failed read body request, please kindly check |
SHP_DLV_012 | fs_id cannot be empty | fs_id is empty, please kindly check |
SHP_DLV_013 | shop_id cannot be empty | shop_id is empty, please kindly check |