Prerequisites
Before you begin, ensure you have the following resources provided by Nayax:- A valid Header Hash Key (typically 16 characters), also known as Sign Key.
- The associated Header Hash Key ID, also known as Sign Key ID.
Authenticate requests
Once you have the required resources, you can start authenticating your API requests to Spark by following the steps below:- Combine the static string
IntegratorIdwith your ID in the following formatIntegratorId: {HeaderHashKeyID}. See the example below: - Join the
SparkTransactionIdfrom your request body with yourHeader Hash Key, separated by a semicolon (;), in the following format:SparkTransactionId;HeaderHashKey - Perform a SHA-256 hash on the resulting string using UTF-8 encoding. Resulting hash:
- The final header should look like the following:
Request example (cURL)
See an example request for the/StartAuthentication endpoint:
Base URLThe Spark API base URL is
https://nayax-spark-dmz.nayax.com/api. The same host serves the integration and production environments.See also
Interactive authentication tool
Build and inspect ciphers and signature headers in your browser, no code required.
Payment flows
How authentication fits into the full Spark transaction sequence.