The Banking API uses OpenID Connect with the OAuth 2.0 standard for authenticating access tokens. Your access token authorizes you to use the Banking API.
This is the endpoint used for production environments:
https://id.aritma.io/connect/tokenFor development use: https://id.dev.aritma.io/connect/token
| Scope | Description |
|---|---|
api | Access to Banking API's |
The OpenID Connect and OAuth 2.0 specifications define so-called grant types (often also called flows - or protocol flows), which specify how a client can interact with the token service.
The Banking API supports client credentials grants which means you need a ClientID and Client Secret which can be exchanged for an access token that grants access to the API.
- Bash
- C#
- Java
- JavaScript
- Python
curl -i -X POST https://id.dev.aritma.io/connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d grant_type=client_credentials \
-d client_id=$CLIENT_ID \
-d client_secret=$CLIENT_SECRET \
-d scope=apiIn the Postman app, complete the following:
- Set the verb to
POST. - Enter
https://id.dev.aritma.io/connect/tokenas the request URL. - Select the
Bodytab. - Select the
x-www-form-urlencodedoption. - In the KEY field, enter
grant_type.- In the VALUE field, enter
client_credentials.
- In the VALUE field, enter
- In the KEY field, enter
client_id.- In the VALUE field, enter your client id.
- In the KEY field, enter
client_secret.- In the VALUE field, enter your client secret.
- In the KEY field, enter
scope.- In the VALUE field, enter
api.
- In the VALUE field, enter
- Select
Send.
Response:
{
"access_token": "\<token>",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "api"
}The token response contains the JWT access token, the number of seconds the token is valid, included scopes and the token type.
| Parameter | Value |
|---|---|
| access_token | The JWT access token |
| expires_in | The number of seconds the token is valid |
| token_type | The type of the token. default: Bearer |
| scope | Space-delimited list of scope permissions |
When you make calls to a REST API, include the access token in the Authorization header with the designation as Bearer. Reuse the access token until it expires.
Authorization: Bearer \<token>