API QRIS Static Code
About 1 min
Tips
The request frequency must be less than 10 times per minute, otherwise access will be prohibited.
Introduce
Service Code | 95 |
---|---|
Name | API QRIS Static Code |
Version | 1.0 |
HTTP Method | POST |
Path | .../{version}/qris-sc |
Request Header
Field | Attribute | Type | Description |
---|---|---|---|
Content-Type | Mandatory | String | String represents indicate the media type of the resource (application/json) |
Authorization | Mandatory | String | String starts with keyword “Bearer ” followed by access_token (e.g. Bearer eyJraWQiOi...Jzc29zIiiY) |
X-TIMESTAMP | Mandatory | String | Merchant's current local time in yyyy-MM-ddTHH:mm:ssTZD format |
X-SIGNATURE | Mandatory | String | Created using Symmetric signature HMAC_SHA512 algorithm. Refer to:Authentication Specification |
ORIGIN | Optional | String | Origin Domain www.yourdomain.com |
X-PARTNER-ID | Mandatory | String | Unique ID for a partner as MerchantID |
X-EXTERNAL- ID | Mandatory | String | Numeric String. Reference number that should be unique in the same day |
CHANNEL-ID | Mandatory | String | PJP’s channel id Device identification on which the API services is currently being accessed by the end user (customer) |
Request Parameter
Field | Attribute | Type | Description |
---|---|---|---|
merchant | Mandatory | Merchant | Json String merchant information. Refer to: Merchant |
shopName | Mandatory | String | String shopName |
whatsAppNotification | Optional | String | String whatsAppNotification. when finish notification by whatsapp No |
additionalInfo | Optional | String | String Additional Information |
Response Parameter
Field | Attribute | Type | Description |
---|---|---|---|
responseCode | Mandatory | String(32) | String Response code. success=2009500 |
responseMessage | Mandatory | String(64) | String Response description |
merchant | Mandatory | Merchant | Json String merchant information. Refer to: Merchant |
shopName | Mandatory | String(32) | String Additional Information |
whatsAppNotification | Optional | String | String Additional Information |
qrisSc | Mandatory | Object | Json String |
additionalInfo | Optional | String | String Additional Information |
Sample Parameter
Sample Request
curl -X POST 'https://sandbox-gateway.smilepay.id/v1.0/qris-sc' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE3NDAzODkzMTIsImV4cCI6MTc0MDM5MDIxMiwiaWF0IjoxNzQwMzg5MzEyLCJNRVJDSEFOVF9JRCI6IjEwMDAxIn0.0siaRuJCS6IaT5hzdTaZ-iJ6EtdtW2e7gLUiAEToILo' \
-H 'X-TIMESTAMP: 2025-02-25T11:12:07+07:00' \
-H 'X-SIGNATURE: tPKU6ASLHdt27WnGol2aWp+jwbOE4IJN9bFpUpVp/dOEXplcyZ8T2f5BYUA26+AvmCZB8cKEQ9+L+VFLsuLMag==' \
-H 'ORIGIN: www.yourDomain.com' \
-H 'X-PARTNER-ID: sandbox-10001' \
-H 'X-EXTERNAL-ID: D_1740451365742' \
-H 'CHANNEL-ID: 95221' \
-H 'Content-Type: application/json' \
-d '{
"merchant": {
"merchantId": "sandbox-10001",
"merchantName": "Betty"
},
"shopName": "shop_name_3837",
"whatsAppNotification": "62895359900000",
"additionalInfo": "additional info"
}'
Sample Response
{
"responseCode": "2009500",
"responseMessage": "Success, trade request is successful",
"merchant":{
"merchantId": "sandbox-10001",
"merchantName": "Betty"
},
"shopName": "shop_name_3837",
"whatsAppNotification": "62895359900000",
"qrisSc": {
"scText": "",
"scUrl": "scUrl"
},
"additionalInfo": "additional info"
}