OAuth
Generate a new access token given the client credentials. The "client_id" (username) and "client_secret" (password) must be passed as Basic Auth credentials.
Authorizations
Body
grant_typestringRequired
Must pass 'client_credentials'
Responses
200
Successfully generated access token
application/json
403
Invalid credentials
application/json
post
POST /oauth/token HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Basic username:password
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 21
"grant_type='text'"
{
"access_token": "580defdbe1d21e0001c67e5c2a0a6c98ba8b4a059dc5825388501574",
"expires_in": 3600,
"token_type": "bearer"
}
Was this helpful?