Subscription Builder API (1.0)
Download OpenAPI specification:Download
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.
Refer to the changelog for the latest updates to this API.
List Boxes
List subscription boxes
Authorizations:
read_subscription_groups
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
}
}
Create Box
Create a new subscription box from an existing subscription group
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
Request Body schema: application/json
id | integer |
shop_identifier | string |
bold_subscription_group_id | integer |
box_name | string |
created_at | string <date-time> |
updated_at | string <date-time> |
Array of objects (Attribute) [ items ] |
Responses
Request samples
- Payload
{- "bold_subscription_group_id": 0,
- "box_name": "string",
- "attributes": [
- {
- "attribute_key": "string",
- "attribute_value": "string"
}
]
}
Response samples
- 201
{- "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"
}
]
}
}
}
Update Box
Partially update a subscription box by its ID
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
box_id required | integer |
Request Body schema: application/json
id | integer |
shop_identifier | string |
bold_subscription_group_id | integer |
box_name | string |
created_at | string <date-time> |
updated_at | string <date-time> |
Array of objects (Attribute) [ items ] |
Responses
Request samples
- Payload
{- "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"
}
]
}
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"
}
]
}
}
}
Get Box
Get a subscription box by its ID
Authorizations:
read_subscription_groups
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"
}
]
}
}
}
Delete Box
Delete a subscription box by its ID
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
box_id required | integer |
Responses
Storefront: List Boxes
List subscription boxes
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
}
}
Storefront: Get Box
Get a subscription box by its ID
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"
}
]
}
}
}
List Box Products
List box products
Authorizations:
read_subscription_groups
path Parameters
shop_identifier required | string |
Responses
Response samples
- 200
{- "data": {
- "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
}
}
Create Box Product
Create a new box product from an existing product variant
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
Request Body schema: application/json
object (Box Product) | |||||||||||||
|
Responses
Request samples
- Payload
{- "box_product": {
- "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"
}
]
}
}
Response samples
- 201
{- "data": {
- "box_product": {
- "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"
}
]
}
}
}
Get Box Product
Get a box product by its ID
Authorizations:
read_subscription_groups
path Parameters
shop_identifier required | string |
box_product_id required | integer |
Responses
Response samples
- 200
{- "data": {
- "box_product": {
- "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"
}
]
}
}
}
Update Box Product
Partially update a box product by its ID
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
box_product_id required | integer |
Request Body schema: application/json
id | integer |
platform_product_id | string |
platform_variant_id | string |
created_at | string <date-time> |
updated_at | string <date-time> |
Array of objects (Attribute) [ items ] |
Responses
Request samples
- Payload
{- "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"
}
]
}
Response samples
- 200
{- "data": {
- "box_product": {
- "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"
}
]
}
}
}
Delete Box Product
Delete a box product by its ID
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
box_product_id required | integer |
Responses
List Selections
List selections for a single customer
Authorizations:
read_subscriptions
path Parameters
shop_identifier required | string |
platform_customer_id required | string |
query Parameters
bold_platform_subscription_line_item_id | integer Filter by subscription line item |
order_datetime | string <date-time> Filter by order datetime |
Responses
Response samples
- 200
{- "data": {
- "selections": [
- {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
}
Create Selection
Create a new selection
Authorizations:
write_subscriptions
path Parameters
shop_identifier required | string |
platform_customer_id required | string |
Request Body schema: application/json
object (Selection) | |||||||||||||||||
|
Responses
Request samples
- Payload
{- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Get Selection
Get a selection by its ID
Authorizations:
read_subscriptions
path Parameters
shop_identifier required | string |
platform_customer_id required | string |
selection_id required | integer |
Responses
Response samples
- 200
{- "data": {
- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
}
Update Selection
Partially update a selection by its ID
Authorizations:
write_subscriptions
path Parameters
shop_identifier required | string |
platform_customer_id required | string |
selection_id required | integer |
Request Body schema: application/json
object (Selection) | |||||||||||||||||
|
Responses
Request samples
- Payload
{- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Response samples
- 200
{- "data": {
- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
}
Delete Selection
Delete a selection by its ID
Authorizations:
write_subscriptions
path Parameters
shop_identifier required | string |
platform_customer_id required | string |
selection_id required | integer |
Responses
List Customer Selections
List selections for a single customer
Authorizations:
path Parameters
shop_identifier required | string |
platform_customer_id required | string |
query Parameters
bold_platform_subscription_line_item_id | integer Filter by subscription line item |
order_datetime | string <date-time> Filter by order datetime |
Responses
Response samples
- 200
{- "data": {
- "selections": [
- {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_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
}
}
Create Customer Selection
Create a new selection
Authorizations:
path Parameters
shop_identifier required | string |
platform_customer_id required | string |
Request Body schema: application/json
object (Selection) | |||||||||||||||||
|
Responses
Request samples
- Payload
{- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Response samples
- 200
{- "data": {
- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
}
Get Customer Selection
Get a selection by its ID
Authorizations:
path Parameters
shop_identifier required | string |
selection_id required | integer |
platform_customer_id required | string |
Responses
Response samples
- 200
{- "data": {
- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
}
Update Customer Selection
Partially update a selection by its ID
Authorizations:
path Parameters
shop_identifier required | string |
selection_id required | integer |
platform_customer_id required | string |
Request Body schema: application/json
object (Selection) | |||||||||||||||||
|
Responses
Request samples
- Payload
{- "selection": {
- "id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "order_datetime": "2019-08-24T14:15:22Z",
- "box_size_id": 0,
- "time_slot_id": 0,
- "line_items": [
- {
- "box_product_id": 0,
- "choice_quantity": 0
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List Subscription Line Items
List subscription line items for existing subscription box subscriptions
Authorizations:
read_subscriptions
path Parameters
shop_identifier required | string |
Responses
Response samples
- 200
{- "data": {
- "subscription_line_items": [
- {
- "shop_identifier": "string",
- "box_id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "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"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
}
Get Subscription Line Item
Get a subscription line item by its ID
Authorizations:
read_subscriptions
path Parameters
shop_identifier required | string |
line_item_id required | string |
Responses
Response samples
- 200
{- "data": {
- "subscription_line_item": {
- "shop_identifier": "string",
- "box_id": 0,
- "bold_platform_subscription_line_item_id": 0,
- "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"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
}
Create Time Slot
Create a new time slot for an existing subscription box
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
box_id required | integer |
Request Body schema: application/json
id | integer |
shop_identifier | string |
box_id | integer |
time_slot_name | string |
start_date | string |
end_date | string |
created_at | string <date-time> |
updated_at | string <date-time> |
Array of objects (Attribute) [ items ] | |
selection_deadline_date | string |
visibility_date | string |
Array of objects (Box Product) [ items ] |
Responses
Request samples
- Payload
{- "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"
}
]
}
]
}
Response samples
- 201
{- "data": {
- "time-slot": {
- "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"
}
]
}
]
}
}
}
List Time Slots
List time slots for a subscription box
Authorizations:
read_subscription_groups
path Parameters
shop_identifier required | string |
box_id required | integer |
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
}
}
Get Time Slot
Get a time slot by its ID
Authorizations:
read_subscription_groups
path Parameters
shop_identifier required | string |
time_slot_id required | integer |
Responses
Response samples
- 200
{- "data": {
- "time_slot": {
- "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"
}
]
}
]
}
}
}
Update Time Slot
Partially update a time slot by its ID
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
time_slot_id required | integer |
Request Body schema: application/json
id | integer |
shop_identifier | string |
box_id | integer |
time_slot_name | string |
start_date | string |
end_date | string |
created_at | string <date-time> |
updated_at | string <date-time> |
Array of objects (Attribute) [ items ] | |
selection_deadline_date | string |
visibility_date | string |
Array of objects (Box Product) [ items ] |
Responses
Request samples
- Payload
{- "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"
}
]
}
]
}
Response samples
- 200
{- "data": {
- "time_slot": {
- "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"
}
]
}
]
}
}
}
Delete Time Slot
Delete a time slot by its ID
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
time_slot_id required | integer |
Responses
List Time Slot Options
List options for an existing time slot
Authorizations:
read_subscription_groups
path Parameters
shop_identifier required | string |
time_slot_id required | integer |
Responses
Response samples
- 200
{- "data": {
- "time_slot_options": [
- {
- "box_product_id": 0,
- "time_slot_id": 0
}
]
}
}
Create Time Slot Option
Create a new option for an existing time slot
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
time_slot_id required | integer |
Request Body schema: application/json
box_product_id | integer |
Responses
Request samples
- Payload
{- "box_product_id": 0
}
Response samples
- 200
{- "data": {
- "time_slot_option": {
- "box_product_id": 0,
- "time_slot_id": 0
}
}
}
Delete Time Slot Option
Delete an option from an existing time slot
Authorizations:
write_subscription_groups
path Parameters
shop_identifier required | string |
time_slot_id required | integer |
box_product_id required | integer |
Responses
Storefront: List Time Slots
List time slots for a subscription box
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
}
}
List Box Sizes
Get box sizes by a subscription box ID
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
}
}
Create Box Size
Create a box size
path Parameters
shop_identifier required | string |
box_id required | integer |
Request Body schema: application/json
box_id | integer |
box_size_name | string |
pricing_mode | string Value: "flexible_pricing" |
min_quantity | integer >= 0 |
max_quantity | integer |
created_at | string <date-time> |
updated_at | string <date-time> |
Responses
Request samples
- Payload
{- "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"
}
Response samples
- 200
{- "data": {
- "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"
}
}
Update Box Sizes
Update box sizes
path Parameters
shop_identifier required | string |
box_id required | integer |
Request Body schema: application/json
box_id | integer |
box_size_name | string |
pricing_mode | string Value: "flexible_pricing" |
min_quantity | integer >= 0 |
max_quantity | integer |
created_at | string <date-time> |
updated_at | string <date-time> |
Responses
Request samples
- Payload
[- {
- "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"
}
]
Response samples
- 200
{- "data": [
- {
- "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"
}
]
}
Get Box Size
Get box size by its ID
path Parameters
shop_identifier required | string |
box_size_id required | integer |
Responses
Response samples
- 200
{- "data": {
- "box_size": {
- "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"
}
}
}
Update Box Size
Update a box size
path Parameters
shop_identifier required | string |
box_size_id required | integer |
Request Body schema: application/json
box_id | integer |
box_size_name | string |
pricing_mode | string Value: "flexible_pricing" |
min_quantity | integer >= 0 |
max_quantity | integer |
created_at | string <date-time> |
updated_at | string <date-time> |
Responses
Request samples
- Payload
{- "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"
}
Response samples
- 200
{- "data": {
- "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"
}
}
Storefront: Get Box Sizes
Get box sizes by a subscription box ID
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
}
}