Authentication

Authentication

General Information

Token Requirements

  • Obtain a new token before making API requests via the /token endpoint.
  • Tokens expire after the time specified in the expires_in field (in seconds).
  • Use the token in the Authorization header: Authorization: <access_token>.

Security Headers

All requests require the following headers:

  • apikey: Your API key (provided by Fiserv).
  • x-timestamp: Current request timestamp (prevents replay attacks).
  • x-request-id: Unique UUID for the request (enables idempotency and tracing).
  • x-hmac-signature: HMAC-SHA256 signature of APIKEY + TIMESTAMP + REQUEST_BODY + URL_PATH (Base64-encoded).

POST /token

Authentication Token generation endpoint, which is required for all calls.
Obtain the authentication token using a client_secret and client_id, send it via application/x-www-form-urlencoded, and use the Bearer token in subsequent requests.

Request Fields
NameLocated inDescriptionMandatoryType
apikeyheaderAPI Keyyesstring
x-timestampheaderDate/time of the request (used to prevent replay attacks)yesstring
x-request-idheaderRandom ID used to identify the requestyesstring
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)yesstring
Request Example

Content-Type: application/x-www-form-urlencoded

FieldValue
client_iduser1234
client_secretuserPassword@123
Response Fields
FieldTypeDescription
access_tokenstringJWT token for authentication
expires_inintegerToken expiration time in seconds
Response Example
{
  "access_token": "your-access-token",
  "expires_in": 300
}

Additional Information

HMAC

The HMAC must be generated using the SHA-256 algorithm and the private key provided by Fiserv, using the following concatenated fields:

APIKEY + TIMESTAMP + REQUEST_BODY + URL_PATH