Pay-in collectionVietnam region pay-in API (VND ). See 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. Vietnam ICT +07:00). X-SIGNATUREM String Signature of JSON body (see product Signature doc). X-PARTNER-IDM String Your merchantID
Body Parameters Field Required Type Description orderNoM String(32) Merchant-unique id purposeM String(64) Memo to payer merchantM Object Wraps merchantId and optional sub-merchant fields. merchantId M String Smilepayz merchantId for this call. merchantName O String Merchant display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Name for subMerchantId. moneyM Object Currency plus amount for this transaction. currency M String Fixed to VND. amount M Number Amount paymentMethodO String See Payment methods doc. payerO Object Payer object. Payer bank information may be provided for Vietnam bank-transfer scenarios. name O String Payer name. accountNo O String Payer bank account number. bankName O String Payer bank name or bank code. expiryPeriodO Number ExpiryPeriod, default 3600. 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 Bank Transfer Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"orderNo" : "20011563d9094aa7d4d9e9b933bb" ,
"purpose" : "E-wallet top-up — HCMC" ,
"merchant" : {
"merchantId" : "20011"
} ,
"money" : {
"currency" : "VND" ,
"amount" : 1000000
} ,
"paymentMethod" : "W_MOMO" ,
"redirectUrl" : "https://www.example.com/success"
}
{
"orderNo" : "20011563d9094aa7d4d9e9b933bb" ,
"purpose" : "Bank transfer top-up" ,
"merchant" : {
"merchantId" : "20011"
} ,
"money" : {
"currency" : "VND" ,
"amount" : 1000000
} ,
"paymentMethod" : "VIET_QR" ,
"payer" : {
"name" : "Nguyen Van A" ,
"accountNo" : "0123456789" ,
"bankName" : "VCB"
} ,
"redirectUrl" : "https://www.example.com/success"
}
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 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 Merchant display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Name for subMerchantId. moneyM Object Currency plus amount for this transaction. currency M String Fixed to VND. amount M Number Amount transactionTimeM String yyyy-MM-ddTHH:mm:ss±HH:mmchannelM Object Channel payload (paymentUrl, qrString, …). paymentMethod O String See Payment methods doc. paymentUrl M String Cashier URL to open for the payer. statusO String Order or payment status enum value.
Header W_MOMO Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "20011563d9094aa7d4d9e9b933bb" ,
"tradeNo" : "1812001125042115424463245" ,
"merchant" : {
"merchantId" : "20011" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "11820011202403071031"
} ,
"money" : {
"currency" : "VND" ,
"amount" : 1000000
} ,
"transactionTime" : "2025-06-19T10:31:33+07:00" ,
"channel" : {
"paymentMethod" : "W_MOMO" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=1812001125042115424463245"
} ,
"status" : "PROCESSING"
}
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 tradeNoM String Smilepayz tradeNo for this order. merchantIdM String Smilepayz merchantId for this call. merchantNameM String Merchant display name. subMerchantIdO String Sub-merchant ID. subMerchantNameO String Name for subMerchantId. paymentMethodM String 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 VND. amount M Number Amount
Return Important
Respond with the string SUCCESS only.
Request Response
{
"orderNo" : "20011563d9094aa7d4d9e9b933bb" ,
"tradeNo" : "1812001125042115424463245" ,
"merchantId" : "20011" ,
"merchantName" : "Smilepayz Demo Store" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "W_MOMO" ,
"transactionTime" : "2025-06-19T10:31:33+07:00" ,
"status" : "SUCCESS" ,
"money" : {
"currency" : "VND" ,
"amount" : 1000000
}
}
Next
Disbursement (pay-out)