Pay-in collectionCollect payments in the Philippines (PHP ): GCASH , MAYA , GCASH_WAP , MAYA_WAP ; see Payment methods . paymentMethod is optional on the request.
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 X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. PHT +08:00). X-SIGNATUREM String Request signature; Signature Generation . X-PARTNER-IDM String merchantID (alphanumeric).
Body Parameters Field Required Type Description orderNoM String(32) 6–32 alphanumeric; unique per merchant. purposeM String(64) UTF-8; length 1–64. merchantM Object Merchant routing and settlement. merchantId M String Platform merchant ID. merchantName O String UTF-8 display name (cashier / records). subMerchantId O String Sub-merchant ID (multi-level). subMerchantName O String Sub-merchant name (UTF-8). moneyM Object Amount and currency. currency M String PHP only. amount M Number Integer minor units (e.g. 20000 = PHP 20000.00). paymentMethodO String e.g. GCASH , MAYA , GCASH_WAP , MAYA_WAP ; Payment methods . expiryPeriodO Number Session TTL (seconds); default 3600 ; max 86400 . redirectUrlO String(256) Post-pay redirect URL; HTTP(S); max 256. callbackUrlO String(256) Status webhook URL; HTTP(S); max 256.
Example Body – Transaction Request: Header Min Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+08:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"orderNo" : "200110edbb466abb04682968b40" ,
"purpose" : "Payment for online purchase" ,
"merchant" : {
"merchantId" : "20011"
} ,
"money" : {
"currency" : "PHP" ,
"amount" : 20000
} ,
"paymentMethod" : "GCASH" ,
"redirectUrl" : "https://www.example.com/success"
}
Responses HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm
Body Parameters Field Required Type Description codeM String 00 = success; other codes = error.messageM String Result text (UTF-8). tradeNoO String Platform trade ID. orderNoM String Echo of orderNo . merchantM Object Merchant Model . merchantId M String Merchant ID. merchantName O String Display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Sub-merchant name. moneyM Object Money Model . currency M String PHP . amount M Number Integer minors. transactionTimeM String yyyy-MM-ddTHH:mm:ss±HH:mmchannelM Object Channel Model . paymentMethod O String Channel code (e.g. GCASH , MAYA ). paymentUrl M String Cashier URL. statusO String Status Model .
Header GCASH Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+08:00
{
"code" : "00" ,
"message" : "Successful" ,
"tradeNo" : "1812001125042115424463245" ,
"orderNo" : "20011563d9094aa7d4d9e9b933bb" ,
"merchant" : {
"merchantId" : "20011" ,
"merchantName" : "bradytest123www" ,
"accountNo" : "11820011202403071031"
} ,
"money" : {
"currency" : "PHP" ,
"amount" : 20000
} ,
"transactionTime" : "2025-06-19T10:31:33+08:00" ,
"channel" : {
"paymentMethod" : "GCASH" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=1812003025061909313195096"
} ,
"status" : "PROCESSING"
}
Notification/Callback HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm X-SIGNATUREM String Callback signature; verify .
Body Parameters Field Required Type Description orderNoM String Same orderNo as pay-in. tradeNoM String Platform tradeNo . merchantIdM String Merchant ID. merchantNameM String Display name. subMerchantIdO String Sub-merchant ID. subMerchantNameO String Sub-merchant name. paymentMethodM String Settled channel (e.g. GCASH , MAYA ). transactionTimeM String Completion time (yyyy-MM-ddTHH:mm:ss±HH:mm). statusM String Status Model .moneyM Object Final amount; Money Model . currency M String PHP . amount M Number Integer minors.
Return Important
Respond with the string SUCCESS only.
Request Response
{
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "181200012410241325417215" ,
"merchantId" : "20001" ,
"merchantName" : "test" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "GCASH" ,
"transactionTime" : "2024-12-17T10:55:00" ,
"money" : {
"currency" : "PHP" ,
"amount" : 100000
} ,
"status" : "SUCCESS"
}
Next
Disbursement (pay-out)