Central Pricing Facade

LoyaltySystemDetails

object

Details about the Loyalty System communication.

* Additional properties are NOT allowed.
datestring(date-time)required
onlinebooleanrequired

Example:true

statusstringrequired

Allowed values:OKNOK

Example:OK

uuidstringrequired

Example:68471892100106106113111269117711

Example

ProductToCalculate

object

Product to calculate prices for.

* Additional properties are NOT allowed.
price_per_unitnumber(float)

User-defined price per unit for the product.

This can be used to override a price for a given product.
If not set, the price will be looked up.
The price is per unit of the product. Promotions are calculated based on this price.

>= 0

Example:1.75

product_idstringrequired

ID of the product.

>= 9 characters<= 40 characters

Example:101924500000

quantityinteger

Number of products.

This is not used for weight-based products.

> 0

Example:1

unitstring

User-defined unit for the product.

This can be used to override the unit for a given product.
If not set, the unit will be looked up.

Allowed values:CUKGMQM

Example:CU

weightnumber(float)

Total weight of the product.

This is only used for weight-based products. Set the unit field to “KG” when overwriting the weight.

> 0

Example:125.2

Example

Transaction

object

Response for finished transaction.

* Additional properties are NOT allowed.
status_codestring

Status code if there was an error.

transaction_idstringrequired

ID of the transaction used for finishing it.

Example:5oj548c9afa59304c0eb0b7f18b77c9c

Example

Vat

object

Information about the VAT.

* Additional properties are NOT allowed.
codeintegerrequired

VAT code.

  • 0: No taxes
  • 1: Reduced taxes
  • 2: Full taxes
  • 9: Proportionally split

Allowed values:129

ratenumber(float)required

VAT rate.

> 0

Example:7.7

taxable_amountnumber(float)required

Taxable amount for this VAT.

> 0

Example:11.9

vat_amountnumber(float)required

Amount of the VAT.

> 0

Example:1.1

Example

Problem Details

object

Problem Details for HTTP APIs defined by RFC 7807

detailstring

Example:More details

statusintegerrequired

Example:400

titlestringrequired

Example:Test error

validation-errorsarray[object]

>= 1 items

Show Child Parameters
Example