Skip to main content

Disbursement (pay-out)

smilepayz teamsAbout 2 min

Disburse to bank accounts in Mexico (MXN): rails such as BANXICO, BANAMEX, BBVAMX; see Payment methods. Send cashAccount and paymentMethod.

Request

POST/v2.0/disbursement/pay-out

Request Path:

sandbox: https://sandbox-gateway.smilepayz.com/v2.0/disbursement/pay-out
production: https://gateway.smilepayz.com/v2.0/disbursement/pay-out

Header Parameters

FieldRequiredTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. Mexico CST −06:00).
X-SIGNATUREMStringRequest signature; Signature Generation.
X-PARTNER-IDMStringmerchantID (alphanumeric).

Body Parameters

FieldRequiredTypeDescription
orderNoMString(32)6–32 alphanumeric; unique per merchant.
purposeMString(64)UTF-8; length 1–64.
merchantMObjectMerchant routing and settlement.
    merchantIdMStringPlatform merchant ID.
    merchantNameOStringUTF-8 display name.
    subMerchantIdOStringSub-merchant ID.
    subMerchantNameOStringSub-merchant name (UTF-8).
moneyMObjectAmount and currency.
    currencyMStringMXN only.
    amountMNumberInteger centavos (minor units).
paymentMethodMStringPay-out bank / rail code (e.g. BANXICO, BANAMEX); Payment methods.
cashAccountMString(32)Beneficiary CLABE or account id (max 32).
additionalParamOObjectExtra parameters when required by product.
callbackUrlOString(256)Webhook URL; HTTP(S); max 256.

Example Body – Disbursement Request:

Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-06:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001

Responses

HTTP Request

FieldRequiredTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm

Body Parameters

FieldRequiredTypeDescription
codeMString00 = success; other codes = error.
messageMStringResult text (UTF-8).
orderNoMStringEcho of orderNo.
tradeNoOStringPlatform trade ID.
merchantMObjectMerchant Model.
    merchantIdMStringMerchant ID.
    merchantNameOStringDisplay name.
    subMerchantIdOStringSub-merchant ID.
    subMerchantNameOStringSub-merchant name.
    accountNoOStringMerchant account number when returned.
moneyMObjectMoney Model.
    currencyMStringMXN.
    amountMNumberInteger centavos.
disbursementTimeMStringWhen disbursement was processed (yyyy-MM-ddTHH:mm:ss±HH:mm).
channelMObjectChannel snapshot; Channel Model.
    paymentMethodMStringSettled method code.
    cashAccountMStringRecipient account.
statusOStringStatus Model.

Example Body – Disbursement Response:

Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-06:00

Notification/Callback

HTTP Request

FieldRequiredTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm
X-SIGNATUREMStringCallback signature; verify.

Body Parameters

FieldRequiredTypeDescription
orderNoMStringSame orderNo as payout request.
tradeNoMStringPlatform tradeNo.
merchantIdMStringMerchant ID.
merchantNameMStringDisplay name.
subMerchantIdOStringSub-merchant ID.
subMerchantNameOStringSub-merchant name.
paymentMethodMStringSettled channel (e.g. BANXICO).
transactionTimeMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm
moneyMObjectFinal amount; Money Model.
    currencyMStringMXN.
    amountMNumberInteger centavos.
statusMStringStatus Model.

Return

Important

Respond with the string SUCCESS only.

{
  "orderNo": "2000102900000000000001",
  "tradeNo": "1022000109e998347483949",
  "merchantId": "20001",
  "merchantName": "test",
  "subMerchantId": "",
  "subMerchantName": "",
  "paymentMethod": "BANXICO",
  "transactionTime": "2024-07-03T17:34:07-06:00",
  "status": "SUCCESS",
  "money": {
    "currency": "MXN",
    "amount": 10000
  }
}