Authentication

Please contact developers@beadpay.io to acquire your authentication credentials.

Login

Users with different roles can be authenticated using this endpoint. For the most part, integrators will be authenticating on behalf of a Terminal. In this case, the username will be {terminalId}@beadpay.io and the password will be the terminal's password.

The API will respond with the OAuth 2.0 JSON Web Token (JWT) bearer token which should be used in all subsequent calls to API.

The token is valid for 1 hour and needs to be refreshed before it expires using the Refresh Token endpoint.

To access protected endpoints, after receiving the JWT token, pass it as a bearer token in the Authorization header of the request.

Example API call using curl:

curl -X 'POST' \
  'https://api.qa.devs.beadpay.io/auth/refresh-token' \
  -H '' \
  -H 'Content-Type: application/json' \
  -d '{
  "refreshToken": "{refresh_token}"
}'

Refresh Token

Note that this endpoint is protected and you need to pass JWT token in the Authorization header to access it.

Last updated