Get Started
How to make an authenticated request against the Interchecks Payments API.
Environments
The API has two environments. Each environment has different credentials and endpoint URLs.
- Sandbox: https://test.api.interchecks.io
- Production: https://prod.api.interchecks.io
Authentication
The Interchecks Payments API and the Disputes API add-on use OAuth 2.0 for authentication and authorization. Follow these sections to make an authenticated request against the Interchecks Payments API or the Disputes API add-on.
Environments
The API has two environments. Each environment has different credentials and endpoint URLs.
- Sandbox: https://test.api.interchecks.io
- Production: https://prod.api.interchecks.io
Authentication
The Interchecks Payments API and the Disputes API add-on use OAuth 2.0 for authentication and authorization.
Authentication Workflow
The typical two-legged OAuth processing flow:
- An OAuth client initiates a request with an authorization server and receives an access token.
- The OAuth client uses the access token to access protected resources on the resource server.
Get Your Credentials
Your authorization credentials are a Client ID and Secret. Create and download them from the Payer Portal. Sandbox and production have separate credentials.
Each set of credentials works with one API. Choose the account type when you create them:
- API Account: for the Payments API. Use these credentials for recipients, payment accounts, payments, and transactions.
- API Dispute Account: for the Disputes API add-on. Use these credentials for dispute calls only.
If you use the Disputes API, create both. A dispute includes the disputed transaction's main fields, but not the full transaction record; for anything else about the transaction, call the Payments API with your payments credentials.
Request a separate access token with each set. If you use a Payments API access token to call the Disputes API, the request returns 403.
Sandbox and production have separate credentials, so a dispute integration running in both environments needs four sets: payments and disputes in each.
Request an Access Token
To get an access token, send a POST request to the token endpoint. The sandbox and production environments each have their own endpoints:
- Sandbox https://test.api.interchecks.io/api/v2/oauth2/token
- Production https://prod.api.interchecks.io/api/v2/oauth2/token
See Get Access Token for the request and response details. The response contains an access_token as a JWT.
Use the Access Token
Include the access token in the Authorization header on every API request, prefixed with Bearer:
Authorization: Bearer <access_token>
Handling Token Expiration
Access tokens last 15 minutes.
When the Payments API or the Disputes API returns a 401 HTTP Status Code, re-authenticate using the oauth2/token endpoint to retrieve a new access token.
For long-running integrations, cache the access token along with its expiration timestamp and request a new one before the current token expires to avoid a 401 HTTP Status Code.tion.
Authentication Workflow
The typical two-legged OAuth processing flow:
- An OAuth client initiates a request with an authorization server and receives an access token.
- The OAuth client uses the access token to access protected resources on the resource server.
Get Your Credentials
Your authorization credentials are a Client ID and Secret. Create and download them from the Payer Portal. Sandbox and production have separate credentials.
Each set of credentials works with one API. Choose the account type when you create them:
- API Account: for the Payments API. Use these credentials for recipients, payment accounts, payments, and transactions.
- API Dispute Account: for the Disputes API add-on. Use these credentials for dispute calls only.
If you use the Disputes API, create both. A dispute includes only a summary of the disputed transaction; to retrieve the full transaction, call the Payments API with your payments credentials. Request a separate access token with each set.
Sandbox and production have separate credentials, so a dispute integration running in both environments needs four sets: payments and disputes in each.
Request an Access Token
To get an access token, send a POST request to the token endpoint. The sandbox and production environments each have their own endpoints:
- Sandbox https://test.api.interchecks.io/api/v2/oauth2/token
- Production https://prod.api.interchecks.io/api/v2/oauth2/token
See Get Access Token for the request and response details. The response contains an access_token as a JWT.
Use the Access Token
Include the access token in the Authorization header on every API request, prefixed with Bearer:
Authorization: Bearer <access_token>
Handling Token Expiration
Access tokens last 15 minutes.
When the Payments API or the Disputes API returns a 401 HTTP Status Code, re-authenticate using the oauth2/token endpoint to retrieve a new access token.
For long-running integrations, cache the access token along with its expiration timestamp and request a new one before the current token expires to avoid a 401 HTTP Status Code.
Updated about 7 hours ago

