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
UC01User canceled the transaction at bank selection page
UC02User canceled the transaction at login page
UC03User canceled the transaction at invalid login page
UC04User canceled the transaction at challenge question page
UC05User canceled the transaction at invalid answers for challenge questions page.
UC06User canceled the transaction at MFA page
UC07User canceled the transaction at invalid MFA page
UC08User canceled the transaction at account selection page
UC09User canceled the transaction at error page
UC10User canceled the transaction at partial account number page
UC11User canceled the transaction at select account location page
UC12User canceled the transaction because it does not have a bank on the list
UC13User canceled the transaction at login with captcha page
UC14User canceled the transaction at captcha validation page
UC15User canceled the transaction at manual account input page
UC16User canceled the transaction at manual account confirmation page
UC17User canceled the transaction at MCD confirmation page
UC18User canceled the transaction at MCD validation page
UC19User canceled the transaction at account profile input page
UC20User canceled the transaction at no dynamic balance page
UC21User canceled the transaction at partial account not supported page
UC22User canceled the transaction at security script page
UC23User canceled the transaction at account not supported page
UC24User canceled the transaction at authorize page with exception
UC25User canceled the transaction at bad account page
UC26User canceled the transaction at the bank's reset password screen
UC27User canceled the transaction because the bank was unavailable
UC28User canceled the transaction at an external screen
UC29User canceled the transaction due to a timeout
UC30User canceled on the manual entry screen after an invalid routing or account number entry
UC31User canceled on the manual entry screen due to related information (SWIFT code or address) not being found
UC32User canceled the transaction at the maintenance page
UC33User canceled the transaction at non-eligible currency error page
UC34User canceled the transaction at Connect to your bank (OAuth login) page
UC35User canceled the transaction at Waiting for your approval page
UC36User canceled the transaction at VAN info page
UC37User canceled the transaction at widget within Lightbox page

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

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

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

Payment Response Consumer Messaging

Use the following consumer codes and language in applicable user experiences and messaging.

Response CodeConsumer Decline CodeConsumer Decline Reason Details
SW013User CancelledThis transaction was cancelled partway by you, your browser or your device.
SW021Insufficient FundsTransaction unsuccessful. We are unable to complete your transaction due to insufficient funds in your account. Please a) add funds to your account, b) Use another account at the same bank, c) Or, sign in to another bank
SW051Merchant ErrorTransaction unsuccessful: We're sorry. The transaction could not be completed because of a technical error on the merchant's side.
SW052Bank ErrorTransaction unsuccessful: We're sorry. The transaction could not be completed because of a technical error on the bank's side.
SW053Network ErrorTransaction unsuccessful: We're sorry. The transaction could not be completed because of a technical error from the network.
SW054Security ControlsSecurity Alert: We detected some unusual activity and as a result, this transaction was not completed. To protect consumers and merchants, Trustly employs risk mitigation and fraud prevention tools to spot suspicious activity. Please see Trustly's FAQs for further information on Trustly's risk decisioning process.
SW055Security ControlsSecurity Alert: We detected some unusual activity and as a result, this transaction was blocked. To protect consumers and merchants, Trustly employs risk mitigation and fraud prevention tools to spot suspicious activity. Please see Trustly's FAQs for further information on Trustly's risk decisioning process.
SW056Unsupported Account TypeInvalid Account: To comply with Federal, state, or local regulations, Trustly does not currently support this type of account.
SW059Security ControlsSecurity Alert: We detected some unusual activity and as a result, this transaction was not completed. To protect consumers and merchants, Trustly employs risk mitigation and fraud prevention tools to spot suspicious activity. Please see Trustly's FAQs for further information on Trustly's risk decisioning process.
SW060Bank ErrorTransaction unsuccesful: We're sorry. The transaction could not be completed because of a technical error on the bank's side.

Risk, verification, and account data

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

Verification status

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

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.