Skip to content
Authentication

Why is my API request rejected with an authentication error?

Usually the access token has expired or the signature doesn't match what we calculate. Check these in order.

  1. If the access token has expired, get a new one from the refresh-token endpoint using your refresh token. If the refresh token has expired too, check the authentication guide, or email support@pexx.com.
  2. Check the timestamp is the current Unix time in seconds, not milliseconds, and that your server clock is correct.
  3. Use a new nonce for every request. A nonce you've already used is rejected.
  4. Hash the request body exactly as the guide describes, and use the same access token in the string you sign as in the authorisation header.
  5. Check you're using keys for the right environment: sandbox keys don't work in production.

If it still fails, email support@pexx.com with your business name, the endpoint and the X-Trace-Id value from the response header. Never send your private key or secret key.

Was this helpful?

Contact

Still stuck?

Talk to a person. We'll never ask for your passcode, one-time codes or full card details.

PEXX API

Start with the docs

Guides and the API reference are at docs.pexx.com. For your integration, email us with your business name and the request or payout reference.