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

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.



Did this page help you?