NICEPAY API
API SNAP BI
SNAP API Testing
6 min
API Testing proceeds to testing several payment method using API SNAP before setup on the system. Several API SNAP available for Swagger testing format such as:
API Name | Swagger File | API Information |
---|---|---|
Access Token | ||
SNAP Virtual Account API | ||
QRIS API | ||
E-Wallet API | Coming Soon | |
Payout API |
The following is the steps to proceed with the SNAP API Testing.
- Generate Access Token that will be used on Authorization part.
- Fill in the available Header Parameter and Body Parameter form.
- Press the Try It button to send the request parameter and get response parameter.
- Response parameter could be seen on the bottom right side of the display.
X-Signature asymmetric uses to request Access Token Header. This token has the following term:
SHA256withRSA (Private_Key, stringToSign) stringToSign = client_ID + “|” + X-TIMESTAMP
X-Signature symmetric uses as header to request parameter on every API sent to the NICEPAY system. Following is the sample steps to generate X-Signature.
- Construct EncodeRequestBody using payload, HexEncode dan SHA256 Lowercase(HexEncode(SHA256(minify(RequestBody))))
- Construct payload signature concat at field using ":" separator HTTPMethod:EndpointUrl:accessToken:EncodeRequestBody:TimeStamp
1. Sample URL
2. Sample Generate
3. Sample Create Hash
4. Sample signature base64
5. Sample Result
1The result are X-SIGNATURE : mYyscWBs00bm0TJQ/xY7Uu1Goh8qXJyYSlo88rFrhQ+mlyQkMtq
2NKMlZDpS+
Updated 16 May 2024
Did this page help you?