Skip to main content

KYC - MXN (Fiat)

To operate MXN fiat (Mexican Peso) with Avenia, the user must complete MXN KYC in addition to standard identity verification.

info

KYC Level 1 must be completed and approved before you can request MXN KYC. Complete Level 1 first using the KYC Level 1 guide.

You can request MXN KYC from the Avenia dashboard or via the API described below.

The status lifecycle of an MXN KYC attempt is the same as for KYC Level 1 (for example PENDING, PROCESSING, COMPLETED, with result APPROVED or REJECTED). Track progress with List All KYC Attempts and Get KYC Attempt by ID in the KYC Level 1 guide. If webhooks are enabled for your account, you will receive the same KYC event types as for other KYC flows.

info

MXN KYC is processed through Avenia's MXN fiat rail. When approval completes, the user's MXN rail is unlocked and they can create MXN payins / payouts via the Operations endpoints.


Request MXN KYC via API​

Use this endpoint to start an MXN KYC request programmatically. No request body is required.

Endpoint​

POSThttps://api.sandbox.avenia.io:10952/v2/kyc/mxn/api

Query parameters​

ParameterTypeRequiredDescription
subAccountIdstringNoWhen requesting MXN KYC for a subaccount, pass the subaccount ID as a query parameter.

Request example (main account)​

cURL
curl -X POST "https://api.sandbox.avenia.io:10952/v2/kyc/mxn/api" \
-H "Authorization: Bearer eyJhdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Request example (subaccount)​

cURL
curl -X POST "https://api.sandbox.avenia.io:10952/v2/kyc/mxn/api?subAccountId=1ee0a663-922b-4389-9f84-074ccff7085d" \
-H "Authorization: Bearer eyJhdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
tip

For subaccounts, the same subAccountId query parameter pattern applies when listing or fetching KYC attempts for that user.

Response​

201 Created with a JSON body identifying the KYC attempt. Poll the attempt via the Level 1 endpoints to watch the status transition to COMPLETED / APPROVED.

Confirming approval​

Once the attempt is approved, mxnUnlocked flips to true on the account metadata endpoint:

cURL
curl -X GET "https://api.sandbox.avenia.io:10952/v2/account/metadata" \
-H "Authorization: Bearer eyJhdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
JSON
{
"brlUnlocked": true,
"usdUnlocked": false,
"eurUnlocked": false,
"arsUnlocked": false,
"copUnlocked": false,
"mxnUnlocked": true,
"swiftUsdUnlocked": false
}

See About Login — Metadata for the full response shape.


Common Errors​

ErrorHTTPCause
complete basic kyc first400KYC Level 1 is not approved yet for this user. Finish Level 1 before requesting MXN KYC.
mxn kyc already approved400The MXN rail is already unlocked for this user — the request is a no-op.
missing required document: identification document400The user's Level 1 submission has no usable identification document on file. Re-upload the identity document in Level 1, then retry.

Scenarios​

The endpoint is idempotent per user and adapts to the user's current verification state:

Current state for this userWhat happens on POST /v2/kyc/mxn/api
Not yet verifiedYour Level 1 KYC documents are submitted for verification and a new KYC attempt is returned. You will receive KYC-STARTED → KYC-PROCESSING → KYC-COMPLETED webhooks.
Verification already approved for this userSkips the re-verification round-trip, enables the MXN rail immediately, and emits the full KYC-STARTED → KYC-PROCESSING → KYC-COMPLETED (APPROVED) webhook lifecycle so the client experience is identical.
Verification pending (still awaiting a result)Registers the MXN currency as part of the in-flight verification and returns the attempt ID. Approval webhooks fire when verification finishes.