For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
GuidesAPI ReferenceSDKs
GuidesAPI ReferenceSDKs
  • Get Started
    • Overview and Solutions
    • Choose an Integration
    • Quickstart
    • Branding Guidelines
    • Get Support
  • Accept Payments
    • Instant Payments
    • Trustly Pay
    • Recurring Payments
    • Scan and Pay
    • Remember Me
    • Payment Integration Checklist
  • Send Money
    • Send Payouts Using Online Banking
    • Send Payouts Using Account Information
    • International Transfers
  • Retrieve Data
    • Verify Accounts Using Online Banking
    • Verify Accounts Using Micro-Deposits
    • Retrieve Bank and User Information
    • Tokenize Bank Information
    • Trustly ID
    • Insights Data
  • Core Concepts
    • Key Concepts
    • The Establish Data Object
    • Transactions and Transaction IDs
    • Tokens and Account Security
    • Redirect URLs and Return Flow
    • Webhooks and Events
    • Content Strings
  • API Fundamentals
    • Authentication and OAuth
    • Secure Requests and Signature Validation
    • Idempotency
    • Testing
    • Status codes and type definitions
  • Manage Your Integration
    • Go-Live Checklist
    • Merchant Portal
    • Reports and Reconciliation
    • Refresh Bank Authorization
    • Override Risk Declines
    • VIP Tiers
    • Financial Institution Status
Dashboard
Products
PaymentsDataPayouts
Company
AboutCareersContact Sales

Terms of Use | Privacy Policy | © 2026 Trustly, Inc.

Developer-friendly docs for your API
GitHub|Contact Support|Business Help Center|Merchant Portal
Terms of Use|Privacy Policy|© 2026 Trustly, Inc.
Developer-friendly docs for your API
LogoLogo
North AmericaEurope
North AmericaEurope
On this page
  • Availability
  • Capture and deposit API usage
  • Duplicate request response
  • Idempotency edge cases
API Fundamentals

Idempotency

|View as Markdown|Open in Claude|
Was this page helpful?
Previous

Encrypt a field value

Next

Testing

Built with

Idempotency helps merchants mitigate operational or financial issues caused by accidental duplicate API calls.

Idempotency requires that the merchantReference field is unique per merchant and per environment. The API verifies this uniqueness and returns an error if the value is a duplicate.

For verification workflows, Trustly recommends using unique merchant references for captures and verifications. This prevents validation errors when reusing a reference from a capture that achieved an Authorized status.

Availability

Idempotency protection applies to transactions that reach the Authorized, Processed, or Completed status. This validation is active for the following transaction types:

  • Pay
  • Authorize
  • Capture
  • Deposit

If you are unable to support the unique merchant reference requirement, please contact support.

Capture and deposit API usage

To execute the Capture API and Deposit API requests, you must pass the following fields:

  • splitToken: The Split Token received from the Bank Authorization Notification.
  • amount: The amount to be captured or deposited.
  • merchantReference: Your specific, unique identifier for this transaction . This value appears in Event Notifications and Reports.

Duplicate request response

If a duplicate merchantReference is sent for a transaction that is already complete with a status of Authorized,Processed, or Completed, the API ignores the request and returns the following response:

CodeDescription
210This is a duplicate request. It has been ignored

Idempotency edge cases

This following tables details specific transaction scenarios and statuses where the duplicate merchantReference validation is either not applied or requires special consideration.

ScenarioIdempotency ValidationRule
RefundsNot applied.The duplicate merchantReference validation does not apply to the Refund API.
Pending AuthorizationNot applied.If the bank authorization is still pending, the same bank authorization can be used again.
Canceled AuthorizationNot applied.If the bank authorization is canceled, the same bank authorization can be used again.
Successful AuthorizationApplied.If the bank authorization is successful, the same bank authorization cannot be used again using the same merchantReference.