LinkSDK statuses

The SDK callback receives a CallbackData object with two status fields:

  • status — the top-level outcome of the session, one of SUCCESS, ERROR, CANCELLED, REDIRECT, LINK_CLOSED_PROGRAMMATICALLY. Switch on this in your UI code.
  • secondary_status — the detailed, machine-readable status returned by the bank or the Lean API. Use this to log support diagnostics or to distinguish between different ERROR causes.

This page lists every secondary_status value the SDK can surface. For the top-level status enum and the rest of the callback fields, see Config reference → callback.

Secondary status reference

StatusReason
OKSuccessful connection
ACTIVESuccessful connection
ACCEPTED_BY_BANKBank confirmed payment initiation
PENDING_WITH_BANKPayment is pending with the bank
FAILEDGeneric failure
UNKNOWNGeneric failure
REJECTED_BY_BANKBank rejected the operation
MFA_ATTEMPTS_EXHAUSTEDUser has attempted too many MFAs
INVALID_CREDENTIALSUser entered incorrect credentials
CREDENTIALS_UPDATE_REQUIREDUser has updated their username / password
MFA_REQUIREDUser needs to enter an OTP
INVALID_MFAUser entered an incorrect OTP
REQUIRES_LOGIN_MFAUser needs to enter an OTP
AWAITING_LOGIN_MFA_TOKENUser needs to enter an OTP
INVALID_LOGIN_MFAUser needs to enter an OTP
AWAITING_PAYMENT_MFA_TOKENUser needs to enter an OTP
INVALID_PAYMENT_MFAUser needs to enter an OTP
REQUIRES_BENEFICIARY_MFAUser needs to enter an OTP
INVALID_BENEFICIARY_MFAUser entered an incorrect OTP
REQUIRES_MFAUser needs to enter an OTP
AWAITING_APP_AUTHUser needs to confirm the transaction in a third party app
PENDING_BENEFICIARY_COOL_OFFUser's payment source is in a cool off state
AWAITING_END_USER_AUTHORIZATIONUser needs to approve the transaction
REQUIRES_LOGIN_SECURITY_QUESTIONSUser needs to enter security question(s)
INVALID_LOGIN_SECURITY_QUESTION_ANSWERUser entered incorrect security question answer(s)
REQUIRES_BENEFICIARY_SECURITY_QUESTIONSUser needs to enter security question(s)
INVALID_BENEFICIARY_SECURITY_QUESTION_ANSWERUser entered incorrect security question answer(s)
SECURITY_QUESTION_ATTEMPTS_EXHAUSTEDUser has exhausted security question answer attempts
SECURITY_QUESTION_ANSWER_REQUIREDUser needs to enter security question(s)
INVALID_SECURITY_QUESTION_ANSWERUser entered incorrect security question answer(s)
AWAITING_PAYMENT_SECURITY_QUESTIONSUser needs to enter security question(s)
INVALID_PAYMENT_SECURITY_ANSWERSUser entered incorrect security question answer(s)
SECURITY_QUESTION_ANSWER_ATTEMPTS_EXHAUSTEDUser has exhausted security question answer attempts
PAYMENT_SOURCE_ACCOUNT_BALANCESUser requested account balances
PAYMENT_SOURCE_ACCOUNT_BALANCES_OKUser recieved account balances
PAYMENT_SOURCE_ACCOUNT_BALANCES_REQUIRES_MFAUser prompted for OTP to view latest balances
PAYMENT_SOURCE_ACCOUNT_BALANCES_INVALID_MFAUser entered incorrect MFA to view latest balances
PAYMENT_SOURCE_ACCOUNT_BALANCES_REQUIRES_SECURITY_QUESTION_ANSWERUser prompted for security questions to view balances
PAYMENT_SOURCE_ACCOUNT_BALANCES_INVALID_SECURITY_QUESTION_ANSWERUser entered incorrect details for a security question
PAYMENT_SOURCE_ACCOUNT_BALANCES_FAILEDLean was unable to update a user's account balances
PAYMENT_SOURCE_ACCOUNT_BALANCES_CREDENTIALS_UPDATE_REQUIREDUser needs to update credentials
PAYMENT_SOURCE_ACCOUNT_BALANCES_INVALID_CREDENTIALSUser entered incorrect credentials
PAYMENT_SOURCE_ACCOUNT_BALANCES_EXHAUSTED_SECURITY_QUESTION_ATTEMPTSUser exhausted security question answer attempts
PAYMENT_SOURCE_ACCOUNT_BALANCES_EXHAUSTED_MFA_ATTEMPTSUser exhausted OTP entry attempts