API
Authentication

Authentication

To ensure the security and integrity of your interactions with our API, we require all requests to be authenticated using an API key. This key uniquely identifies your application and authorizes your API calls.

Obtaining Your API Key

Your API key can be obtained from the Developer Dashboard upon registering your application at https://zeroxpay.com/developer (opens in a new tab). Keep your API key confidential to prevent unauthorized access to your account.

This API key can also be used for webhook authentication.

Using Your API Key

To authenticate your API requests, include your API key in the header of every request:

Authorization: Bearer YOUR_API_KEY_HERE

Replace YOUR_API_KEY_HERE with your actual API key.

Note: All API requests must be made over HTTPS to ensure data security. Unauthorized requests will result in a 401 Unauthorized response.

Example Request

Here's an example of how to make an authenticated request to get store information:

curl -X GET "https://public.zeroxpay.com/v1/store/info" \
     -H "Authorization: Bearer YOUR_API_KEY_HERE"

Ensure to replace YOUR_API_KEY_HERE with your actual API key to successfully authenticate and access the API.