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
accessKeywith your credentials.
Your authentication to the Trustly API requires your provisioned credentials (
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
accessKeyare combined into a string:
- The resulting string is encoded using Base64
- The authorization header is the string Basic followed by the encoded string.
Authorization: Basic SUZfWU9VX0FSRV9SRUFESU5HX1RISVM6WU9VX0dPVF9JVA==
Updated 4 months ago