> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/integrations/using-limio-for-salesforce/manage-subscriptions-flow/subflow-refund/limit-refund-amount.md).

# Limit the Amount to Refund

## Flow Customisation: Limit the amount to refund for a Cancel or Switch action

When performing an action like Switch or Cancel, the transaction might result in an order with a total negative amount, i.e. an amount to refund back to the customer.

For example, this could be the result of an immediate cancel:

<figure><img src="/files/1DEPgAeHwwVuu0W71VA1" alt=""><figcaption></figcaption></figure>

or a Switch from an offer to a cheaper one

<figure><img src="/files/CWvCIHhp3exOuQ3rS3lN" alt=""><figcaption></figcaption></figure>

By default, the Limio for Salesforce flow does not enforce any limit on the total amount to refund, however both components expose a property to the flow builder to pass the max amount to refund.

## How to configure flow components

For a Cancel Order, the custom component "Limio Order - Cancel" exposes the property "Maximum allowed refund amount". If left blank, no limit will be enforced. This property is of type Integer.

<figure><img src="/files/GXny8AQ2XSpJEM29gosE" alt=""><figcaption></figcaption></figure>

For a Switch Order, the custom component "Limio Order - Switch" exposes the property "Maximum allowed refund amount". If left blank, no limit will be enforced. This property is of type Integer.

<figure><img src="/files/ElvMfOyqxqPgUo0bPXPD" alt=""><figcaption></figcaption></figure>

## Example

When this upper limit is populated, the logic in the UI will check the total amount and compare it against this limit; if the total amount exceeds such limit the user will be presented with an error message, and they won't be able to proceed to the next step until the total is below the set limit.

<figure><img src="/files/KfsHQV9CGfTaCvvf9Ua4" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.limio.com/integrations/using-limio-for-salesforce/manage-subscriptions-flow/subflow-refund/limit-refund-amount.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
