Skip to main content
The Boarding API uses the OAuth 2.0 client credentials flow to authenticate requests. You exchange your client credentials for a short-lived access token, then include that token in the Authorization header of every API call.

Before you start

You need a client_id and client_secret issued by Fexco. Contact your Fexco account manager or email merchantsupport@fexco.com to request credentials.

Request an access token

Send a POST request to /oauth/accesstoken on the Boarding API base URL for your environment. See Environments and URLs for instructions to obtain the base URL for your environment. The request body must use application/x-www-form-urlencoded encoding.
The response contains the following fields: Once you have a token, pass it in the Authorization: Bearer header on every Boarding API request. Every request also requires an X-Acquirer-ID header, Fexco provides this value during onboarding. See Board merchants via the REST API.

Token expiry

Access tokens expire. Use the expires_in value returned in the token response to determine their lifetime in seconds. Track the time you received the token and request a replacement before it expires, allowing a safety margin. Use the token request above to obtain a replacement. If a 401 Unauthorized response occurs, request a new token and retry the call once.

Token security

Apply the following practices when handling access tokens:
  • All connections to the Boarding API must use Transport Layer Security (TLS) 1.2 or higher. The API rejects plain HTTP connections.
  • Never include access tokens in URLs, query strings, or application logs.
  • Store your client_id and client_secret using your platform’s secure secret storage, not in source code or configuration files.

Next steps