Skip to main content

Order Data Model

Order Structure

Basket Items

Each item in the order contains:

FieldTypeDescription
productIdstringThe product ID in your system (the integrator's product ID).
unitPricenumberUnit price of the product (excluding modifiers).
discountnumberDiscount applied by Cheers to this product.
externalPaymentnumberAmount to be collected outside the Cheers system.
vatnumberVAT rate (e.g. 27).
isTakeawaybooleanWhether the item is marked as takeaway.
modifiersarrayAdd-ons/extras (e.g. "extra lemon", "no ice").
Product ID Mapping

The productId in the order matches the product ID in your external system -- no mapping is required. This is the same ID you provided during product synchronization.

Modifiers

Modifiers follow the same price structure as basket items:

FieldTypeDescription
productIdstringThe modifier product ID in your system.
unitPricenumberUnit price of the modifier.
discountnumberDiscount applied to this modifier.
externalPaymentnumberExternal payment amount for this modifier.
vatnumberVAT rate.

Tip

FieldDescription
tipTotal tip amount.
externalPaymentPortion of the tip to be collected externally.

Delivery Option

Present when the order includes delivery.

FieldDescription
deliveryOptionFeeThe delivery fee amount.
externalPaymentPortion of the fee to be collected externally.
vatVAT rate for the delivery fee.
typeCUSTOM, TAKEAWAY, or HOME_DELIVERY.

Invoicing Types

TypeDescription
PLACE_RECEIPTThe venue issues a receipt.
PLACE_INVOICEThe venue issues an invoice.
CHEERS_INVOICECheers issues the invoice.

Supported combinations:

  • PLACE_RECEIPT alone
  • PLACE_INVOICE alone
  • CHEERS_INVOICE alone
  • PLACE_RECEIPT + PLACE_INVOICE
  • PLACE_RECEIPT + CHEERS_INVOICE

Buyer & Delivery Address Data

When invoicing requires buyer data or the order includes delivery, additional fields are present:

Buyer Data -- name, country, zip code, city, address, company info (if applicable).

Delivery Address -- name, country, zip code, city, address, lat/lon coordinates, optional comment.