SNAP QRIS
SNAP QRIS compliant APIs
Get OAuth2 access token for SNAP API authentication
client_credentialsPossible values: Access token generated successfully
2007300Request has been processed successfullyAccess token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Bearer900POST /snap/oauth/v1.0/access-token/b2b HTTP/1.1
Host: devo.finnet.co.id
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"grantType": "client_credentials"
}Access token generated successfully
{
"responseCode": "2007300",
"responseMessage": "Request has been processed successfully",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"tokenType": "Bearer",
"expiresIn": 900
}Generate QR code for payment
Bearer access token
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Content type of request body
application/jsonAccept response format
application/jsonClient's current local time in ISO 8601 format
2024-04-17T12:03:38+07:00Request signature
string_signatureOrigin domain
www.yourdomain.comNumeric string reference number (unique per day)
12345678901234567890123456789012Unique partner identifier
FINPAY-PARTNER-IDPJP's channel ID for device identification
12345Partner reference number
INV112024033108340012600007Merchant ID
FM2103300001Sub-merchant ID
FM2007160001Terminal ID
213141251124QR code validity period
2024-04-17T12:03:38-07:00QR code generated successfully
2004700Request has been processed successfullyReference number
weoOiX7RIjSBA31QGcUxrJLyaKFH0z5TPartner reference number
INV012021QR code content
00020101021226620013ID.FINPAY.WWW01189360077732007160010212FM20071600010303UKE51410014ID.CO.QRIS.WWW0212ID12345678910303UKE520458145303360540410005502025602505802ID5909Test Sogi6015JAKARTA SELATAN61051271062100706finnet630490FFMerchant name
Test DapurQR code URL
https://qrurl?img=12345Terminal ID
213141251124POST /pg/payment/card/v1.0/qr/qr-mpm-generate HTTP/1.1
Host: devo.finnet.co.id
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Accept: application/json
X-TIMESTAMP: 2024-04-17T12:03:38+07:00
X-SIGNATURE: string_signature
ORIGIN: www.yourdomain.com
X-EXTERNAL-ID: 12345678901234567890123456789012
X-PARTNER-ID: FINPAY-PARTNER-ID
CHANNEL-ID: 12345
Content-Type: application/json
Content-Length: 485
{
"partnerReferenceNo": "INV112024033108340012600007",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"FeeAmount": {
"value": "0.00",
"currency": "IDR"
},
"merchantId": "FM2103300001",
"subMerchantId": "FM2007160001",
"terminalId": "213141251124",
"validityPeriod": "2024-04-17T12:03:38-07:00",
"additionalInfo": {
"tips_indikator": "00",
"tips_fixamount": "0",
"tips_percentage": "0",
"note": "",
"qr_type": "12",
"callback_payment": "https://demos.finnet.co.id/apiqrismerchanct/qr/callback-qris-static/index.php"
}
}QR code generated successfully
{
"responseCode": "2004700",
"responseMessage": "Request has been processed successfully",
"referenceNo": "weoOiX7RIjSBA31QGcUxrJLyaKFH0z5T",
"partnerReferenceNo": "INV012021",
"qrContent": "00020101021226620013ID.FINPAY.WWW01189360077732007160010212FM20071600010303UKE51410014ID.CO.QRIS.WWW0212ID12345678910303UKE520458145303360540410005502025602505802ID5909Test Sogi6015JAKARTA SELATAN61051271062100706finnet630490FF",
"merchantName": "Test Dapur",
"qrUrl": "https://qrurl?img=12345",
"terminalId": "213141251124",
"additionalInfo": {
"merchantId": "FM2103300001",
"subMerchantId": "FM2007160001",
"nmid": "123456612388",
"validityPeriod": "2024-04-17T12:03:38-07:00"
}
}Receive payment notification
Bearer access token
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Content type of request body
application/jsonAccept response format
application/jsonClient's current local time in ISO 8601 format
2024-04-17T12:03:38+07:00Request signature
string_signatureOrigin domain
www.yourdomain.comNumeric string reference number (unique per day)
12345678901234567890123456789012Unique partner identifier
FINPAY-PARTNER-IDPJP's channel ID for device identification
12345Original partner reference number
INV112024033108340012600007Original reference number
weoOiX7RIjSBA31QGcUxrJLyaKFH0z5TTransaction date
2024-04-17T12:03:38-07:00Payment notification received
2004700Request has been processed successfullyPOST /pg/payment/card/v1.0/qr/qr-mpm-notify HTTP/1.1
Host: devo.finnet.co.id
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Accept: application/json
X-TIMESTAMP: 2024-04-17T12:03:38+07:00
X-SIGNATURE: string_signature
ORIGIN: www.yourdomain.com
X-EXTERNAL-ID: 12345678901234567890123456789012
X-PARTNER-ID: FINPAY-PARTNER-ID
CHANNEL-ID: 12345
Content-Type: application/json
Content-Length: 210
{
"originalPartnerReferenceNo": "INV112024033108340012600007",
"originalReferenceNo": "weoOiX7RIjSBA31QGcUxrJLyaKFH0z5T",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"transactionDate": "2024-04-17T12:03:38-07:00"
}Payment notification received
{
"responseCode": "2004700",
"responseMessage": "Request has been processed successfully"
}Query payment status
Bearer access token
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Content type of request body
application/jsonAccept response format
application/jsonClient's current local time in ISO 8601 format
2024-04-17T12:03:38+07:00Request signature
string_signatureOrigin domain
www.yourdomain.comNumeric string reference number (unique per day)
12345678901234567890123456789012Unique partner identifier
FINPAY-PARTNER-IDPJP's channel ID for device identification
12345Partner reference number
INV112024033108340012600007Original reference number
weoOiX7RIjSBA31QGcUxrJLyaKFH0z5TMerchant ID
FM2103300001Payment status retrieved
2004700Request has been processed successfullyReference number
weoOiX7RIjSBA31QGcUxrJLyaKFH0z5TPartner reference number
INV012021Transaction status
PAIDTransaction date
2024-04-17T12:03:38-07:00POST /pg/payment/card/v1.0/qr/qr-mpm-query HTTP/1.1
Host: devo.finnet.co.id
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Accept: application/json
X-TIMESTAMP: 2024-04-17T12:03:38+07:00
X-SIGNATURE: string_signature
ORIGIN: www.yourdomain.com
X-EXTERNAL-ID: 12345678901234567890123456789012
X-PARTNER-ID: FINPAY-PARTNER-ID
CHANNEL-ID: 12345
Content-Type: application/json
Content-Length: 215
{
"partnerReferenceNo": "INV112024033108340012600007",
"originalReferenceNo": "weoOiX7RIjSBA31QGcUxrJLyaKFH0z5T",
"merchantId": "FM2103300001",
"additionalInfo": {
"merchantId": "FM2103300001",
"subMerchantId": "FM2007160001"
}
}Payment status retrieved
{
"responseCode": "2004700",
"responseMessage": "Request has been processed successfully",
"referenceNo": "weoOiX7RIjSBA31QGcUxrJLyaKFH0z5T",
"partnerReferenceNo": "INV012021",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"transactionStatus": "PAID",
"transactionDate": "2024-04-17T12:03:38-07:00"
}Refund payment
Bearer access token
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Content type of request body
application/jsonAccept response format
application/jsonClient's current local time in ISO 8601 format
2024-04-17T12:03:38+07:00Request signature
string_signatureOrigin domain
www.yourdomain.comNumeric string reference number (unique per day)
12345678901234567890123456789012Unique partner identifier
FINPAY-PARTNER-IDPJP's channel ID for device identification
12345Partner reference number for refund
REF123456Original partner reference number
INV112024033108340012600007Original reference number
weoOiX7RIjSBA31QGcUxrJLyaKFH0z5TRefund reason
Customer requestPayment refunded successfully
2004700Request has been processed successfullyRefund reference number
REF789012Partner reference number
REF123456Original partner reference number
INV112024033108340012600007Original reference number
weoOiX7RIjSBA31QGcUxrJLyaKFH0z5TRefund date
2024-04-17T12:03:38-07:00POST /pg/payment/card/v1.0/qr/qr-mpm-refund HTTP/1.1
Host: devo.finnet.co.id
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Accept: application/json
X-TIMESTAMP: 2024-04-17T12:03:38+07:00
X-SIGNATURE: string_signature
ORIGIN: www.yourdomain.com
X-EXTERNAL-ID: 12345678901234567890123456789012
X-PARTNER-ID: FINPAY-PARTNER-ID
CHANNEL-ID: 12345
Content-Type: application/json
Content-Length: 303
{
"partnerReferenceNo": "REF123456",
"originalPartnerReferenceNo": "INV112024033108340012600007",
"originalReferenceNo": "weoOiX7RIjSBA31QGcUxrJLyaKFH0z5T",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"reason": "Customer request",
"additionalInfo": {
"merchantId": "FM2103300001",
"subMerchantId": "FM2007160001"
}
}Payment refunded successfully
{
"responseCode": "2004700",
"responseMessage": "Request has been processed successfully",
"referenceNo": "REF789012",
"partnerReferenceNo": "REF123456",
"originalPartnerReferenceNo": "INV112024033108340012600007",
"originalReferenceNo": "weoOiX7RIjSBA31QGcUxrJLyaKFH0z5T",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"transactionDate": "2024-04-17T12:03:38-07:00"
}Last updated

