Prerequisites
Before you begin, ensure you have the following resources:- A valid Sign Key (shared by Nayax, typically 16 characters)
- The associated 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: {SignKeyID}. See the example below: - Join the
SparkTransactionIdfrom your request body with yourSign Key, separated by a semicolon (;), in the following format:SparkTransactionId;SignKey - 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 URL and DomainThe Spark API base URL is
https://{domain}/api, where {domain} is your Nayax-assigned hostname. Nayax provides a QA domain during sandbox setup and a production domain after certification. Contact your Nayax integration engineer if you have not received your domain.