Authenticating API Requests
To maintain the Niobi payment system security and integrity, the api authentication used is generating a unique signature for each request. This signature is generated by using the unique secret key generated by a user in their Niobi App. Once sent, the signature is verified by Niobi upon receipt and then subsequently the payment request is approved.
Signing Requests
To ensure the security and integrity of your communication with the Niobi API, it’s essential to sign each request. The complete step by step process for doing this is as follows:
- Create a request payload for a specific endpoint (for this example, we’ll use the unified collections api).
- Pass the parameters section under the request payload for the signature generation api.
- Add the salt value, sender name (the name of your integration) and your client_id.
- Generate the signature by calling the endpoint. The new request payload will be shared within the response including the signature.
- Pass the obtained request payload within the specific endpoint.
Verifying the Signature
To verify the signature, you can pass the payload obtained from the generate signatre response and pass through the verify signature api endpoint. The expected response is as shown below:
Generating Signatures using Code
Alternatively, if you prefer generating the signature using code, please read more under the Generating and Verifying Signatures Section