Skip to main content
POST
Redeem coupons

Headers

X-Household-Id
string

The customer's household id, when your environment uses households and the POS already knows it. Omitted, Lobyco looks it up. Ignored where households are not enabled.

Idempotency-Key
string

The sale's receipt id. A repeated call with the same key is the same request, and a return of that receipt gives the coupons back by it.

Path Parameters

customerId
string
required

The customer's memberId, as the check-in gave it to the POS.

Body

application/json

The coupons the sale used, and the sale they were used on.

The coupons a finished sale used, and the sale they were used on.

coupons
object[]
required

The coupons the sale used, each with the discount it granted. At least one.

storeId
string | null

The store where the sale happened. Lobyco shows it in the offer's statistics in Lobyco Nexus.

receiptId
string | null

The receipt id of the sale, the same value the sale is recorded with in the Purchase API. Always send it: it is how Lobyco gives the coupons back itself when a return of that receipt is recorded. At most 255 characters.

Maximum string length: 255
basketValue
number<double> | null

The sale's total, in the sale's currency. Lobyco shows it in the offer's statistics in Lobyco Nexus.

Response

The ids of the coupons now redeemed, as sent. A coupon already redeemed under the same key is included without a second redemption.

The coupons the call processed.

couponIds
string[]
required

The ids of the coupons the call processed, as they were sent.

Last modified on November 6, 2026