Generate an access token

Get a client credentials grant using our auth server to make requests to the Payments API.

In this tutorial, you will use our authentication server to obtain an access token. You will need this value in your requests to the Payments API v3.

Unlike in our Data API, this grant doesn’t represent a user, but an instance of a client creating a payment.

curl -X POST \
    -d grant_type=client_credentials \
    -d client_id=${client_id} \
    -d client_secret=${client_secret} \
    -d scope=payments \

You get a response as below:

  "access_token": "JWT-ACCESS-TOKEN-HERE",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": "payments"

You can also test this with Insomnia using our guide.