Last update: 08.2024
The NPGW API has been created using the principles of REST. It will accept and return JSON-encoded bodies and responses, while using standard HTTP response codes & authentication.
All transaction data should only contain ASCII characters.
Use and review the OpenAPI specification to explore the NPGW APIs via:
Itβs recommended to utilize the classic Swagger toolset; upload the definition to the Swagger Editor or SwaggerHub.
Alternatively you can use Postman to import the API definition and create your personal collection of requests.
<aside> π Sandbox
https://api-staging.npgw.xyz/merchant-v1/
</aside>
<aside> π Production
Available from Support
</aside>
Each API request that you make to NPGW is processed through an API credential linked to your company account.
merchantId
.The first step for any NPGW API interaction is to validate yourself with the identity service and obtain an access token. This token allows you to execute operations on the gateway APIs with authority, and whilst a single token will expire after 15 minutes, you can use your Merchant Service Account to generate one at any time.
Your Merchant Service Account carries many privileges, so be sure to keep it secure! Do not share your access credentials in publicly accessible areas such as GitHub, client-side code, and so forth.