Given a request, return the expected price based on the pricing engine for the subscription.
The customer's unique identifier, which merchants can opt to assign using either their own customer service system or Bento's customer service during the onboarding process.
The unique identifier of the Bento subscription contract. It can be retrieved from the Bento Subscription Services.
The unique identifier of the phase ID within the subscription contract. It is to determine which phase the given order is currently in, and thus which pricing calculator to use.
The position of the order relative to other orders in the subscription contract. The first order in the subscription contract has orderNumber '1'.
The number of the order in the linked subscription contract, independent of number of boxes received. This is often the same as orderNumber but doesn't have to be, for example if a customer starts halfway through an ordered subscription. Useful for custom tracking of orders e.g., playlists.
Array of items within an order, each containing id, quantity, source and custom attribute data.
The currency to price the order in. The currency code should be provided in the 3 letter (ISO 4217 standard)[https://www.iso.org/iso-4217-currency-codes.html].
A promotion code that is to be applied to the order
Price of the provided order
The currency to price the order in. The currency code should be provided in the 3 letter (ISO 4217 standard)[https://www.iso.org/iso-4217-currency-codes.html].
The price of all the line items on an order, calculated by the pricing calculator, before discounts are applied, in the currency's minor units e.g. pence or cents.
The subtotal formatted using the currencyCode.
The discount applied to the subtotal, in the currency's minor units e.g. pence or cents.
The subtotalDiscount formatted using the currencyCode.
The subtotal, after discounts have been applied, in the currency's minor units e.g. pence or cents.
The subtotalPrice formatted using the currencyCode.
The fee for delivering the order, before discounts are applied, in the currency's minor units e.g. pence or cents.
The delivery formatted using the currencyCode.
The discount applied to the delivery, in the currency's minor units e.g. pence or cents.
The deliveryDiscount formatted using the currencyCode.
The deliveryPrice, after discounts have been applied, in the currency's minor units e.g. pence or cents.
The delivery price formatted using the currencyCode.
The gross total of the order, subtotal + delivery, before discounts are applied, in the currency's minor units e.g. pence or cents.
The grossTotal formatted using the currencyCode.
The total discount applied to the order, subtotalDiscount + deliveryDiscount, in the currency's minor units e.g. pence or cents.
The totalDiscount formatted using the currencyCode.
The total price of the order including discounts, grossTotal - totalDiscount, in the currency's minor units e.g. pence or cents.
The totalPrice formatted using the currencyCode.
Invalid Request
Human-readable title for the error
Human-readable description for the error
Invalid Authentication Credentials
Human-readable title for the error
Human-readable description for the error
Invalid Authorization Credentials
Human-readable title for the error
Human-readable description for the error
Resource Not Found
Human-readable title for the error
Human-readable description for the error
Internal Server Error
Human-readable title for the error
Human-readable description for the error