Pembayaran masuk (Pay-In)smilepayz teams Sekitar 3 menit API pay-in wilayah Indonesia (IDR ). 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 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 IDR. amount M Number IDR integer minor units (e.g. 150000 = IDR 150000). payerC Object Payer object per region rules (see Payer model). phone C String Beneficiary phone in local format. paymentMethodO 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+07:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"orderNo" : "2000102900000000000001" ,
"purpose" : "E-commerce checkout — Jakarta" ,
"paymentMethod" : "QRIS" ,
"money" : {
"currency" : "IDR" ,
"amount" : 150000
} ,
"merchant" : {
"merchantId" : "20001"
}
}
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 IDR. amount M Number IDR integer minor units (e.g. 150000 = IDR 150000). transactionTimeM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm channelM Object Channel payload (paymentUrl, qrString, …). paymentMethod O String Code (see Payment methods doc). vaNumber O String Bank VA number. qrString O String PIX or channel copy-paste string if returned. paymentUrl M String Cashier URL to open for the payer. statusO String Order or payment status enum value.
Header QRIS String Body QRIS in image Body DANA Body VA Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "101200012410241325417215" ,
"merchant" : {
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "1102000000000000"
} ,
"money" : {
"currency" : "IDR" ,
"amount" : 150000
} ,
"transactionTime" : "2024-12-17T10:55:00" ,
"channel" : {
"paymentMethod" : "QRIS" ,
"qrString" : "00020101021226570011ID.DANA.WWW011893600915069533479502096953347950303UME51440014ID.CO.QRIS.WWW0215ID20243302250440303UME5204739953033605405100005802ID5919DP Mega Jaya Makmur6015Kota Jakarta Se61051221062750118pay_JXlS1MtBUk931660490011ID.DANA.WWW0425MER202110293394047135422905011630451D5" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=101200112410241325417215"
} ,
"status" : "PROCESSING"
}
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "101200012410241325417215" ,
"merchant" : {
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "1102000000000000"
} ,
"money" : {
"currency" : "IDR" ,
"amount" : 150000
} ,
"transactionTime" : "2024-12-17T10:55:00" ,
"channel" : {
"paymentMethod" : "QRIS" ,
"qrString" : "https://gateway.smilepayz.com/imge/MER202110293394047135422905011630451D5.img" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=101200112410241325417215"
} ,
"status" : "PROCESSING"
}
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "101200012410241325417215" ,
"merchant" : {
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "1102000000000000"
} ,
"money" : {
"currency" : "IDR" ,
"amount" : 150000
} ,
"transactionTime" : "2024-12-17T10:55:00" ,
"channel" : {
"paymentMethod" : "W_DANA" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=101200112410241325417215"
} ,
"status" : "PROCESSING"
}
{
"code" : "00" ,
"message" : "Successful" ,
"orderNo" : "200110437c4152cbe45cebcacd25" ,
"tradeNo" : "101200112501021320331776" ,
"merchant" : {
"merchantId" : "20011" ,
"merchantName" : "Smilepayz Demo Store" ,
"accountNo" : "11020011202402290943"
} ,
"money" : {
"currency" : "IDR" ,
"amount" : 150000
} ,
"transactionTime" : "2025-01-02T13:20:34+07:00" ,
"channel" : {
"paymentMethod" : "CIMB" ,
"vaNumber" : "1419001332911089" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=101200112501021320331776"
} ,
"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, 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 IDR. amount M Number IDR integer minor units (e.g. 150000 = IDR 150000). payerO Object Payer object per region rules (see Payer model).
Return Penting
Balas hanya dengan string SUCCESS.
Request
{
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "101200012410241325417215" ,
"merchantId" : "20001" ,
"merchantName" : "Smilepayz Demo Store" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "QRIS" ,
"transactionTime" : "2024-12-17T10:55:00+07:00" ,
"status" : "SUCCESS" ,
"money" : {
"currency" : "IDR" ,
"amount" : 150000
} ,
"payer" : {
"name" : "Budi Santoso" ,
"phone" : "6281234567890"
}
}
Selanjutnya
Pengiriman dana (Pay-Out)