Central Pricing Facade

Amounts

object

Information about the different total amounts.

* Additional properties are NOT allowed.
roundingnumber(float)

Rounding difference.

Example:0.1

to_paynumber(float)required

Total price to pay.

> 0

Example:15.35

Example

AppliedPromotion

object

Information about an applied promotion to a single item.

* Additional properties are NOT allowed.
couponstring

Coupon identifier for the promotion.

<= 40 characters

Example:7610300001381

cumulus_pointsnumber(float)

Amount of awarded Cumulus Points for a single item.

> 0

Example:2

price_reduction_per_unitnumber(float)

Amount of the price reduction per unit for a single item.

> 0

Example:1.1

Example

Calculate

object

Request body for calculating prices.

* Additional properties are NOT allowed.
couponsarray[string]

List of coupon GTINs to take into account for the price calculation.

>= 4 characters

Example:7613404420317

customerOne Of

Information about the customer and their loyalty.

Example:{"cumulus_number":"2099123123123","loyalty":["cumulus"]}

Customerobject

Information about the customer.

* Additional properties are NOT allowed.
Show Child Parameters
datestring(date-time)

Date and time used for calculating the prices.

This defaults to now but can be used to calculate prices based historic data.

productsarray[object]required

Product to calculate prices for.

>= 1 items

Example:{"product_id":"120299100000","quantity":3}{"product_id":"101924500000","unit":"KG","weight":3.5}

* Additional properties are NOT allowed.
Show Child Parameters
ucbsarray[string]

List of user coupon IDs (UCB) to take into account for the price calculation.

>= 4 characters

Example:456456456

Example

CalculatedItem

object

Information about calculated prices for a single item.

* Additional properties are NOT allowed.
amountsOne Of
required

Information about the different amounts for a single item.

ItemAmountsobject

Information about the different amounts for a single item.

* Additional properties are NOT allowed.
Show Child Parameters
applied_promotionsarray[object]

Information about an applied promotion to a single item.

* Additional properties are NOT allowed.
Show Child Parameters
base_price_per_unitnumber(float)required

Unit price before any promotions are applied.

> 0

Example:12.5

product_idstring

ID of the product.

Example

Calculation

object

Response with calculated prices.

* Additional properties are NOT allowed.
amountsOne Of
required

Information about the different total amounts.

Amountsobject

Information about the different total amounts.

* Additional properties are NOT allowed.
Show Child Parameters
couponsarray[string]unique-items

List of coupons attached to the calculation.

>= 1 items

productsarray[object]required

Information about calculated prices for a single item.

>= 1 items

* Additional properties are NOT allowed.
Show Child Parameters
ucbsarray[object]

Information about calculated prices for a single item.

>= 1 items

* Additional properties are NOT allowed.
Show Child Parameters
vatarray[object]required

Information about the VAT.

* Additional properties are NOT allowed.
Show Child Parameters
Example