token

/token is used to authenticate API integrators for every Aeropay endpoint.

/token returns a transient JSON web token (JWT) to authorize access to the AeroPay API. Tokens last for 30 minutes and are required in the header 'authorizationToken'.
This header should look as follows: Bearer {{token}}

'scope' determines who is acting on the system. 'scope' can be merchant or userForMerchant, and will determine what endpoints are available.

-'merchant' scope, used for merchant calls. The id parameter is required.

-'userForMerchant' scope, is used to act on behalf of users created by your merchant. An additional userId is required along with all of the merchant credentials (api_key, api_secret, id)

*NOTE: Aeropay errors come back with a 200 response, but a 'success' value of false

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

API Key or user email

string
required

API Secret or user password

string
enum
required

Type of token requested

Allowed:
string

Merchant Id. Required for merchant or userForMerchant token.

string

Id of user. Required for userForMerchant token.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json