Skip to main content

Pay-Out · Mexico

TOPPAY TeamAbout 3 min

Request

The Pay-Out API initiates disbursement transactions. This page is for Mexico (country code mx). For SPEI pay-out, bankCode is the participating institution numeric code, and bankCard is usually the beneficiary CLABE (18 digits) or another account identifier. Full code/name list: Regional Payment Guide — Mexico.

Request URL

Domain: Prefer unified host openapi.toppayment.com (path unchanged); legacy country domain (e.g. global-mx-openapi.toppayment.com) remains available.

EnvironmentURL
Sandboxhttps://openapi.toppayment.com/sandbox/mx/disbursement/cash
Productionhttps://openapi.toppayment.com/mx/disbursement/cash

bankCode / bankName (SPEI institutions)Regional Payment Guide — Mexico.

Request Header

FieldRequiredTypeDescription
Content-TypeMStringapplication/json

Request Body

FieldRequiredTypeDescription
mchNoMString(32)Merchant number
orderNumMString(50)Merchant order number
amountMNumber(32,8)Amount
Mexico: positive, integer or at most 2 decimal places, not all zeros, no three or more decimal places.
bankCodeMString(32)SPEI institution numeric code (Mexico) — Regional Payment Guide — Mexico
bankCardMString(50)Beneficiary account identifier
Often CLABE (18 digits); exact format per gateway and bank
accountNameMString(50)Account / beneficiary name
descriptionOString(255)Description
feeTypeMNumberFee type
0: Deducted from order amount (net = amount − fee)
1: Fee separate (net = amount)
downNotifyUrlMString(164)Callback URL
timestampMStringTimestamp (13 digits)
signMStringSee Signature

Request Body Example (BBVA MEXICO 40012 + sample CLABE; align with your gateway)

Content-type: application/json

Response

HTTP Response

FieldRequiredTypeDescription
Content-TypeMStringapplication/json

Response Body Parameters

FieldRequiredTypeDescription
successMBooleanRequest success
codeMString9999 = success; otherwise resolve via status codes before treating as final failure
msgOStringMessage
timeStampMNumberServer time (ms)
dataMObjectPayload
orderNumMStringMerchant order number
platOrderNumMStringPlatform order number
amountMNumberAmount
feeMNumberFee
feeTypeMNumberFee type
statusMNumberStatus — Transaction Status Codes
statusMsgMStringStatus message
bankCodeMStringSPEI institution code (Mexico) — Regional Payment Guide — Mexico
bankCardMStringAccount / CLABE (masked or echoed)
accountNameMStringAccount name
descriptionOStringDescription
Content-type: application/json

Notification

HTTP Request

FieldRequiredTypeDescription
Content-TypeMStringHTTP request content type
Fixed value: application/json
Indicates JSON request format

Notification Body

FieldRequiredTypeDescription
platOrderNumMStringPlatform order number
System-generated internal transaction reference
Used for internal transaction management and support
versionMStringVersion
API version identifier
Example: v1
orderNumMStringMerchant order number
Same as orderNum in the original request
Used for transaction identification and verification
amountMNumberTransaction amount
Confirmed transaction amount
feeMNumberFee
Fee charged for the transaction
feeTypeMNumberFee type
1: Merchant bears the fee
statusMNumberTransaction status
See Transaction Status Codes
statusMsgMStringStatus message
Human-readable order status description
bankCodeMStringSPEI institution code (Mexico)
See Regional Payment Guide — Mexico
bankCardMStringBank card number/account number
accountNameMStringAccount name
descriptionOStringDescription
signMStringSignature
Digital signature of callback data

Response

Important response

Notification response: Return only the string SUCCESS to acknowledge receipt of the notification

{
    "platOrderNum": "TRANS2008812168572567552",
    "version": "v1",
    "orderNum": "MXPAYOUT12345648",
    "amount": 111.00,
    "fee": 3,
    "feeType": 1,
    "status": 2,
    "statusMsg": "supplement success!",
    "bankCode": "40012",
    "bankCard": "012345678901234567",
    "accountName": "Luis Garcia",
    "description": "test",
    "sign": "KCitZCmhtuoGtVOl/EC4Mn1vwf3QRkoL9Ged0psKiCzATvP0AePNc8P1PEcWrbJYAPctewCRO9jW+vHjtXrh6ozk2OUvVDUlLTiM3PS7ydpeogy+W6w3b4OZDg5vUtaTVwz5mpEKBZv/XEhOes1C16+ec36PLp3Mi0Y0g4ivgwk="
}