Authentication

🔒

All API requests are made over HTTPS and must be authenticated.

To authorize, use this code:

# With curl, you can just pass the correct username and password with each request
curl --user accessId:accessKey https://sandbox.trustly.one/api/v1

Make sure to replace accessId and accessKey with your credentials.

Your authentication to the Trustly API requires your provisioned credentials (accessId and accessKey).

Authentication uses the HTTP Basic Auth standard with your accessId is the username and your accessKey is the password (when using cURL, you can specify them as --user accessId:accessKey).

  1. accessId and accessKey are combined into a string: accessId:accessKey
  2. The resulting string is encoded using Base64
  3. The authorization header is the string Basic followed by the encoded string.

Example:

Authorization: Basic SUZfWU9VX0FSRV9SRUFESU5HX1RISVM6WU9VX0dPVF9JVA==


Did this page help you?