Skip to main content

Get Bundle Info

This endpoint is used to get bundle info using either the bundle_id or product_id.

Path

get

/v1/products/bundle/fs/:fs_id/info

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service unique identifier
shop_id
Integer
Required
query
Shop unique identifier
bundle_id
Integer Array
Optional
body
Bundle IDs, could add more than one. Example: 4360,4361
product_id
Integer
Optional
body
The product unique identifier that associated with the bundle

Notes: Choose either using bundle_id or product_id

Example Request

Example request of getting bundle using bundle_id:

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

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_info
Object Array

Success Response Examples

{
"header": {
"process_time": 0,
"messages": "Your request has been processed successfully"
},
"data": {
"bundle_info": [
{
"bundle_id": 4360,
"group_id": 4360,
"Name": "Paket TEst 1",
"Type": 1,
"status": -5,
"shop_id": 99999,
"start_time_unix": 1633070351,
"stop_time_unix": 9224286393600,
"bundle_item": [
{
"product_id": 2147967675,
"Name": "Product Testing V3 1.40",
"pic_url": "https://ecs7.tokopedia.net/img/cache/700/hDjmkQ/2021/9/30/fc5c44a0-b1de-4df2-b95b-3c1739c3edd8.jpg",
"status": 1,
"selection": [
{
"product_variant_id": 154303,
"variant_id": 6,
"variant_unit_id": 7,
"position": 1,
"option": [
{
"product_variant_option_id": 348183,
"unit_value_id": 23,
"value": "XS",
"hex": "",
"picture": {
"file_name": "4843b7c9-ddb9-4adb-979d-216e90c637d6.jpg",
"file_path": "hDjmkQ/2021/9/30",
"url": "https://ecs7.tokopedia.net/img/cache/700/hDjmkQ/2021/9/30/4843b7c9-ddb9-4adb-979d-216e90c637d6.jpg",
"url100": "https://ecs7.tokopedia.net/img/cache/100-square/hDjmkQ/2021/9/30/4843b7c9-ddb9-4adb-979d-216e90c637d6.jpg",
"url200": "https://ecs7.tokopedia.net/img/cache/200-square/hDjmkQ/2021/9/30/4843b7c9-ddb9-4adb-979d-216e90c637d6.jpg"
}
},
{
"product_variant_option_id": 348184,
"unit_value_id": 24,
"value": "S",
"hex": "",
"picture": {
"file_name": "05abb9f2-61a8-4ccf-9f38-676b06eb4e75.jpg",
"file_path": "hDjmkQ/2021/9/30",
"url": "https://ecs7.tokopedia.net/img/cache/700/hDjmkQ/2021/9/30/05abb9f2-61a8-4ccf-9f38-676b06eb4e75.jpg",
"url100": "https://ecs7.tokopedia.net/img/cache/100-square/hDjmkQ/2021/9/30/05abb9f2-61a8-4ccf-9f38-676b06eb4e75.jpg",
"url200": "https://ecs7.tokopedia.net/img/cache/200-square/hDjmkQ/2021/9/30/05abb9f2-61a8-4ccf-9f38-676b06eb4e75.jpg"
}
}
],
"Name": "ukuran",
"identifier": "size"
}
],
"child": [
{
"product_id": 2147978476,
"Name": "Product Testing V3 1.40 - S",
"pic_url": "https://ecs7.tokopedia.net/img/cache/700/hDjmkQ/2021/9/30/05abb9f2-61a8-4ccf-9f38-676b06eb4e75.jpg",
"min_order": 5,
"bundle_price": 8000,
"original_price": 10000,
"stock": 400,
"option_id": [
348184
],
"is_buyable": true
}
],
"bundle_price": 0,
"original_price": 0,
"stock": 0,
"min_order": 0,
"product_status": "ACTIVE"
}
],
"warehouse_id": 99999,
"quota": -1,
"original_quota": -1,
"max_order": 0,
"preorder": {
"status": "INACTIVE",
"status_num": 0,
"process_type": "",
"process_type_num": 0,
"start_time": "INACTIVE",
"end_time": "INACTIVE",
"order_limit": 0,
"max_order": 0,
"process_day": 0,
"process_time": 0
}
}
],
"error": null
}
}

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
PRD_DLV_001
fs_id cannot be empty
fs_id field is empty, 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?