Skip to main content
POST

Query Parameters

offerTypes
string[]

Only apply offers of these types, such as appCoupon or personalOffer. Repeat the parameter for several. Omitted, every type.

excludedOfferTypes
string[]

Never apply offers of these types. Repeat the parameter for several. Omitted, no type is left out.

benefitTypes
enum<string>[]

Only apply offers granting these benefits: Discount, Bonus or both. Repeat the parameter for several. Omitted, both.

What an offer gives the customer at checkout.

  • Discount: a lower price, taken off the line or the basket total.
  • Bonus: loyalty bonus, granted on top of the price.

This list is not final. Lobyco may add a value at any time, and a consumer must not fail on a value it does not know.

Available options:
Discount,
Bonus
skipReservation
boolean

true to price the basket without reserving the coupons it applied, for example a basket the customer has not committed to yet. Default false: the applied coupons are reserved for a short time, 1 minute by default, under the basket's id.

preserveExternalDiscounts
boolean

true to return the discounts the POS sent as already applied, beside the ones Lobyco applied; false to leave them out. Omitted, your environment's setting applies, which is off unless Lobyco has turned it on.

usePurchaseDateTime
boolean
default:false

true to evaluate the sale as of its purchaseDateTimeUtc, with the coupons valid then, which replays an earlier purchase as Lobyco's bonus allocation does. Default false: the coupons valid now.

Body

application/json

The sale, in the shape of a purchase.

receiptId
string
required
Minimum string length: 1
storeId
string
required
Minimum string length: 1
currencyCode
string
required
Required string length: 3
totalAmount
number<double>
required
totalTaxAmount
number<double>
required
purchaseDateTimeUtc
string<date-time>
required
purchaseBusinessDateTime
string<date-time>
required
products
object[]
required
memberId
string | null
externalDiscountCardId
string | null
loyaltyCardId
string | null
orderId
string | null
amountForBonusCalculation
number<double> | null
paymentMethods
object[] | null
discounts
object[] | null
taxes
object[] | null
shipping
object | null
paymentLocation
string | null
checkoutType
enum<string> | null
Available options:
Pos,
SelfCheckout,
ScanAndPay,
Online
metadata
object | null
posId
string | null
phone
string | null

Response

The purchase with the discounts applied: totalAmount, each product's price and discountAllocations, and the discounts with their coupon ids. A purchase with no applicable discounts comes back unchanged.

receiptId
string
required
Minimum string length: 1
storeId
string
required
Minimum string length: 1
currencyCode
string
required
Required string length: 3
totalAmount
number<double>
required
totalTaxAmount
number<double>
required
purchaseDateTimeUtc
string<date-time>
required
purchaseBusinessDateTime
string<date-time>
required
products
object[]
required
memberId
string | null
externalDiscountCardId
string | null
loyaltyCardId
string | null
amountForBonusCalculation
number<double> | null
paymentMethods
object[] | null
discounts
object[] | null
taxes
object[] | null
shipping
object | null
paymentLocation
string | null
metadata
object | null
posId
string | null
phone
string | null
Last modified on August 10, 2026