- Print
- DarkLight
Update subscription type by id.
Display name for the subscription
A short description of the subscription type, up to 80 characters. Useful for display purposes.
Long description of the subscription type.
Phases are used to define the lifecycle of a subscription. The configuration defined in a phase will be applied to all orders generated during that phase
Describes how frequently Orders within a phase can be delivered. The example demonstrates that orders in this phase can be delivered either every 1 month, every 2 months, or every week.
A unit of time.
The number of 'duration units' that make up this period of time. Together with the duration unit, this defines the length of the period, e.g. '3' months.
When the phase will end, for example - end the phase after 2 orders
A curated list of products and quantities, which should be valid according to the product options defined within the phase. These can be used by merchants to drive their customer UI by creating curated selections of products
A list of products alongside their quantities associated with the preset
Defines the collections and quantities of products a subscription contract can be created with.
Note - Product Options do not limit the products which can be added directly to orders, or products added to orders via Order Rules, only products added to orders via subscription contracts.
The example demonstrates that a subscription contract can be created with 10 or 20 products from the 'product-collection-1' collection, and 10 products from the 'product-collection-2' collection
The list of product items a subscription contract can choose from, such as a list of product collections.
The product item based on the type and its corresponding id. E.g. it could be an id of a product collection.
The type of product option, such as a collection.
The unique identifier for the item type
The quantity of products which can be selected from listed product options
Controls how orders are priced.
A monetary value in the major denomination of the merchants currency, e.g. 1.5 represents £1.50 in GBP
A monetary value in the major denomination of the merchants currency, e.g. 1.5 represents £1.50 in GBP
This can be used to limit the products that discounts are applied to.
A list of all collection volume discounts that can be applied to the orders.
The list of collection volume required combination that can be applied to the orders. For example, if order contains products of required volume from Collection1 and Collection2 then a monetary discount of X will be applied to the order total price.
The monetary discount as positive minor number. For example, if the discount is £0.2, the value should be 20.
Describes how frequently Orders within a Subscription Type can be billed. For example, if a subscription has a billing cadence of 2 for EVERY_N_ORDER, we will charge them for order 1 and 2 when order 1 is billed. When order 2 is billed, they will not be charged, and so on.
The interval unit to define how often the subscription contract is charged.
The pricing of a subscription type. For now it only contains deliveryPrice
The delivery price of a subscription type
The type of delivery price. For now it can only be FIXED
Updated subscription type.
The unique identifier of the subscription type, in UUID format.
The status of the subscription type. DRAFT - All new Subscription Types are created in this state. Subscription Types in this state need to be activated before they can be used to create a Subscription Contract ACTIVE - Subscription Types in this state can be used to create Subscription Contracts LEGACY - Subscription Types are transitioned to this state when deactivated ARCHIVED - Not yet used.
Display name for the subscription
A short description of the subscription type, up to 80 characters. Useful for display purposes.
Long description of the subscription type.
The date and time when the subscription type was created.
The date and time when the subscription type was last updated.
A phase will end based on the termination criteria, will be priced based on the pricing calculator, and can be delivered at the frequencies defined in the delivery cadence options.
Describes how frequently Orders within a phase can be delivered. The example demonstrates that orders in this phase can be delivered either every 1 month, every 2 months, or every week.
A unit of time.
The number of 'duration units' that make up this period of time. Together with the duration unit, this defines the length of the period, e.g. '3' months.
When the phase will end, for example - end the phase after 2 orders
A curated list of products and quantities, which should be valid according to the product options defined within the phase. These can be used by merchants to drive their customer UI by creating curated selections of products
A list of products alongside their quantities associated with the preset
Defines the collections and quantities of products a subscription contract can be created with.
Note - Product Options do not limit the products which can be added directly to orders, or products added to orders via Order Rules, only products added to orders via subscription contracts.
The example demonstrates that a subscription contract can be created with 10 or 20 products from the 'product-collection-1' collection, and 10 products from the 'product-collection-2' collection
The list of product items a subscription contract can choose from, such as a list of product collections.
The product item based on the type and its corresponding id. E.g. it could be an id of a product collection.
The type of product option, such as a collection.
The unique identifier for the item type
The quantity of products which can be selected from listed product options
Controls how orders are priced.
A monetary value in the major denomination of the merchants currency, e.g. 1.5 represents £1.50 in GBP
A monetary value in the major denomination of the merchants currency, e.g. 1.5 represents £1.50 in GBP
This can be used to limit the products that discounts are applied to.
A list of all collection volume discounts that can be applied to the orders.
The list of collection volume required combination that can be applied to the orders. For example, if order contains products of required volume from Collection1 and Collection2 then a monetary discount of X will be applied to the order total price.
The monetary discount as positive minor number. For example, if the discount is £0.2, the value should be 20.
Describes how frequently Orders within a Subscription Type can be billed. For example, if a subscription has a billing cadence of 2 for EVERY_N_ORDER, we will charge them for order 1 and 2 when order 1 is billed. When order 2 is billed, they will not be charged, and so on.
The interval unit to define how often the subscription contract is charged.
The pricing of a subscription type. For now it only contains deliveryPrice
The delivery price of a subscription type
The type of delivery price. For now it can only be FIXED
Invalid Request
A human readable message describing the error.
A list of causes for the error.
A human readable message describing the cause of the error.
A list of metadata describing the cause of the error.
Invalid Authentication Credentials
A human readable message describing the error.
A list of causes for the error.
A human readable message describing the cause of the error.
A list of metadata describing the cause of the error.
Invalid Authorization Credentials
A human readable message describing the error.
A list of causes for the error.
A human readable message describing the cause of the error.
A list of metadata describing the cause of the error.
Resource Not Found
A human readable message describing the error.
A list of causes for the error.
A human readable message describing the cause of the error.
A list of metadata describing the cause of the error.
Internal Server Error
A human readable message describing the error.
A list of causes for the error.
A human readable message describing the cause of the error.
A list of metadata describing the cause of the error.