Skip to main content

Update Shop Status

This endpoint to update shop status into open or close.

Path

post

/v2/shop/fs/:fs_id/shop-status

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service unique identifier
shop_id
Integer
Required
body
Shop unique identifier
action
String
Required
body
Update the shop status. Value between open or close
start_date
Integer
Required
body
Required for action : close. Timestamp of date (YYYYMMDD) from which the resolution ticket are
end_date
Integer
Required
body
Required for action : close. Timestamp of date (YYYYMMDD) to which the resolution ticket are
close_note
String
Optional
body
Close shop description
close_now
Boolean
Optional
body
Required for action : close. Value between true or false. If true, then immediately close shop & ignore start_date’s date. If false it will follows start_date’s schedule to close

Example Request

curl -X POST \
https://fs.tokopedia.net/v2/shop/fs/13004/shop-status \
-H 'Authorization: Bearer OoHgyxcgQ5a1uCbmbbXjjA' \
-H 'Content-Type: application/json' \
-d '{
"shop_id":1707045,
"action":"open",
"start_date":"20191015",
"end_date":"20191017",
"close_note":"Toko Ditutup Sementara",
"close_now":false
}'

Response Parameters

NameTypeDemo ValueDescription
header
Object
data
String
Berhasil memperbarui Status Toko
Success Message

Success Response Examples

{
"header": {
"process_time": 0.090246203,
"messages": "Successfully Update Shop Status",
"reason": "",
"error_code": 200
},
"data": {
"header": {
"process_time": 0.021940634,
"Messages": null,
"reason": "",
"error_code": "200"
},
"data": "Berhasil memperbarui Status Toko"
}
}

Error Response Examples

{
"header": {
"process_time": 0.074516354,
"messages": "Failed Update Shop Status",
"reason": "",
"error_code": 500
},
"data": {
"header": {
"process_time": 0.002333437,
"Messages": [
"Tanggal mulai tutup tidak bisa kurang dari hari ini"
],
"reason": "Edit Failed",
"error_code": "400"
},
"data": ""
}
}

Error Codes

Error CodeError MessageDescription
SHP_GRPC_001
Failed Send GRPC Request
Failed sending request to upstream
SHP_GRPC_003
Data Not Found
Failed finding data 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_002
Shop Owner is not found
Shop owner info not found, please kindly check

Have a feedback?