Skip to main content

Overview

The PayOut API for Mexico enables secure disbursements to bank accounts via SPEI, Mexico’s interbank electronic payments system operated by Banco de México. Transactions are processed asynchronously with webhook notifications for status updates.

Key Features

  • Payment Method: SPEI — Sistema de Pagos Electrónicos Interbancarios
  • Currency: Mexican Peso (MXN)
  • Asynchronous Processing: Background processing with webhook notifications
  • CLABE Support: 18-digit standardized banking code required for all SPEI transfers

Quick Reference

ParameterValueDescription
EndpointPOST /api/v1/payoutInitiate PayOut transaction
CurrencyMXNMexican Peso
Country CodeMXMexico
Auth RequiredYesToken-Top + Basic Auth
ProcessingAsyncStatus updates via webhook

Request Parameters

Required Fields

FieldTypeDescriptionExample
payment_methodstringDisbursement method"SPEI"
referencestringUnique transaction identifier from your system"TXN-MX-OUT-001"
amountfloatTransaction amount in MXN500.00 (= MX$ 500.00)
currencystringThree-letter currency code (ISO 4217)"MXN"
countrystringTwo-letter country code (ISO 3166-1 alpha-2)"MX"
ipn_urlstringWebhook URL for transaction status updates"https://your-domain.com/webhook"
customer_dataobjectCustomer and account information (see below)

Customer Data Object

FieldTypeRequiredDescriptionExample
legal_docstringCustomer’s legal document number"CURP12345678901234"
legal_doc_typestringDocument type: CURP, RFC, INE, PPN, PP"RFC"
phone_codestringCountry calling code"52"
phone_numberstring10-digit phone number without country code"5512345678"
emailstringCustomer email address"johndoe@email.com"
full_namestringCustomer full name"John Doe"
account_numberstringDestination account number"123456789012345678"
account_typestringAccount type: SPEI, CLABE"CLABE"
The account_number must be a valid 18-digit CLABE when account_type is CLABE. CLABE (Clave Bancaria Estandarizada) is required for all SPEI transfers in Mexico and uniquely identifies the destination bank and account.

Response Structure

Success Response

FieldTypeDescription
codestringResponse code ("01" = success)
statusstringTransaction status ("SUCCESS")
messagestringDescription of the response
dataobjectTransaction data object

Data Object

FieldTypeDescription
ticketstringUnique transaction identifier (TumiPay ID)
datestringTransaction timestamp (YYYY-MM-DD HH:MM:SS)
transactionobjectTransaction details echo

Transaction Status Flow

StatusDescription
PENDINGTransaction created, SPEI transfer initiated
APPROVEDFunds successfully transferred to recipient
REJECTEDTransaction rejected by bank or validation failure

Examples

Request Example

cURL
curl --request POST 'https://api-empresas.staging.tumipay.co/production/api/v1/payout' \
--header 'Token-Top: your_auth_token' \
--header 'Authorization: Basic your_auth_key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "payment_method": "SPEI",
    "reference": "TXN-MX-OUT-001",
    "amount": 500.00,
    "currency": "MXN",
    "country": "MX",
    "ipn_url": "https://your-domain.com/webhook",
    "customer_data": {
        "legal_doc": "CURP12345678901234",
        "legal_doc_type": "RFC",
        "phone_code": "52",
        "phone_number": "5512345678",
        "email": "johndoe@email.com",
        "full_name": "John Doe",
        "account_number": "123456789012345678",
        "account_type": "CLABE"
    }
}'

Response Example

{
    "code": "01",
    "status": "SUCCESS",
    "message": "Operacion exitosa",
    "data": {
        "ticket": "7MXpKRwc3NLQst8",
        "date": "2025-10-15 18:24:11",
        "transaction": {
            "reference": "TXN-MX-OUT-001",
            "amount": 500.00,
            "currency": "MXN",
            "payment_method": "SPEI"
        }
    }
}