The purchase lifecycle

- Setting up a payment location — register each POS or self-checkout once, so it can check customers in and take payments.
- Registering at POS — identify the customer, either by the POS scanning the app or by the customer scanning a sticker.
- Discount integration — send the basket and let Lobyco apply the customer’s coupons and offers. Lobyco recommends it. A POS that must price the basket itself uses the Direct coupon service integration instead. Nothing is stored or charged yet.
- Payments — take the payment through the Payment Coordinator.
- Coupon redemption at POS — confirm which coupons the sale used, so they cannot be used again.
- Transaction data — send the finished sale to the Purchase API. This is the call that records it.
- Returns and refunds — record a customer’s return as a purchase. Lobyco recommends the refund, gives the coupons back, takes back part of the bonus, and removes challenge progress.
Set up and check in
Both are prerequisites for payments. Check-in is also what gives the POS the customer id the discount calls need.Setting up a payment location
Register each POS or self-checkout once, with its QR code and store.
Registering at POS
Identify the customer in either direction: the POS scans the app, or the customer scans a sticker.
Discounts and coupons
Pick one of two ways to apply discounts. Lobyco recommends the Discount API: the POS sends the basket, and Lobyco applies every discount type and the stacking rules, so the POS never replicates them. With the Coupon API the POS reads the customer’s coupons and prices the basket itself. Choose it only when the POS already holds the offer definitions. Both end with the same redemption step. Which id each call returns, and which coupon list is for which caller, is on Which id is which.Discount integration
The POS sends the basket and Lobyco returns the calculated discounts. The recommended way.
Direct coupon service integration
The POS holds the offer definitions and decides which coupons to apply.
Coupon redemption at POS
Confirm which coupons were used, release unused reservations, refund on returns.
Pay and record
Payments
Create, confirm and capture a payment through the Payment Coordinator.
Transaction data
Send the finished sale to the Purchase API. This is what records it.
Returns
Returns and refunds
Record a customer’s return, so Lobyco can give the coupons back.
Recommended refund
The amount Lobyco recommends paying back, which the POS can ignore.
Coupon refund
The rules for giving a coupon back after a return, with examples.
Bonus refund
Which bonus a return takes back from the customer’s balance, for each kind of bonus.
Challenge progress
How much challenge progress a return removes, with examples.