Skip to main content

Get Bundle List

This endpoint is used to get the bundle list by shop_id. There is a limit only 10 bundle data will be shown.

Path

get

/v1/products/bundle/fs/:fs_id/list

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service unique identifier
shop_id
Integer
Required
query
Shop unique identifier
type
Integer
Required
query
Filter type of bundle list where 1 = SINGLE and 2 = MULTIPLE
status
Integer
Optional
query
Filter status of bundle list where 1 = ACTIVE, 2 = UPCOMING and -5 = CANCELED. fill with 0 or keep it empty to show all bundle list status
last_group_id
Integer
Optional
query
For pagination purpose. Fill with 0 or keep it empty to show all bundle list

Example Request

Example request of getting bundle using bundle_id:

curl --location --request GET 'https://fs.tokopedia.net/v1/products/bundle/fs/99999/list?shop_id=99999&type=1&status=1&last_group_id=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer c:BwjKmt0MTCyCto2pNz7NFQ'

Example request of getting bundle using product_id:

curl --location --request GET 'https://fs.tokopedia.net/v1/products/bundle/fs/99999/info?product_id=2147981945' \
--header 'Authorization: Bearer c:hrWJ64WQQQiO5dmfFIzhBA'

Response Parameters

NameTypeDemo ValueDescription
bundle_list_info
Object
is_last_page
Boolean
true
Is last page?
last_group_id
Integer
7328
Last group unique identifier from bundle_list info

Success Response Examples

{
"header": {
"process_time": 0,
"messages": "Your request has been processed successfully"
},
"data": {
"bundle_list_info": [
{
"group_id": 7759,
"bundle_id": 7759,
"Name": "Paket Murah",
"Type": 1,
"status": 1,
"shop_id": 6552567,
"start_time_unix": 1634866609,
"stop_time_unix": 9224286393600,
"bundle_list_item": [
{
"bundle_id": 7759,
"product_id": 2148003440,
"Name": "X8 Lia Tops 222",
"pic_url": "https://ecs7.tokopedia.net/img/cache/200-square/hDjmkQ/2021/10/4/922f34bd-c0e6-43a8-816c-aa617357f362.jpg",
"product_url": "https://staging.tokopedia.com/dev-ari/x8-lia-tops-222",
"status": 1,
"quantity": 3,
"child_ids": null,
"discount_percentage": 95,
"min_order": 3
}
],
"sold": 0,
"total_bundle_group": 2
},
{
"group_id": 7328,
"bundle_id": 7328,
"Name": "Paket Murah",
"Type": 1,
"status": 1,
"shop_id": 6552567,
"start_time_unix": 1634530615,
"stop_time_unix": 9224286393600,
"bundle_list_item": [
{
"bundle_id": 7328,
"product_id": 2147981541,
"Name": "Coba Bundle Gan",
"pic_url": "https://ecs7.tokopedia.net/img/cache/200-square/VqbcmM/2021/10/1/e6914250-cdeb-4746-881a-143cee1cea74.jpg",
"product_url": "https://staging.tokopedia.com/dev-ari/coba-bundle-gan",
"status": 1,
"quantity": 3,
"child_ids": null,
"discount_percentage": 90,
"min_order": 3
}
],
"sold": 0,
"total_bundle_group": 2
}
],
"is_last_page": true,
"last_group_id": 7328
}
}

Error Response Examples

{
"header": {
"process_time": 0,
"messages": "We could not process your request due to malformed request, please check again",
"reason": "Filter type must be 1 or 2 and cannot be empty",
"error_code": "BDL_DLV_013"
},
"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_013
Filter type must be 1 or 2 and cannot be empty
Invalid filter value, 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?