Central Pricing Facade

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

Customer

object

Information about the customer.

* Additional properties are NOT allowed.
cumulus_numberstringrequired

Cumulus number of the customer.

>= 10 characters<= 40 characters

Example:2099123123123

loyaltyarray[string]unique-items

Loyalty programs the customer is part of.
A person who uses the loyalty program GKK cannot use any of the other loyalty programs. Therefore the maxItems
is set to 4, even though there are 5 loyalty programs in total.

Allowed values:cumulusfamigrosgenossenschaftermigustogkk

<= 4 items

Example:cumulus

Example

EP2

object

Information about EP2 payment.

* Additional properties are NOT allowed.
activation_sequence_idstringrequired

Activation sequence counter (ep2Actseqcnt).

Example:584

amountnumber(float)required

Amount payed with cad.

Example:50.2

application_idstringrequired

Application ID (ep2Aid).

Example:A0000000041010

authorization_codestringrequired

Authorization code (ep2Authc).

Example:046333

brandstringrequired

Tender name, e.g. MasterCard.

Example:MasterCard

encrypted_primary_account_numberstring

Encrypted credit card number (ep2Apppanenc).

>= 8 characters

Example:E9876C899FFBF4CC22602FFAE60D20B5

encrypted_primary_account_number_indexstring

Index for encrypted credit card number (ap2Apppanencind).

Example:ep2Apppanencind

issuer_codestring

Match pattern:^[0-9]+$

Example:2

masked_primary_account_numberstringrequired

Masked credit card number (ep2Pan).

>= 8 characters<= 19 characters

Example:xxxxxxx1234

terminal_idstring

Terminal ID.

Example:31392368

transactionobjectrequired

Details of an EP2 transaction.

* Additional properties are NOT allowed.
Show Child Parameters
Example