v1.0 Guides API Reference Search ⌘K API Getting Started Transaction ID Event Notifications (Webhooks) Securing Requests Pagination & Filtering Type Definitions Errors Recurring Payments SDK Getting Started Establish Data Securing Requests Displaying the Bank Widget Launching the Lightbox SDK Callback Events Handling the Redirect Content Strings Type Definitions Errors USE CASES Deferred Payments Disbursement Using Account On-File Transactions Account Retrieval Server-Side Establish Tokenization Instant Payouts Trustly Subscribe REPORTING Reporting BRANDING & EXPERIENCE Branding Mark Library Getting Started Get started with the Trustly API. Suggest Edits Welcome to the Trustly API! You can use our API, in conjunction with the SDK, to integrate Online Banking into your application. We have language bindings in Shell and JavaScript. If you require any assistance, please contact your Trustly Integration Team or email us at us.support@trustly.com. Base URLs 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. Production: https://trustly.one/api/v1 Sandbox: https://sandbox.trustly.one/api/v1 📘 Deprecated The following base URLs have been deprecated, but are supported until further notice. Production: https://paywithmybank.com/api/v1 Sandbox: https://sandbox.paywithmybank.com/api/v1 Authentication 🔒 All API requests are made over HTTPS and must be authenticated. To authorize, use this code: Shell # 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 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). accessId and accessKey are combined into a string: accessId:accessKey The resulting string is encoded using Base64 The authorization header is the string Basic followed by the encoded string. Example: Authorization: Basic SUZfWU9VX0FSRV9SRUFESU5HX1RISVM6WU9VX0dPVF9JVA== Updated 5 months ago Did this page help you? Yes No