API reference
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.
Base URL
All API requests should be made to the following base URLs:
Authentication
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.
Core resources
Browse the key resource groups available in the Trustly API:
Paging and filtering
Requests that return multiple items return 25 items per page by default. Use count and startIndex parameters to paginate through results.
Errors
The Trustly API uses conventional HTTP response codes to indicate success or failure: