Status codes and type definitions

This page is the definitive collection of common status codes, transaction types, and risk data structures shared throughout the Trustly platform, including all back-end API responses and client-side SDK interactions.

Consult this documentation for the precise definition of statuses required for handling asynchronous API responses, troubleshooting transaction failures, and interpreting financial verification data.


Transaction status codes

These codes reflect the current state or reason for failure of a transaction.

Payment provider transaction status codes (SW)

These status codes relate to errors found during validation before the transaction is sent to the ODFI, covering risk and validation issues.

Status CodeDescription
SW010Established
SW013Canceled
SW020Authorization received
SW021Authorization denied (e.g., insufficient funds)
SW051Merchant error (e.g., integration issue, invalid request)
SW052Financial institution error
SW053Internal network error
SW054Suspicious transaction activity
SW055Negative data
SW056Invalid account
SW057Expired split token
SW059Instant transaction rejected due to risk
SW060Bank or network processor is down

User canceled (UC)

These statuses are set when the user cancels the transaction process.

Status CodeDescription
UC010User canceled

Acknowledged communication (AC)

These are the main statuses for ACH and RTP transactions, generally set when user communication is completed or the merchant calls the API directly.

Status CodeDescription
AC100AC pending
AC101AC declined
AC102AC approved
AC103AC error
AC104AC voided
AC105AC processed
AC106AC collected
AC107AC awaiting capture
AC108AC awaiting approval
AC109AC suspended
AC110AC in collection
AC111AC in research
AC112AC disputed
AC113AC uncollected, insufficient funds
AC114AC invalid or closed account
AC115AC other returns
AC116AC none
AC117AC expired
AC118AC settled

System error (SE)

These statuses indicate internal errors related to system functionality.

Status CodeDescription
SE01System in maintenance mode
SE02System error connecting to API services
SE03System error connecting to financial services gateway

Return and decline codes

Code SetRangeDescription
ACH Return Codes (R)R01 to R84Standard ACH return codes 01 to 84.
EFT Decline Codes (Canada)900 to 996Specific decline codes used for Canadian EFT transactions.
TDD Statuses (UK)ARUCS, ARUDD, AUDDISTrustly direct debit specific return codes for the United Kingdom.

API response and internal error codes

These codes indicate system-level failures, invalid requests, and security issues encountered during an API call.

HTTP status codes

Trustly uses conventional HTTP response codes to indicate success or failure of an API request.

HTTP Status CodeDescription
400 Bad RequestOften due to a missing, required parameter.
401 UnauthorizedInvalid accessId or accessKey.
404 Not FoundThis endpoint is not supported or defined by Trustly.
500 Server errorInternal Trustly error.
503 Service UnavailableThe server is currently unable to handle the request due to temporary overloading or server maintenance.

Internal error codes

These codes are returned within the API error response object, providing detail on the failure reason.

Error CodeDescription
100Internal error. An internal database exception occurred when trying to process the request.
150Remote error. A remote error (e.g., the consumer's bank interface is down) occurred when trying to process the request.
200Invalid parameter error. One of the request parameters is invalid (e.g., sending an invalid amount format string).
210This is a duplicate request. It has been ignored (idempotency failure).
300Security error. A generic security error occurred when trying to process the request.
326Expired split token.
330Invalid account.
331Not enough balance.
375Access control error. Occurs when a security parameter (accessId, accessKey or requestSignature) is invalid.
380Invalid Split Token.
390Fraud analysis. Suspicious transaction or negative data.
397splitToken is not valid.

Payment and transaction data types

These data types define the various methods, purposes, and statuses of funds movement.

Payment provider types

These codes define the type of bank connectivity or payment instrument used.

CodeDescription
1Online Banking (Direct connection)
2Manual Electronic Check

Payment types

These values define the intended purpose of the payment.

ValueNameDescription
2DeferredPayment is authorized, but requires a separate Capture API call to debit funds.
3RecurringSame as deferred, but associated with a specific payment agreement.
4DisbursementPayment type used exclusively for mass disbursements.
5VerificationPayment type used solely to verify the customer account outside of the Trustly system.
6RetrievalData retrieval to fetch account and user information without a payment request.

Transaction types

These values describe the specific action taken against a mandate or account.

ValueNameDescription
0ExternalThis transaction is created when the Feedback API is called to update the status of a transaction created with a paymentType of Retrieval.
1AuthorizeThis is a transaction created with paymentType is Deferred or Recurring.
2PayThis is a transaction created with paymentType of Instant.
3CaptureCapture transactions are created with the Capture API.
4RefundRefund transactions are created with the Refund API.
5ReverseA reverse transaction is created when the payment is charged back by the bank (payment provider).
6DepositDeposit transactions are created with the Deposit API.
7ReclaimReclaim transactions are created with the Reclaim API.
8RepresentmentA representment transaction represents an attempt to reprocess a previously denied Capture transaction.
9Tokenization
10PreauthorizationPreauthorization transactions are created with the Preauthorization API.
11Guarantee

Risk, verification, and account data

These definitions are critical for compliance, risk analysis, and advanced API usage.

Verification status

These codes define the current verification state of a transaction.

CodeNameDescription
1AutomaticPayment verification followed Trustly internal rules.
2ToVerifyTransaction is held (status = OnHold) pending merchant approval/investigation.
3VerifiedPayment was verified and approved by the merchant or Trustly.
4RefusedPayment was denied after verification.

Verification types

These codes define the method used to verify an account.

CodeNameDescription
0Not VerifiedThe account was not verified.
1ManualThe account was verified with manual account verification (e.g., Manual Electronic Check and Micro Challenge Deposit).
2Online Banking verificationThe account was automatically verified with the Trustly Online Banking Payment service.
3Database verificationThe account was verified with the Trustly database or a third-party service.

Financial institution account profile values

These values identify the type of bank account being used.

CodeDescription
-1Unknown
0Other
1Checking
2Savings

Financial institution account type values

These values define the ownership profile of the bank account.

CodeDescription
-1Unknown
0Other
1Personal
2Business

FCRA verification third-party score values

This table maps Trustly verification third-party values to a related risk score, used in the United States.

ScoreDescription
0Failed RT validation. Strong indication that this account is invalid for payments.
100Strong indication that this account is invalid for payments.
200This account has recent non-bankable debts.
300History of returns on the account.
400No negative data on this account, but the format appears suspicious.
500No data on this account or format.
600Limited information on the account, but the format appears valid.
700We have seen this account, but did not receive a final disposition on the transaction.
800We have seen this account but not recently.
900This account has been seen recently.
999Highest confidence that this account is valid.

Non-FCRA verification score values

These scores are used for non-FCRA related risk verification.

ScoreDescription
15Known bad bank account.
20Unknown bank account, but format appears valid.
25Unknown bank account, but format appears suspicious.
35Bank account seen but transaction not yet settled (5 days).
45Known good bank account.