> ## Documentation Index
> Fetch the complete documentation index at: https://help.lobyco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bonus refund

> Which bonus Lobyco takes back when a customer returns items, for each kind of bonus.

When the POS records a return, Lobyco calculates bonus for it, the same way as for a sale. This page shows which bonus Lobyco takes back from the customer's balance, and how much. To see how the POS records a return, go to [Returns and refunds](https://help.lobyco.com/integration/pos-point-of-sale-integrations/returns-and-refunds).

## At a glance

| Bonus | Taken back on a return |
| - | - |
| [Base earn](#base-earn) | Yes |
| [Product Bonus](#product-bonus) | No |
| [Basket Bonus](#basket-bonus) | No |
| [Local Bonus](#local-bonus) | Yes |
| [Multiplier Bonus](#multiplier-bonus) | Yes, at the multiplied rate |
| [Redemption Bonus](#redemption-bonus) | No |
| [Base Bonus offer](#base-bonus-offers) | Yes, when every item on the receipt is returned |
| [Personal Offer](#personal-offers) | No |
| [Voucher - Standard offer](#voucher-offers) | No |
| [Voucher - Triggered offer](#voucher-offers) | No |

## How Lobyco reads a return

* **Lobyco does not look at the original sale.** It calculates bonus only from the return. It does not use `originalReceiptId` for bonus.
* **Lobyco uses the rates on the day of the return.** It uses the percentages and the bonuses that are active at the time and in the store of the return. So the bonus taken back can be different from the bonus the customer earned.

Every example on this page uses the same sale, `SALE-1`, and the same return of the coffee, `RETURN-1`. A bonus is shown under the item it is for, the same way as a discount. The **Bonus** line after **Total** is the bonus for the whole receipt. Bonus does not change the money total. Each example shows only the bonus of its own section.

## Base earn

Lobyco takes [base earn](https://help.lobyco.com/business-documentation/self-service/set-the-base-bonus-earn.md) back. For each returned item, it takes back the base earn percentage of the item's price. It uses the percentage of the return's chain on the day of the return. Items in categories that earn no base earn are not counted, the same as on a sale.

* A line with a negative price is a returned item, with or without `isReturned`.
* A line with `isCancelled: true` and the line it cancels add up to zero.
* On a receipt with both new items and returned items, the returned items lower the base earn of the receipt.

For example, the base earn is 1%.

```text theme={"system"}
SALE-1
Coffee             1 x 40.00     40.00
  Base earn 1%                    0.40
Bread              1 x 20.00     20.00
  Base earn 1%                    0.20
Total                            60.00
Bonus                             0.60

RETURN-1
Coffee            -1 x 40.00    -40.00
  Base earn 1%                   -0.40
Total                           -40.00
Bonus                            -0.40
```

The customer keeps 0.20 of base earn.

The customer can also return the bread and buy a new coffee on one receipt, `SALE-2`. Lobyco calculates both lines together:

```text theme={"system"}
SALE-2
Coffee             1 x 40.00     40.00
  Base earn 1%                    0.40
Bread             -1 x 20.00    -20.00
  Base earn 1%                   -0.20
Total                            20.00
Bonus                             0.20
```

## Product Bonus

Lobyco never takes [Product Bonus](https://help.lobyco.com/business-documentation/activities/bonuses/bonus-types.md#product-bonus) back. The customer keeps the Product Bonus they earned, also on items they return. On a receipt with both new items and returned items, only the new items earn Product Bonus.

## Basket Bonus

Lobyco never takes [Basket Bonus](https://help.lobyco.com/business-documentation/activities/bonuses/bonus-types.md#basket-bonus) back. A return also earns no Basket Bonus. The customer keeps the Basket Bonus they earned, even if the items they keep are below the minimum basket.

On a receipt with both new items and returned items, Lobyco uses the basket total after the returns:

* A line with a negative price lowers the basket total, with or without `isReturned`. This can take the basket below the minimum basket.
* A line with `isCancelled: true` and the line it cancels add up to zero.

## Local Bonus

Lobyco takes [Local Bonus](https://help.lobyco.com/business-documentation/activities/bonuses/bonus-types.md#local-bonus) back. For each returned item that a Local Bonus covers, it takes back the Local Bonus percentage of the item's price. This happens only if the Local Bonus is active for the customer at the time and in the store of the return. If several Local Bonuses cover the item, each one takes back its own part.

* A line with a negative price is a returned item, with or without `isReturned`.
* A line with `isCancelled: true` and the line it cancels add up to zero.
* On a receipt with both new items and returned items, the returned items lower the Local Bonus of the receipt.

For example, a 2% Local Bonus covers all products, and it is still active on the day of the return.

```text theme={"system"}
SALE-1
Coffee             1 x 40.00     40.00
  Local Bonus 2%                  0.80
Bread              1 x 20.00     20.00
  Local Bonus 2%                  0.40
Total                            60.00
Bonus                             1.20

RETURN-1
Coffee            -1 x 40.00    -40.00
  Local Bonus 2%                 -0.80
Total                           -40.00
Bonus                            -0.80
```

The customer keeps 0.40. If the Local Bonus has ended before the return, nothing is taken back, and the customer keeps 1.20.

## Multiplier Bonus

Lobyco takes [Multiplier Bonus](https://help.lobyco.com/business-documentation/activities/bonuses/bonus-types.md#multiplier-bonus) back, at the multiplied rate. A Multiplier Bonus replaces base earn on a return, the same as on a sale. This happens if a Multiplier Bonus is active for the customer at the time and in the store of the return. Lobyco then takes back the item's price × base earn × the multiplier.

Only the day of the return matters, not the day of the sale.

* A line with a negative price is a returned item, with or without `isReturned`.
* A line with `isCancelled: true` and the line it cancels add up to zero.
* On a receipt with both new items and returned items, the returned items lower the Multiplier Bonus of the receipt.

For example, the base earn is 1%, and a 2x Multiplier Bonus is active for one week. The customer buys in a normal week, and returns the coffee in the 2x week.

```text theme={"system"}
SALE-1, normal week
Coffee             1 x 40.00     40.00
  Base earn 1%                    0.40
Bread              1 x 20.00     20.00
  Base earn 1%                    0.20
Total                            60.00
Bonus                             0.60

RETURN-1, 2x week
Coffee            -1 x 40.00    -40.00
  Multiplier Bonus 2x            -0.80
Total                           -40.00
Bonus                            -0.80
```

Lobyco takes back 0.80, more than the 0.40 the coffee earned. Other weeks give other results:

| Sale | Return | Bonus on the sale | Taken back | Left from the sale |
| - | - | - | - | - |
| In a normal week | In the 2x week | 0.60 | 0.80 | -0.20 |
| In the 2x week | In a normal week | 1.20 | 0.40 | 0.80 |
| In the 2x week | In the same 2x week | 1.20 | 0.80 | 0.40 |

## Redemption Bonus

Lobyco never takes [Redemption Bonus](https://help.lobyco.com/business-documentation/activities/bonuses/bonus-types.md#redemption-bonus) back after it is added. But a return can make it smaller. If Lobyco takes back bonus before the Redemption Bonus is added, the balance is lower. So the Redemption Bonus is lower too.

## Base Bonus offers

Lobyco takes back bonus from [Base Bonus](https://help.lobyco.com/business-documentation/activities/offers/offer-types.md#custom-types) offers only when every line on the receipt has a negative price. Lobyco calculates the Base Bonus offers for the returned items, and takes back the result.

If a receipt has both new items and returned items, it is not a return for Base Bonus offers. Lobyco calculates them the same way as for a sale.

For example, a Base Bonus offer gives 2% on all products, and it is still active on the day of the return. `RETURN-1` has only returned items.

```text theme={"system"}
SALE-1
Coffee             1 x 40.00     40.00
  Base Bonus offer 2%             0.80
Bread              1 x 20.00     20.00
  Base Bonus offer 2%             0.40
Total                            60.00
Bonus                             1.20

RETURN-1
Coffee            -1 x 40.00    -40.00
  Base Bonus offer 2%            -0.80
Total                           -40.00
Bonus                            -0.80
```

The customer keeps 0.40.

## Personal offers

Lobyco never takes back bonus from a **Personal Offer**. The customer keeps the bonus it gave on the sale.

If a receipt has both new items and returned items, it is not a return for Personal Offers. Lobyco calculates them the same way as for a sale.

## Voucher offers

Lobyco never takes back bonus from **Voucher - Standard** or **Voucher - Triggered** [offers](https://help.lobyco.com/business-documentation/activities/offers/offer-types.md#custom-types). A return also earns no voucher bonus. The customer keeps the bonus that a voucher gave on the sale.

## How Lobyco takes the bonus back

* **As a negative transaction** on the customer's active account. It has the same bonus type as the bonus it takes back. Each kind of bonus is a separate transaction.
* **Soon after** the Purchase API saves the return.
* **One time per return.** If Lobyco gets the same return twice, it takes the bonus back one time.
* **Even if the balance is too low.** The balance can go below zero. This happens, for example, when the customer has already spent the bonus from the sale.
* **On the statement** as a negative amount. See [Bonus in your app](https://help.lobyco.com/integration/activities/bonuses/show-bonus-in-your-app.md).

> [!NOTE]
>
> Lobyco plans to change how a return takes back bonus. Lobyco will then start from the original sale and the bonus it earned. This is the same way as the [recommended refund](https://help.lobyco.com/integration/pos-point-of-sale-integrations/returns-and-refunds/recommended-refund.md) starts from what the customer paid. Until then, the rules on this page apply.

## API reference

Endpoint documentation: [Purchases](https://help.lobyco.com/api-reference/retail-master-data/purchases) and [Bonus accounting](https://help.lobyco.com/api-reference/bonus/bonus-accounting).

## Related

* [Returns and refunds](https://help.lobyco.com/integration/pos-point-of-sale-integrations/returns-and-refunds) — how the POS records a return, and what Lobyco does after.
* [Coupon refund](https://help.lobyco.com/integration/pos-point-of-sale-integrations/returns-and-refunds/coupon-refund.md) — when a return gives a coupon back.
* [Recommended refund](https://help.lobyco.com/integration/pos-point-of-sale-integrations/returns-and-refunds/recommended-refund.md) — the amount Lobyco recommends paying back for each returned product.
* [Bonus integration](https://help.lobyco.com/integration/activities/bonuses) — how Lobyco calculates bonus and keeps the balances.
* [Bonus types](https://help.lobyco.com/business-documentation/activities/bonuses/bonus-types.md) — what each kind of bonus gives the customer on a sale.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.