Skip to main content

Cancel Bundle

This endpoint is used to cancel the bundle.

Path

patch

/v1/products/bundle/fs/:fs_id/edit

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service unique identifier
shop_id
Integer
Required
query
Shop unique identifier
bundle
Object
Required
body
Bundle object to create

Where bundle object contain:

ParameterTypeRequiredLocationDescription
bundle_id
Integer
Required
body
Bundle unique identifier

Example Request

curl --location --request PATCH 'https://fs.tokopedia.net/v1/products/bundle/fs/99999/edit?shop_id=99999' \
--header 'Authorization: Bearer c:hrWJ64WQQQiO5dmfFIzhBA' \
--header 'Content-Type: application/json' \
--data-raw '{"bundle" : {
"bundle_id": 4360
}}
'

Response Parameters

NameTypeDemo ValueDescription
bundle_id
Integer
4360
Bundle Unique Identifier

Success Response Examples

{
"header": {
"process_time": 0,
"messages": "Your request has been processed successfully"
},
"data": {
"bundle_id": 4360
}
}

Error Response Examples

{
"header": {
"process_time": 0,
"messages": "Our server encounters an error, please try again later",
"error_code": "BDL_GRPC_004"
},
"data": null
}

Error Codes

Error CodeError MessageDescription
PRD_USC_029
Warehouse ID Information Not Found
Failed to get warehouse information
BDL_USC_001
FS ID is not associated with Shop ID or Warehouse ID
fs_id is not associated, please check again
BDL_USC_002
Shop Info not found
Shop information cannot be found
BDL_DLV_001
Invalid request body, please check again
Invalid request body, please check again
BDL_DLV_002
Invalid field %s format, value %v should be %s
Invalid params, please check again
SHP_GRPC_001
Failed Send GRPC Request
Failed sending request to upstream
SHP_GRPC_003
Data Not Found
Failed finding data from upstream

Have a feedback?