Skip to main content
When the POS records a customer’s return, Lobyco removes progress from the customer’s challenge cards. The amount depends on the challenge’s accumulation type. The customer always keeps the rewards they already got. The steps for the POS are on Returns and refunds.

At a glance

Rules for every return

  • A return is a receipt with a total below zero. Lobyco checks totalAmount. It does not use isReturned or originalReceiptId for this. On such a receipt, every line counts as returned, even a line with a positive price.
  • Lobyco does not look at the original sale. It uses only the return. So a return can remove more or less progress than the sale added. It can also remove progress that the sale never added. For example, this happens when the customer activated the card after the sale.
  • Lobyco uses the challenges that run when and where the return happens. It uses the challenge rules of that day. A return after the challenge ends, or in a store outside the challenge, removes nothing.
  • The challenge’s filters apply. A return goes through the same filters as a sale: products and categories, audiences and checkout types. The setting for discounted items applies too. A returned line is discounted if its price is different from its originalPrice.
  • The delay between purchases applies. A return during the challenge’s delay between purchases removes nothing. A return after the delay starts the delay again, if the customer has an open card. This happens even when the card has no progress left to remove.
  • Each return counts once. Lobyco knows a return by its receiptId. If the POS sends the same return twice, Lobyco removes the progress only once.

One purchase

A return never removes progress from a One purchase challenge. Lobyco checks each purchase alone. The card does not collect progress over several purchases, so there is nothing to remove. For example, the challenge gives a coupon when the customer buys 3 cans of cola in one purchase.
The customer returns the 3 cans.

Multiple purchase

A return on a Multiple purchase challenge removes what the customer returned. The challenge’s Earn method decides what Lobyco counts:
  • Product quantity: the number of the challenge’s products that the customer returned.
  • Purchase amount: the amount paid back for the challenge’s products. Lobyco takes it from each line’s price.
The examples below use a renewable challenge: buy 5 coffees, counted by Product quantity.

Part of a sale returned

The customer returns 2 coffees.

A return of the purchase that completed a card

Five of the 7 coffees complete the card, and the customer gets the reward. The other 2 coffees go to the next card. Then the customer returns 4 coffees.
The return removes only 2 coffees, not 4, because a card never goes below zero. On a one-time challenge there is no next card, so this return removes nothing.

Store visits

A return on a Store visits challenge removes one visit. This happens only if the amount paid back reaches Minimum amount per purchase. Lobyco counts only the products that count for the challenge. If the challenge has no minimum, any return of those products removes a visit. For example, the challenge asks for 3 visits, with at least 10.00 each time.
The customer returns the cheese.
A return of only the bread removes nothing, because 4.00 is below the minimum.

Payment method

A return on a Payment method challenge removes one purchase. This happens only if the money goes back with a selected Payment method, and the amount reaches Minimum amount per purchase. Lobyco reads the payments in the return’s paymentMethods. It matches them the same way as on a sale. For example, the challenge asks for 5 purchases paid by Card, with no minimum.
The customer returns the coffees, and the POS pays the money back to the card.
If the POS pays the money back in cash, this return removes nothing. Cash is not a selected payment method.

A sale and a return on one receipt

A receipt with a total above zero is a sale, even if some lines are returns. The returned lines can make the receipt add less progress. They never remove progress from the card. For example, take the coffee challenge from Multiple purchase.
The customer returns a coffee and buys tea on the same receipt.
The total of SALE-7 is above zero, so it is a sale. If the POS records the returned coffee on a receipt of its own, Lobyco removes it from the card.

Which card loses progress

  • The open card. A return removes progress from the card the customer has open on the challenge. Progress never goes below zero.
  • Never a completed card. If the sale completed a card, that card stays completed. The return removes progress from the next card. If there is no next card, the return removes nothing. For example, this happens on a one-time challenge that the customer has completed.
  • Rewards stay. The customer keeps every coupon, bonus or lottery entry the card gave them. A return never gives a reward either.
  • Tiers stay. A return does not lower the tier the customer has reached. The customer keeps the rewards of those tiers.
  • A return can open a card on a pre-activated challenge. If the customer has no open card, a return of the challenge’s products can open one. The new card starts with no progress.

API reference

Endpoint documentation: Purchases and Challenges.
Last modified on November 18, 2026