Overview
The Inventi Payment Platform API uses OAuth 2.0 for authentication. To access the API, you need to obtain a bearer token from the authorization server and include it in all API requests.IP Whitelisting Required: Before you can access the API, your IP address must be whitelisted. Contact
[email protected] to register your IP addresses.Obtaining a Bearer Token
To authenticate with the API, you need to obtain a bearer token using the OAuth 2.0 client credentials flow.Token Request
Use the following cURL command to obtain a bearer token:Parameters
Must be set to
client_credentialsAlways use
api-sepa-gateway-clientYour client secret obtained from the SEPA Dashboard UI
Variables to Replace
<client-name>: Your TenantID assigned by the Inventi team during initial configuration. This can be found in the Configuration Matrix shared with your representative.<client-secret>: Your API client secret, available in the Inventi Payment Platform under API Credentials
Token Response
A successful response will include your access token:Using the Bearer Token
Include the bearer token in theAuthorization header of all API requests with the Bearer prefix.
Authorization Header Format
Example API Request
Here’s an example of using the bearer token to create a SEPA payment:Authentication Flow Diagram
Best Practices
Token Management
- Cache tokens until they expire
- Implement token refresh logic before expiration
- Never expose tokens in client-side code
Security
- Store client secrets securely
- Use environment variables for credentials
- Rotate client secrets regularly
Common Issues
Invalid Client Credentials
If you receive an authentication error, verify:- Your client secret is correct and hasn’t been rotated
- The TenantID (client-name) is correctly specified
- Your IP address is whitelisted
Expired Token
If you receive a 401 Unauthorized error:- Check if 45 minutes have passed since token generation
- Request a new bearer token
- Update your application’s token cache