v1

latestOpenAPI 3.0.02026-07-24126202516.7 KB
Authentication

Token

Exchange client application credentials for a bearer token. Please ensure to call the auth issuing server as described at https://developer.assemblypayments.com/reference#authentication

post/tokens

Request body

grant_typestring required

This is a constant value of client_credentials

client_idstring required

This value is supplied to you by Assembly Payments.

client_secretstring required

This value is supplied to you by Assembly Payments.

scopestring required

This value is supplied to you by Assembly Payments.

Example request

{
  "grant_type": "client_credentials",
  "client_id": "10ajtntet1ccghuo8mv9ojglma",
  "client_secret": "hto00nsjk6osurndceon4rsn2irhi8s4lurau5f797d0smb94l6",
  "scope": "im-au-04/cdbf9590-1db6-0139-ac4d-0a58a9feac03"
}

Response

Response body contains an access token with lifetime in seconds and usage information.

access_tokenstring

JWT issued by AWS Cognito.

expires_innumber

Lifetime of access token in seconds.

token_typestring

Authorization header value prefix. This is a constant.

Example response

{
  "access_token": "ey...J9.ey...n0.Iu...7g",
  "expires_in": 3600,
  "token_type": "Bearer"
}
All 126 operations