All Autopay APIs are secured using OAuth.

By accessing or using the API, the integrator agrees to be bound by the terms and conditions of Autopay API Usage Agreement.

Getting access

  1. Contact your Autopay representative to acquire the Client Credentials (Client ID and Secret) for your application.
  2. Use the Get access token endpoint to request a short term access token using the Client Credentials.
  3. Your application must send this token in the HTTP Authorization header as a Bearer token when making requests to Autopay APIs:
    Authorization: Bearer eyJxxxxxxxxxxyHI
  4. Each access token expires after a short period of time, usually 10-24 hours. Expiration time is specified in the expries_in field returned with the token. A new token has to be requested after that time to keep using the APIs.
Note: Generating excessive access tokens within the expiration time (i.e. requesting a new one for each request) may lead to termination of API access.

Available resources:

POST - Request an access token

This service allows you to retrieve a short term access token that can be used to authorize Autopay API requests.



Request parameters:

  • The request body must be in JSON format and HTTP headers must include Content-Type: application/json.
Parameter Type Mandatory
client_id string yes
client_secret string yes
audience string yes (must always be "")
grant_type string yes (must always be "client_credentials")

Example request:


Success response:

HTTP Code: 200 OK

Parameter Type Description
access_token string Access token
scope string Autopay APIs accessible with this token
expires_in integer Time until expiration in seconds (86400 seconds = 24 hours)
token_type string Type of the access token (Bearer)

Example success response:


Error messages

Parameter Type
error string
error_description string

Example error response

Error response in case of invalid values in the client_id or client_secret fields:

HTTP Code: 401 Unauthorized

    "error_description": "Unauthorized"