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

# Add logic to CLABEs

> Reject inbound transfers on Fintoc's legacy v2023-11-15 Transfers API by disabling a specific CLABE or applying per-account rules to filter payments.

You can use a Fintoc standardized Mexican bank account number (CLABE) for one user's payments or for a single payment order. This guide explains how to configure a CLABE to reject unwanted inbound transfers.

# Disable a CLABE

If you disable a CLABE, Fintoc **automatically rejects all inbound transfers sent to it** and returns them to the sender. Disable a CLABE when you no longer want to receive inbound transfers through it.

## Example use cases

* Your company assigns **one CLABE per user**, and Jared has completed offboarding from your app. Disable Jared's CLABE to return subsequent inbound transfers automatically.
* Your company assigns **one CLABE per order**, and Richard bought a computer from your store. Disable the order's CLABE after Richard pays to prevent a duplicate payment. If Richard pays twice, Fintoc automatically returns the second transfer.

## Disable a CLABE with the API

```python theme={null}
account_number = client.v2.account_numbers.update(
  "acno_Kasf91034gj1AD",
  status="disabled"
)
```

```javascript theme={null}
const accountNumber = await fintoc.v2.accountNumbers.update(
	"acno_Kasf91034gj1AD",
  { status: 'disabled' }
);
```

```bash theme={null}
curl --request PATCH \
     --url https://api.fintoc.com/v2/account_numbers/acno_jKaHD105H \
     --header 'Authorization: sk_test_jKaHdEa3mfmP0D105H' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "status": "disabled"
}
'
```

# Set inbound transfer amount limits

You can set amount limits for inbound transfers to your CLABE. If a transfer does not meet these limits, Fintoc rejects it. Rejected transfers do not appear on your account statements and do not incur fees.

Use the following options to set amount limits:

| Feature        | Description                                                                                                               |
| :------------- | :------------------------------------------------------------------------------------------------------------------------ |
| Minimum amount | Set `min_amount` to reject any transfer with an amount lower than this value.                                             |
| Maximum amount | Set `max_amount` to reject any transfer with an amount higher than this value.                                            |
| Exact amount   | Set both `min_amount` and `max_amount` to the same value to reject any transfer that does not match that specific amount. |

## Setting limits via API

```python theme={null}
account_number = client.v2.account_numbers.create(
  options={
    "min_amount": 300,
    "max_amount": 400
  }
)
```

```javascript theme={null}
const accountNumber = await fintoc.v2.accountNumbers.create({
  options: {
  	max_amount: 300,
  	min_amount: 400
  }
});
```

```bash theme={null}
curl --request POST \
     --url https://api.fintoc.com/v2/account_numbers \
     --header 'Authorization: sk_test_jKaHdEa3mfmP0D105H' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
     {
     "options": {
     	"max_amount": 400,
     	"min_amount": 300
     }
   }
'
```
