- Print
- DarkLight
Calculates the price of the provided order
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 total price of the order in the currency's minor units, e.g., pence or cents.
The formatted price of the order with the currency symbol provided.
The total discount applied to the order in the currency's minor units, e.g., pence or cents.
The formatted total discount with the currency symbol provided.
The price of order items after the subtotal discount is applied in the currency's minor units, excluding discounts and delivery.
The formatted price of order items after the subtotal discount is applied with the currency symbol provided.
The discount applied to the subtotal in the currency's minor units, excluding delivery.
The discount applied to the subtotal with the currency symbol provided.
The delivery price of the order in the currency's minor units, e.g., pence or cents.
The formatted delivery price with the currency symbol provided.
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