Welcome to the Trustly API! You can use our API, in conjunction with the SDK, to integrate Online Banking into your application.
Trustly provides a sandbox and a production environment. To switch between the different environments, use the different base URLs. The authentication credentials for both environments are the same. When you are ready to go live, change the sandbox URL to the production URL.
The following base URLs have been deprecated, but are supported until further notice.
All API requests are made over HTTPS and must be authenticated.
To authorize, use this code:
# Use curl to 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 3 months ago