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

# Mexico

> Verify Mexican customers, register CLABE accounts, fund and pay out on SPEI, and test in sandbox.

We support onramps and offramps in Mexico. Money moves in MXN on `spei`, Mexico's interbank transfer network. This page covers what is specific to Mexico's bank rail. Customers from other countries can still use us on chain. See [Local Bank Rails](https://docs.etherfuse.com/guides/countries/overview.md). For the end-to-end flows, see the [Onboarding](https://docs.etherfuse.com/guides/onboarding.md), [Payment Accounts](https://docs.etherfuse.com/guides/payment-accounts.md), [Onramps](https://docs.etherfuse.com/guides/testing-onramps.md) and [Offramps](https://docs.etherfuse.com/guides/testing-offramps.md) guides.

## Supported operations

| Operation | Supported |
| - | - |
| Onramp (MXN → token) | ✓ |
| Offramp (token → MXN) | ✓ |
| Cash in (cash MXN → token) | Coming soon |
| Cash out (token → cash MXN) | Coming soon |

| Market | Currency | Rail | Stablebond |
| - | - | - | - |
| Mexico | `MXN` | `spei` | CETES |

## Identity verification

A Mexican customer (`country: "MEX"`) needs a CURP and an RFC.

| Requirement | What satisfies it | How it can be submitted |
| - | - | - |
| `personalData` | Both CURP and RFC, entered as text. | WebSDK · API |

Send `additionalInfo.curp` and `taxId` (RFC) through [`POST /organization/{organizationId}/verification`](https://docs.etherfuse.com/api-reference/kyc/submit-verification-data), or let the customer enter them in the [WebSDK](https://docs.etherfuse.com/guides/kyc-websdk.md). We check the RFC against the tax authority's (SAT) registry and compare the name it returns with the customer's personal data.

## Bank accounts

Register a Mexican bank account with `accountDetails` of kind `clabe`: an 18-digit CLABE. We check its length and check digit.

```json theme={null}
{ "kind": "clabe", "clabe": "012180000000000002" }
```

The route needs `accountHolderName` and `taxId` under `registrationInfo`. `taxId` is the holder's RFC: 13 characters for a person and 12 for a company. We fill both from the organization's verified identity when we have them. To see what you still need to send, call [Get registration requirements](https://docs.etherfuse.com/api-reference/payment-accounts/get-registration-requirements.md):

```bash theme={null}
curl -H "Authorization: <api_key>" \
  "https://api.sand.etherfuse.com/organization/$ORGANIZATION_ID/payment_account/requirements?kind=bank&country=MX&currency=MXN&accountDetailsKind=clabe"
```

## Account requirements

SPEI accounts have no [requirements](https://docs.etherfuse.com/guides/payment-accounts.md#requirements). They move to `ready` once we register them.

## Funding and payouts

* **Onramp funding:** on `spei`, `fundingInstructions.destination` holds the CLABE to pay, with `bankName` and `recipientName`. Ask the customer to send the order's exact `source.amount` from the bank account on the order, with `fundingInstructions.reference` in the transfer's referencia numérica. A transfer from another account doesn't fund the order, even with the right reference.
* **Transaction ids:** on SPEI, `fundingTransactionId` and `deliveryTransactionId` hold the tracking keys (claves de rastreo). `fundingProviderReference` holds the bank provider's transaction ID when available.
* **Returned payouts:** an offramp order moves to `completed` when the receiving bank accepts the transfer. The bank can still return it for a few minutes after it settles. If that happens, the order stays `completed`, and our team contacts you to resolve it.

## Sandbox

See the [Sandbox Reference](https://docs.etherfuse.com/test-environment.md) for what works the same in every country.

* **Test person:** sandbox still runs the RFC check against SAT's test registry. Use these values at the personal data step, or in the KYC API (`"firstName"`, `"lastName"`, `"taxId"`). With any other name, `personalData` becomes `actionRequired` a few seconds after the customer submits.

  | Field | Value |
  | - | - |
  | First name | `CARLOS` |
  | Last name | `RAMIREZ LOPEZ` |
  | RFC | `HEGL900101AB6` |
  | CURP | Any CURP in the right format, such as `HEGL900101MDFRNT00` |

* **Test CLABE:** generate a fresh 18-digit CLABE with a valid check digit and send it as a string in `accountDetails.clabe`. If another organization already holds that CLABE, registration returns `409` `payment-account-unavailable`. Generate another one and retry.

  ```python theme={null}
  from secrets import randbelow

  body = f"012180{randbelow(10**11):011d}"
  weights = [3, 7, 1] * 6
  check_digit = -sum(int(digit) * weight for digit, weight in zip(body, weights)) % 10
  print(f"{body}{check_digit}")
  ```

* **Holder RFC:** when Get registration requirements lists `taxId` as missing, send the dummy RFC `XAXX010101000` in `registrationInfo.taxId`.

* **Deposits:** simulate the customer's SPEI payment with [`POST /organization/{organizationId}/order/{id}/fiat_received`](https://docs.etherfuse.com/api-reference/sandbox/simulate-fiat-received). Afterwards `fundingTransactionId` and `fundingProviderReference` contain `simulated-fiat-received:<orderId>`.

* **Onramp cap:** 500 MXN per quote.

## Related

> [card] [Onboarding](https://docs.etherfuse.com/guides/onboarding.md)

> [card] [Payment Accounts](https://docs.etherfuse.com/guides/payment-accounts.md)

> [card] [Sandbox Reference](https://docs.etherfuse.com/test-environment.md)


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