Pembayaran masuk (Pay-In · Meksiko)smilepayz teams Sekitar 3 menit API pay-in wilayah Meksiko (MXN ). Lihat Payment methods .
Request POST /v2.0/transaction/pay-in
Request Path: sandbox: https://sandbox-gateway.smilepayz.com/v2.0/transaction/pay-in production: https://gateway.smilepayz.com/v2.0/transaction/pay-in
Field Required Type Description Content-TypeM String application/json request body.X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. Mexico CST −06:00). X-SIGNATUREM String Signature of JSON body (see product Signature doc). X-PARTNER-IDM String Your merchantID (alphanumeric).
Body Parameters Field Required Type Description orderNoM String(32) Merchant-unique id, 6–32 alphanumeric. purposeM String(64) Memo to payer, 1–64 UTF-8 chars. merchantM Object Wraps merchantId and optional sub-merchant fields. merchantId M String Smilepayz merchantId for this call. merchantName O String UTF-8 merchant display name. subMerchantId O String Sub-merchant ID. subMerchantName O String UTF-8 name for subMerchantId. moneyM Object Currency plus amount for this transaction. currency M String Fixed to MXN. amount M Number MXN integer minor units (e.g. 10050 = MXN 100.50). paymentMethodM String Code (see Payment methods doc). expiryPeriodO Number Session TTL seconds, default 3600, max 86400 unless noted. redirectUrlO String(256) HTTPS post-pay return URL, max 256 chars. callbackUrlO String(256) HTTPS async status URL, max 256 chars.
Example Body – Transaction Request: Header Min Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-06:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"orderNo" : "20001mxspei394eeb7b44c2460" ,
"purpose" : "Electronics invoice — CDMX" ,
"merchant" : {
"merchantId" : "20001"
} ,
"money" : {
"currency" : "MXN" ,
"amount" : 250000
} ,
"paymentMethod" : "SPEI"
}
Responses HTTP Request Field Required Type Description Content-TypeM String application/json request body.X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm
Body Parameters Field Required Type Description codeM String 00 success, other values error.messageM String UTF-8 human-readable result line. orderNoM String Merchant-unique id, 6–32 alphanumeric. tradeNoO String Smilepayz tradeNo for this order. merchantM Object Wraps merchantId and optional sub-merchant fields. merchantId M String Smilepayz merchantId for this call. merchantName O String UTF-8 merchant display name. subMerchantId O String Sub-merchant ID. subMerchantName O String UTF-8 name for subMerchantId. moneyM Object Currency plus amount for this transaction. currency M String Fixed to MXN. amount M Number MXN integer minor units (e.g. 10050 = MXN 100.50). transactionTimeM String yyyy-MM-ddTHH:mm:ss±HH:mmchannelM Object Channel payload (paymentUrl, qrString, …). paymentMethod M String Code (see Payment methods doc). paymentUrl O String Cashier URL to open for the payer. qrString O String PIX or channel copy-paste string if returned. receiverBankName O String Bank / brand code when returned. vaNumber O String Virtual account / reference when returned. statusO String Order or payment status enum value. responseCodeO String Channel result code when returned (e.g. CODI / OXXO). responseMessageO String Channel result text when returned.
Header SPEI Response Body CODI Response Body OXXO Response Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00-06:00
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "20001mxspei394eeb7b44c2460" ,
"tradeNo" : "141200112412131711531135" ,
"merchant" : {
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "11420011202402290943"
} ,
"money" : {
"currency" : "MXN" ,
"amount" : 250000
} ,
"transactionTime" : "2024-12-13T04:11:54-06:00" ,
"channel" : {
"paymentMethod" : "SPEI" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=141200112412131711531135" ,
"receiverBankName" : "OPM" ,
"vaNumber" : "646180157000000004"
} ,
"status" : "PROCESSING"
}
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "20011331546f1ca1447c69cc0caf" ,
"tradeNo" : "1412001125102713583676303" ,
"merchant" : {
"merchantId" : "20011" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "11420011202402290943"
} ,
"money" : {
"currency" : "MXN" ,
"amount" : 250000
} ,
"transactionTime" : "2025-10-27T00:58:38-06:00" ,
"channel" : {
"paymentMethod" : "CODI" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=1412001125102713583676303" ,
"qrString" : "{\"TYP\":20,\"v\":{\"DEV\":\"00001618035151761092/60\"},\"ic\":{\"IDC\":\"335b075298\",\"SER\":1733687829,\"ENC\":\"mgXOeZ0ufbeSkj0rFNi3Giu2Qy8zcoAV7yA54fHDhY9kyYz2s82PQLXH+1ObjyoFnQT8QT/aEuTNYquQbTYDO+TWLUEZHrLXQcLsPJ5qaH9LqfXuLRDZAN6wpwIxAvZudKxXKk3VDpswsKPcT98K/VHrEn1zz3MHMIz0cmJsoV+kUX1ed1gr7J162JimfjtOxC/MNKbMsvqZf8f48uDImxTWxEwGtWj0on1C8bs0ZnkBibn8buY4yxRK73ixQMywmXsWxwxp8hoAd8Yh7jO02QYof0F4uehUuu1E8Q6iomEcIYtorFRBcnzrUxLEsjSzMxeDAV4nhF7faVB65UTUp/LyV7lwzPQu5EKF/XUzEeOVyAz0tTQHnbGfkkEh44L5\"},\"CRY\":\"FK0Vm7dtBI+R5tv/3oIM9kkOJLfdSQVG0y6fVQHyAcw=\"}"
} ,
"status" : "PROCESSING" ,
"responseCode" : "2009000" ,
"responseMessage" : "Successful"
}
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "20011f15fd99a451042d585ba32c" ,
"tradeNo" : "1412001125102713522460381" ,
"merchant" : {
"merchantId" : "20011" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "11420011202402290943"
} ,
"money" : {
"currency" : "MXN" ,
"amount" : 250000
} ,
"transactionTime" : "2025-10-27T00:52:25-06:00" ,
"channel" : {
"paymentMethod" : "OXXO" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=1412001125102713522460381" ,
"qrString" : "8201880001347082"
} ,
"status" : "PROCESSING" ,
"responseCode" : "2009000" ,
"responseMessage" : "Successful"
}
Notification/Callback HTTP Request Field Required Type Description Content-TypeM String application/json request body.X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm X-SIGNATUREM String Callback body signature (see Callback signature guide ).
Body Parameters Field Required Type Description orderNoM String Merchant-unique id, 6–32 alphanumeric. tradeNoM String Smilepayz tradeNo for this order. merchantIdM String Smilepayz merchantId for this call. merchantNameM String UTF-8 merchant display name. subMerchantIdO String Sub-merchant ID. subMerchantNameO String UTF-8 name for subMerchantId. paymentMethodM String Code (see Payment methods doc). transactionTimeM String Format: yyyy-MM-ddTHH:mm:ss statusM String Order or payment status enum value. moneyM Object Currency plus amount for this transaction. currency M String Fixed to MXN. amount M Number MXN integer minor units (e.g. 10050 = MXN 100.50). payerO Object Payer object per region rules (see Payer model). name O String Beneficiary full name (UTF-8).
Return Important
Respond with the string SUCCESS only.
Request Response
{
"orderNo" : "20001mxspei394eeb7b44c2460" ,
"tradeNo" : "141200112412131711531135" ,
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "SPEI" ,
"transactionTime" : "2024-12-13T04:11:54-06:00" ,
"status" : "SUCCESS" ,
"money" : {
"currency" : "MXN" ,
"amount" : 250000
} ,
"payer" : {
"name" : "Juan Carlos Hernández"
}
}
Selanjutnya
Pengiriman dana (Pay-out · Meksiko)