> 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/salesforce/servicing-subscriptions/manage-subscriptions-flow/subflow-refund/limit-refund-amount.md).

# Limit Refund Amount

## 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="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-54ec933a5ee70a931ae5d7801edd92ed596f6dc2%2Fimage%20(297).png?alt=media" alt=""><figcaption></figcaption></figure>

or a Switch from an offer to a cheaper one

<figure><img src="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-548bdc741bfa7315ed2a445501ed680698bb0a1b%2Fimage%20(298).png?alt=media" 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="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-7a2e3947659e9117268e493abf937231b4a42cd0%2Fimage%20(299).png?alt=media" 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="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-434f724dbe0bdb7e8d5dc02cdec6fa53f6335852%2Fimage%20(300).png?alt=media" 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="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-68f8db46cb8c5f42e77de9e108a4083071004323%2Fimage%20(301).png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
