Pricing for a single line, valid for every item type.
Merges the standard amounts (with tax breakdown) and the final amounts (after discounts/modifiers).
Totals and tax amounts can be negative for return-like operations (for example
a deposit with operation_type = RETURN).
Fields
- format:
int64minimum:0The price of a single unit. If the tax_mode is GROSS it includes taxes, otherwise no tax is included. It does NOT include discounts.
Example:
300 - format:
int64The net amount (including modifiers if applied). It does NOT include discounts.
Example:
252 - format:
int64The gross amount (including modifiers if applied). It does NOT include discounts.
Example:
300 Taxes applied on top of the net amount resulting in the gross amount.
Example:
[{"id":"tax-vat-19","net_amount":252,"gross_amount":300,"tax_amount":48}]Show 6 properties
- maxLength:
100Tax ID from the Tax Service (External Id)
Example:
"b064ed44-66e1-45a1-a963-b783808f0436" - format:
int64Net amount before applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - format:
int64Gross amount after applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - format:
int64Amount of tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - namestringmaxLength:
255Tax name, e.g. "MwSt."
- percentageintegerformat:
int64minimum:0The tax rate percentage in minor units (1/100000). For example 19000 = 19%.
Example:
19000
- format:
int64The final net amount including discounts and modifiers. Equals
total_net_amountif no discounts apply.Example:
210 - format:
int64The final gross amount including discounts, modifiers and taxes. Equals
total_gross_amountif no discounts apply.Example:
250 Taxes applied on top of
total_net_amount_finalresulting intotal_gross_amount_final. Equalstaxesif no discounts apply.Example:
[{"id":"tax-vat-19","net_amount":210,"gross_amount":250,"tax_amount":40}]Show 6 properties
- maxLength:
100Tax ID from the Tax Service (External Id)
Example:
"b064ed44-66e1-45a1-a963-b783808f0436" - format:
int64Net amount before applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - format:
int64Gross amount after applying the tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - format:
int64Amount of tax. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - namestringmaxLength:
255Tax name, e.g. "MwSt."
- percentageintegerformat:
int64minimum:0The tax rate percentage in minor units (1/100000). For example 19000 = 19%.
Example:
19000
- discountsarray<object>
Discounts applied. Discount amounts do not affect
total_net_amount/total_gross_amount; they are reflected in the*_finalamounts.Example:
[]Show 8 properties
- minLength:
4maxLength:4Specifies where discount was applied by user (either merchant or consumer):
- CART: Applied to the whole cart (calculated and distributed per sale item)
- ITEM: Applied to specific sale item
Accepted values: ["ITEM", "CART"].
Example:
"CART" The source of discount. Exactly one property must be set.
Show 5 properties
- ad_hocobject
Discount created ad-hoc on device during checkout.
Show 3 properties
- idstringformat:
uuidThe unique identifier of the ad-hoc discount.
Example:
"075b0b5c-a1f4-46da-9aca-92fb6dd5905d" - namestringmaxLength:
100The name of the ad-hoc discount.
Example:
"Happy Hour" - descriptionstringmaxLength:
250The description of the ad-hoc discount.
Example:
"Happy Hour from 10 to 12."
- basicobject
Preset discount applied manually on the POS.
Show 4 properties
- format:
uuidThe unique identifier of the basic discount.
Example:
"075b0b5c-a1f4-46da-9aca-92fb6dd5905d" - maxLength:
100The name of the basic discount.
Example:
"Staff discount" - Options:
"MANUAL""AUTOMATIC"Method of applying the discount to the items or cart.
Example:
"MANUAL" - maxLength:
250The description of the loyalty discount.
Example:
"10% off food for staff members."
- couponobject
Discount applied manually when entering a coupon code at checkout.
Show 6 properties
- format:
uuidThe unique identifier of the coupon discount.
Example:
"075b0b5c-a1f4-46da-9aca-92fb6dd5905d" - maxLength:
100The coupon code.
Example:
"FREE_COFFEE" - maxLength:
100The name of the coupon discount.
Example:
"Free coffee" - Options:
"MANUAL""AUTOMATIC"Method of applying the discount to the items or cart.
Example:
"MANUAL" - maxLength:
250The description of the coupon discount.
Example:
"Free coffee with this coupon." - Options:
"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"The method used to target items to discount. Must be populated for ITEM level discounts, and must be null for CART level discounts (CART level targets all items, therefore none of these categories apply).
Example:
"ITEM"
- offerobject
Discount applied automatically when cart is updated based on preset promotions.
Show 5 properties
- format:
uuidThe unique identifier of the offer discount.
Example:
"075b0b5c-a1f4-46da-9aca-92fb6dd5905d" - maxLength:
100The name of the offer discount.
Example:
"Breakfast combo deal" - Options:
"MANUAL""AUTOMATIC"Method of applying the discount to the items or cart.
Example:
"MANUAL" - maxLength:
250The description of the offer discount.
Example:
"Buy a Croissant, get a coffee for £1" - Options:
"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"The method used to target items to discount. Must be populated for ITEM level discounts, and must be null for CART level discounts (CART level targets all items, therefore none of these categories apply).
Example:
"ITEM"
- loyaltyobject
Discount applied when redeeming a reward from the merchant's loyalty scheme.
Show 8 properties
- format:
uuidThe unique identifier of the promotion or reward.
Example:
"075b0b5c-a1f4-46da-9aca-92fb6dd5905d" - Options:
"PROMOTION""REWARD"The type of loyalty discount, either a promotion (e.g. new customer discount) or a reward (free coffee after completing stamp card).
Example:
"REWARD" - Options:
"STAMPS""POINTS"The scheme type of the loyalty program.
Example:
"POINTS" - maxLength:
100The name of the loyalty discount.
Example:
"Free coffee" - Options:
"MANUAL""AUTOMATIC"Method of applying the discount to the items or cart.
Example:
"MANUAL" - format:
int64minimum:1The number of points used for this loyalty discount. Must be a positive integer if the scheme type is POINTS. Must not be populated if the scheme type is STAMPS.
Example:
50 - maxLength:
250The description of the loyalty discount.
Example:
"Free coffee for 50 points" - Options:
"ITEM""CATEGORY""BUNDLE""BUY_X_GET_Y""MEAL_DEAL"The method used to target items to discount. Must be populated for ITEM level discounts, and must be null for CART level discounts (CART level targets all items, therefore none of these categories apply).
Example:
"ITEM"
The value type of the discount, either a percentage based or absolute monetary value.
It is required that only one of the following is set:
- absolute
- percentage.
Show 2 properties
- absoluteintegerformat:
int64minimum:0The absolute value in minor units of the currency according to the Sale.currency.scale. Example: 10000 = 10.00
Example:
100 - percentageintegerformat:
int64minimum:0The percentage in minor units (1/100000).
Examples:
- 10% -> 0.10 (decimal) = 10000 (minor units)
- 15.5% -> 0.155 (decimal) = 15500 (minor units)
- 0.001% -> 0.00001 (decimal) = 1 (minor units)
Example:
10000
- format:
int64minimum:0The net amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - format:
int64minimum:0The gross amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - format:
int64minimum:0The tax amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.
Example:
100 - idstringmaxLength:
100An id used to associate a discount line with a specific discount. Since we can apply multiple discounts (e.g. 2x 10% whole cart off) we need to be able to identify which discount line belongs to which cart discount. Recommended to use UUID identifiers.
Example:
"075b0b5c-a1f4-46da-9aca-92fb6dd5905d" - descriptionstringmaxLength:
250A description or reason of the discount.
Example:
"Happy Hour"