# Mexico (MXN) Data Requirements

This page lists every data requirement for MXN payments to Mexico: the beneficiary and
originator identities, the beneficiary financial instrument, and the transaction itself.

Fields shown are those required for this corridor
The identity and financial instrument tables on this page list only the fields `MX_SPEI`
requires, taken from the PII v3 schema. Identities and financial instruments accept further
optional fields. For the complete set, see
[Payment identities](/products/payments-direct-2/introduction/concepts/payment-identities) and
[Financial instruments](/products/payments-direct-2/introduction/concepts/financial-instruments), or use the
[Payload Schema Utility](/products/payments-direct-2/api-docs/integration-resources/payload-schema-utility).

## Beneficiary identity

Create the beneficiary identity before the financial instrument, then reference it when you
create the payment. See [Create and manage identities](/products/payments-direct-2/api-docs/developer-guides/create-and-manage-identities)
for the API workflow.

The required fields depend on whether the beneficiary is a **business** or an **individual**.

### Business beneficiary

Applies to the **B2B**, **B2B2B**, **C2B2B** use cases. Submit a `business` identity.

| Field  | Required | Type | Constraints  |
|  --- | --- | --- | --- |
| `businessName` | Required | STRING | Legal name of the business. 1–140 characters. Must match `^(?![ .,'&\/()-])(?!.*([ .,'&\/()-])\1)[\p{L}\p{N} .,'&\/()-]+(?<![ .,'&\/-])?$`. |
| `address.streetAddress` | Required | ARRAY of STRING | Street address of the business. 1–70 characters. Must match `^[^\p{C}\r\n<>]+$`. |
| `address.country` | Required | STRING | Country of the business address. Exactly 2 characters. Must match `^[A-Z]+$`. |
| `address.city` | Required | STRING | City or locality of the business address. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L} .'-]+(?<![ .'-])$`. |
| `address.stateOrProvince` | Required | STRING | State, province, or county of the business address, as defined by postal services. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L}\p{N} .'-]+(?<![ .'-])$`. |
| `address.postalCode` | Required | STRING | Postal code of the business address. 3–15 characters. Must match `^[\p{L}\p{N}][\p{L}\p{N} -]{1,15}[\p{L}\p{N}]$`. |


### Individual beneficiary

Applies to the **B2B2C**, **B2C**, **C2B2C** use cases. Submit an `individual` identity.

| Field  | Required | Type | Constraints  |
|  --- | --- | --- | --- |
| `firstName` | Required | STRING | First name of the individual. 1–140 characters. Must match `^(?![ .'-])(?!.*([ .'-])\1)[\p{L} .'-]+(?<![ .'-])$`. |
| `lastName` | Required | STRING | Last name of the individual. 1–140 characters. Must match `^(?![ .'-])(?!.*([ .'-])\1)[\p{L} .'-]+(?<![ .'-])$`. |
| `address.streetAddress` | Required | ARRAY of STRING | Street address of the individual. 1–70 characters. Must match `^[^\p{C}\r\n<>]+$`. |
| `address.country` | Required | STRING | Country of the individual's address. Exactly 2 characters. Must match `^[A-Z]+$`. |
| `address.city` | Required | STRING | City or locality of the individual's address. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L} .'-]+(?<![ .'-])$`. |
| `address.stateOrProvince` | Required | STRING | State, province, or county of the individual's address, as defined by postal services. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L}\p{N} .'-]+(?<![ .'-])$`. |
| `address.postalCode` | Required | STRING | Postal code of the individual's address. 3–15 characters. Must match `^[\p{L}\p{N}][\p{L}\p{N} -]{1,15}[\p{L}\p{N}]$`. |


## Beneficiary financial instrument

Set `financialInstrumentType: MX_SPEI` and `currency: MXN`. Provide the following fields in the `mxSpei` payment rail object. See [Create and manage financial instruments](/products/payments-direct-2/api-docs/developer-guides/create-and-manage-financial-instruments) for the API workflow.

Routing is handled entirely by the 18-digit CLABE, which identifies the destination bank, branch, and account. No separate bank or branch code is required.

| Field  | Required | Type | Constraints  |
|  --- | --- | --- | --- |
| `bankName` | Required | STRING | The name of the identity's bank. 2–140 characters. Must match `^(?![ .,'&\/()-])(?!.*([ .,'&\/()-])\1)[\p{L}\p{N} .,'&\/()-]+(?<![ .,'&\/-])?$`. |
| `clabe` | Required | STRING | The identity's CLABE account identification code. Exactly 18 characters. Must match `^\d+$`. |


## Originator identity

Create the originator identity once and reuse it across payments.

If your organization's jurisdiction is Australia or Brazil, an originator identity needs
further fields on every corridor, including this one. See
[Jurisdiction-based requirements](/products/payments-direct-2/introduction/concepts/payment-identities#jurisdiction-based-requirements).

The required fields depend on whether the originator is a **business** or an **individual**.

### Business originator

Applies to the **B2B**, **B2B2B**, **B2B2C**, **B2C** use cases. Submit a `business` identity.

| Field  | Required | Type | Constraints  |
|  --- | --- | --- | --- |
| `businessName` | Required | STRING | Legal name of the business. 1–140 characters. Must match `^(?![ .,'&\/()-])(?!.*([ .,'&\/()-])\1)[\p{L}\p{N} .,'&\/()-]+(?<![ .,'&\/-])?$`. |
| `address.streetAddress` | Required | ARRAY of STRING | Street address of the business. 1–70 characters. Must match `^[^\p{C}\r\n<>]+$`. |
| `address.country` | Required | STRING | Country of the business address. Exactly 2 characters. Must match `^[A-Z]+$`. |
| `address.city` | Required | STRING | City or locality of the business address. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L} .'-]+(?<![ .'-])$`. |
| `address.stateOrProvince` | Required | STRING | State, province, or county of the business address, as defined by postal services. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L}\p{N} .'-]+(?<![ .'-])$`. |
| `address.postalCode` | Required | STRING | Postal code of the business address. 3–15 characters. Must match `^[\p{L}\p{N}][\p{L}\p{N} -]{1,15}[\p{L}\p{N}]$`. |


### Individual originator

Applies to the **C2B2B**, **C2B2C** use cases. Submit an `individual` identity.

| Field  | Required | Type | Constraints  |
|  --- | --- | --- | --- |
| `firstName` | Required | STRING | First name of the individual. 1–140 characters. Must match `^(?![ .'-])(?!.*([ .'-])\1)[\p{L} .'-]+(?<![ .'-])$`. |
| `lastName` | Required | STRING | Last name of the individual. 1–140 characters. Must match `^(?![ .'-])(?!.*([ .'-])\1)[\p{L} .'-]+(?<![ .'-])$`. |
| `address.streetAddress` | Required | ARRAY of STRING | Street address of the individual. 1–70 characters. Must match `^[^\p{C}\r\n<>]+$`. |
| `address.country` | Required | STRING | Country of the individual's address. Exactly 2 characters. Must match `^[A-Z]+$`. |
| `address.city` | Required | STRING | City or locality of the individual's address. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L} .'-]+(?<![ .'-])$`. |
| `address.stateOrProvince` | Required | STRING | State, province, or county of the individual's address, as defined by postal services. 1–140 characters. Must match `^(?![ .'-])(?!.*[ .'-]{2})[\p{L}\p{N} .'-]+(?<![ .'-])$`. |
| `address.postalCode` | Required | STRING | Postal code of the individual's address. 3–15 characters. Must match `^[\p{L}\p{N}][\p{L}\p{N} -]{1,15}[\p{L}\p{N}]$`. |


## Transaction data requirements

The beneficiary and originator details come from the identities you create beforehand, and the bank details from the financial instrument. The only field you set on the payment itself for this corridor is below.

| Field  | Description | Required | Type | Constraints  |
|  --- | --- | --- | --- | --- |
| `paymentMemo` | Payment memo | Optional | STRING | Send no more than 40 characters. Letters, digits, and spaces only. See [Memo constraints](#memo-constraints) below. |


### Memo constraints

SPEI carries the memo to the beneficiary as the payment `concepto`, so it is the field a beneficiary reconciles against. Only the first 40 characters are delivered.

Memos over 40 characters are shortened without notice
A memo longer than 40 characters is shortened to the first 40 before the payment is sent. No
error is returned and the payment still goes through, so put what the beneficiary needs for
reconciliation, such as an invoice number, at the start of the memo.

A memo containing any character other than a letter, a digit, or a space fails the payment. Keep punctuation such as hyphens and slashes out of the memo.