> ## 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.

# Test your integration

> Simulate transfers to test your integration.

To confirm that your integration works correctly, simulate transfers without moving any money using special values in test mode.

Use test API Keys in all API calls whenever you work with the test mode.

# Simulate an inbound transfer

Fintoc lets you simulate an inbound transfer through our API or Dashboard. You can simulate an inbound transfer only for account numbers created in test mode. To refresh on creating account numbers, take a look at [this example](/v2023-11-15/docs/transfers/inbound-transfers#step-2-create-an-account-number-spei-clabe).

To simulate an inbound transfer of \$1,020.00 MXN, you can use the following example:

```text Bash theme={null}
curl --request POST \
	--url 'https://api.fintoc.com/v2/simulate/receive-transfer' \
  --header 'Authorization: sk_test_9c8d8CeyBTx1VcJzuDgpm4H' \
  -d account_number_id=<acno_id> \
  -d amount=102000 \
  -d currency='mxn'
```

## Simulate using our SDK

If you are using our Python SDK, you can simulate receiving a transfer like this:

```python theme={null}
transfer = client.v2.simulate.receive_transfer(
    amount=9912400,
    currency="mxn",
    account_number_id="acno_2vF18OHZdXXxPJTLJ5qghpo1pdU",
)
```

```node Node theme={null}
const simTransfer = await fintoc.v2.simulate.receiveTransfer({
    account_number_id: 'acno_2wguZyhW0ilO9AUGSWQQ7HvuXpj',
    amount: 58145,
    currency: 'mxn'
});
```

<br />

<Info>
  **Simulate endpoint**

  Any endpoint in the `/simulate/*` routes are used for simulating production behaviors and will NOT be available in live mode.
</Info>

## Test returning an inbound transfer

Depending on the `amount` of your simulated inbound transfer, you can test out different outcomes of returning a transfer in test mode.

| Return Outcome                 | Inbound transfer `amount` |
| :----------------------------- | :------------------------ |
| Transfer returned successfully | Any amount                |
| Failed return                  | 99.99 MXN                 |

# Test outbound transfers

Fintoc provides test special values for Mexico and Chile to simulate transfers. When you create a test outbound transfer you will receive webhooks as you would normally receive in live mode.

## Mexico 🇲🇽

To simulate a successful or returned outbound transfer, you can use one of the following counterparties.

| Description                                                                                                                     | Counterparty                                                                                                                                                                 |
| :------------------------------------------------------------------------------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Regular `Transfer` flow. If you have enough funds, it will be successful. Otherwise you will get an "insufficient funds" error. | Account Number: Any account number to non Fintoc institution.<br />Here are some examples of valid CLABEs you can use:<br /><br />012969100000000110<br />646969100000000214 |
| Failed transfer due to external errors.                                                                                         | Account Number: 012969100000000013                                                                                                                                           |
| Returned transfer triggered by recipient institution                                                                            | Account Number: 012969100000000026                                                                                                                                           |

<br />

## Chile 🇨🇱

Use one of the following counterparties to simulate transfers in Chile.

| Description                                                                                                                     | Counterparty                                                                                                                                                      |
| :------------------------------------------------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Regular `Transfer` flow. If you have enough funds, it will be successful. Otherwise you will get an "insufficient funds" error. | `holder_id`: Any valid RUT<br />`holder_name`: Any name<br />`account_number`: Any account number<br />`type`: Any type<br />`institution_id`: Any institution id |
| Failed `Transfer` due to Insufficient funds                                                                                     | `holder_id`: 41579263-8<br />`holder_name`: Any name<br />`account_number`: Any account number<br />`type`: Any type<br />`institution_id`: Any institution id    |
| Returned `Transfer` due to a CCA reversal.                                                                                      | `holder_id`: 40427672-7<br />`holder_name`: Any name<br />`account_number`: Any account number<br />`type`: Any type<br />`institution_id`: Any institution id    |
