Skip to main content
This section is for the team connecting a point of sale (POS) or an e-commerce checkout to Lobyco. It covers the whole purchase lifecycle: identifying the customer, applying discounts, taking payment, recording the finished sale and handling returns. Each stage is a separate Lobyco API with a guide of its own, and most integrations use only some of them.
Only the Purchase API records the sale. Calculating discounts and capturing a payment store nothing the customer benefits from. If the POS skips Transaction data, customers get no bonus, no receipt and no challenge progress.

The purchase lifecycle

Three stages: identify the customer through check-in, verify coupons or discounts at checkout, settle the sale through purchase load, which feeds bonus, campaigns, the data platform and digital receipts Identify, verify, settle: the check-in, the discount calculation at checkout, and the purchase load that feeds everything downstream The guides follow the order a sale happens in. Payment through Lobyco is optional. The other stages keep their order whichever APIs you use.
  1. Setting up a payment location — register each POS or self-checkout once, so it can check customers in and take payments.
  2. Registering at POS — identify the customer, either by the POS scanning the app or by the customer scanning a sticker.
  3. 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.
  4. Payments — take the payment through the Payment Coordinator.
  5. Coupon redemption at POS — confirm which coupons the sale used, so they cannot be used again.
  6. Transaction data — send the finished sale to the Purchase API. This is the call that records it.
  7. 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.
Last modified on November 18, 2026