NICEPAY API
API SNAP BI
SNAP API Testing
6min
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
Updated 16 May 2024
Did this page help you?