Subscription Builder Storefront API (1.0)
Download OpenAPI specification:Download
Note: Subscription Builder requires Bold Checkout to be installed on your store. Therefore, it is not available to merchants using Shopify. For information on build-a-box subscriptions on Shopify, refer to the Help Center.
Subscription Builder makes it possible to create advanced build-a-box style subscription boxes, where customers can choose the contents of each subscription order. Merchants must be using Bold Checkout to use this functionality.
The Subscription Builder Storefront API contains endpoints specific to storefront functionality and does not require special authentication.
Refer to the changelog for the latest updates to this API.
Contains information about subscription boxes, including shop IDs and subscription groups. Use these endpoints to get and list subscription boxes.
List Boxes
List subscription boxes in a store.
Authorizations:
path Parameters
shop_identifier required | string |
Responses
Response samples
- 200
{- "data": {
- "boxes": [
- {
- "id": 0,
- "shop_identifier": "string",
- "bold_subscription_group_id": 0,
- "box_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": [
- {
- "id": 0,
- "shop_identifier": "string",
- "attribute_key": "string",
- "attribute_value": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
]
}, - "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0
}
}
Get Box
Get a subscription box by its ID.
Authorizations:
path Parameters
shop_identifier required | string |
box_id required | integer |
Responses
Response samples
- 200
{- "data": {
- "box": {
- "id": 0,
- "shop_identifier": "string",
- "bold_subscription_group_id": 0,
- "box_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": [
- {
- "id": 0,
- "shop_identifier": "string",
- "attribute_key": "string",
- "attribute_value": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
}
}
A child resource of Boxes. Contains information about subscription box sizes, including subscription box ID and shop ID. Use these endpoints to list subscription box sizes.
Get Box Sizes
Get box sizes by a subscription box ID.
Authorizations:
path Parameters
shop_identifier required | string |
box_id required | integer |
Responses
Response samples
- 200
{- "data": {
- "box_sizes": [
- {
- "id": 0,
- "shop_identifier": "string",
- "box_id": 0,
- "box_size_name": "string",
- "pricing_mode": "flexible_pricing",
- "min_quantity": 0,
- "max_quantity": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}, - "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0
}
}
Contains information about subscription box time slots, including datetime and time slot options. Use these endpoints to list time slots for a subscription box.
List Time Slots
List time slots for a subscription box.
Authorizations:
path Parameters
shop_identifier required | string |
box_id required | string |
query Parameters
order_datetime | string <date-time> |
Responses
Response samples
- 200
{- "data": {
- "time_slots": [
- {
- "id": 0,
- "shop_identifier": "string",
- "box_id": 0,
- "time_slot_name": "string",
- "start_date": "string",
- "end_date": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": [
- {
- "id": 0,
- "shop_identifier": "string",
- "attribute_key": "string",
- "attribute_value": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "selection_deadline_date": "string",
- "visibility_date": "string",
- "box_products": [
- {
- "id": 0,
- "platform_product_id": "string",
- "platform_variant_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": [
- {
- "id": 0,
- "shop_identifier": "string",
- "attribute_key": "string",
- "attribute_value": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
]
}, - "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0
}
}