Authorization header of every API call.
Before you start
You need aclient_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 aPOST 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.
- Request
- Response
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 theexpires_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_idandclient_secretusing your platform’s secure secret storage, not in source code or configuration files.
Next steps
- Certificate and JWT authentication: the authentication method used by the Rate Service Connect rate service.
- Merchant boarding endpoints: the Boarding API endpoints that use OAuth 2.0 authentication.
- Error handling: how the Boarding REST API reports authentication errors and other failures.
