API Reference
Complete reference for the Trustly REST API — integrate account authorizations, payments, and online banking into your applications.
Complete reference for the Trustly REST API — integrate account authorizations, payments, and online banking into your applications.
The Trustly API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
You can use the Trustly API in sandbox mode to test your integration without affecting live data or processing real bank transactions. Your provisioned accessId and accessKey credentials determine whether requests are processed against sandbox or production environments.
Check out the Quickstart guide to set up your first Trustly integration and process a test transaction.
Integrate the Trustly Lightbox into your web or mobile app using our SDKs for Android, iOS, React Native, and WebView.
All API requests should be made to the following base URLs:
The Trustly API uses HTTP Basic Authentication over HTTPS. Authenticate requests using your provisioned accessId (username) and accessKey (password).
For additional security, you can encrypt individual requests and field-level data. See Secure Requests and Signature Validation for details.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Browse the key resource groups available in the Trustly API:
Create, authorize, capture, cancel, and refund transactions. The core resource for all payment flows.
Retrieve payment details and list payments associated with your merchant account.
Tokenize and verify bank accounts for secure, reusable payment methods.
Manage customer records and retrieve customer data across transactions.
Retrieve verified bank account information, user details, and balance data.
Receive asynchronous webhook notifications for transaction state changes and other events.
Requests that return multiple items return 25 items per page by default. Use count and startIndex parameters to paginate through results.
The Trustly API uses conventional HTTP response codes to indicate success or failure: