cURL
curl --request POST \ --url https://api.myxspend.com/v1/auth/login \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>" } '
{ "email": "<string>", "accountId": "<string>", "roles": [ "<string>" ], "token": "<string>", "redirectPath": "<string>" }
Authenticate and retrieve a bearer token and headers
Get your details to use for future Process Payments. Note, your API Key (X-API-KEY) and Company Id (X-COMPANY-ID) are returned within the response headers
Email address used to login
Password used to login
Successful response
Email address of logged in user
Account Id (not to be confused with Company Id)
Array of roles assigned to the user
Bearer token
Path to redirect after login