The purchase lifecycle
A typical customer purchase flows through the following stages. Not every integration uses every stage (for example, payment through Lobyco is optional), but the order and the responsibility of each API stay the same.
1
Set up payment locations (one-time)
Register each POS or self-checkout as a payment location so it can accept check-in and payments.Setting up a payment location2
Check the customer in
The customer is identified at the payment location, either by scanning a QR-code sticker at the POS or by the POS scanning a code from the app.Registering at POS3
Calculate discounts
Apply the customer’s coupons and offers to the basket. You choose one of two approaches: the POS decides what to apply (Coupon API) or Lobyco decides (Discount API).This step only calculates prices — nothing is stored or charged yet.Direct Coupon Service Integration / Discount Integration4
5
Redeem coupons
Confirm which coupons were actually used so they can’t be reused, or include them on the purchase for offline redemption.Coupon Redemption at POS6
Record the transaction
Send the finalized sale to the Purchase API. This stores the receipt and publishes it so customers receive digital receipts, real-time bonus, and challenge progress, and so the data feeds analytics.Transaction DataIntegration building blocks
The table below summarizes each building block and — importantly — which one actually records the sale and triggers customer benefits. Only the Purchase API does this.Applying discounts: two options
Step 3 above can be implemented in one of two ways. Both end with the same coupon redemption step, and both still require you to record the finalized sale via the Purchase API.Guides
Setting up a payment location
Register each POS or self-checkout. Prerequisite for check-in and payments.
Registering at POS
Both check-in directions — sticker scan and app scan.
Direct Coupon Service Integration
The POS retrieves the customer’s coupons and decides what to apply.
Discount Integration
Send the basket to Lobyco and let Lobyco calculate the discounts.
Coupon Redemption at POS
Confirm which coupons were actually used so they cannot be reused.
Payments
Capture funds through the Payment Coordinator.
Transaction Data
Send the finalized sale to the Purchase API. This is what records it.