Liabilities
API reference for Liabilities endpoints and webhooks
| Endpoints | |
|---|---|
/liabilities/get | Fetch liabilities data |
| Webhooks | |
|---|---|
DEFAULT_UPDATE | New or updated liabilities available |
Endpoints
/liabilities/get
Retrieve Liabilities data
The /liabilities/get endpoint returns various details about an Item with loan or credit accounts. Liabilities data is available primarily for US financial institutions, with some limited coverage of Canadian institutions. Currently supported account types are account type credit with account subtype credit card or paypal, and account type loan with account subtype student or mortgage. To limit accounts listed in Link to types and subtypes supported by Liabilities, you can use the account_filters parameter when creating a Link token.
The types of information returned by Liabilities can include balances and due dates, loan terms, and account details such as original loan amount and guarantor. Data is refreshed approximately once per day; the latest data can be retrieved by calling /liabilities/get.
Note: This request may take some time to complete if liabilities was not specified as an initial product when creating the Item. This is because Plaid must communicate directly with the institution to retrieve the additional data.
Request fields and example
client_idclient_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.secretsecret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.access_tokenoptions/liabilities/get results. If provided, options cannot be null.account_idsAn error will be returned if a provided
account_id is not associated with the Item1// Retrieve Liabilities data for an Item2const request: LiabilitiesGetRequest = {3 access_token: accessToken,4};5try {6 const response = await plaidClient.liabilitiesGet(request);7 const liabilities = response.data.liabilities;8} catch (error) {9 // handle error10}Response fields and example
accountsaccount_idaccount_id will be assigned to the account.The
account_id can also change if the access_token is deleted and the same credentials that were used to generate that access_token are used to generate a new access_token on a later date. In that case, the new account_id will be different from the old account_id.If an account with a specific
account_id disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API.Like all Plaid identifiers, the
account_id is case sensitive.balances/accounts/balance/get.availableFor
credit-type accounts, the available balance typically equals the limit less the current balance, less any pending outflows plus any pending inflows.For
depository-type accounts, the available balance typically equals the current balance less any pending outflows plus any pending inflows. For depository-type accounts, the available balance does not include the overdraft limit.For
investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the available balance is the total cash available to withdraw as presented by the institution.Note that not all institutions calculate the
available balance. In the event that available balance is unavailable, Plaid will return an available balance value of null.Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by
/accounts/balance/get.If
current is null this field is guaranteed not to be null.double currentFor
credit-type accounts, a positive balance indicates the amount owed; a negative amount indicates the lender owing the account holder.For
loan-type accounts, the current balance is the principal remaining on the loan, except in the case of student loan accounts at Sallie Mae (ins_116944). For Sallie Mae student loans, the account's balance includes both principal and any outstanding interest.For
investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the current balance is the total value of assets as presented by the institution.Note that balance information may be cached unless the value was returned by
/accounts/balance/get; if the Item is enabled for Transactions, the balance will be at least as recent as the most recent Transaction update. If you require realtime balance information, use the available balance as provided by /accounts/balance/get.When returned by
/accounts/balance/get, this field may be null. When this happens, available is guaranteed not to be null.double limitcredit-type accounts, this represents the credit limit.For
depository-type accounts, this represents the pre-arranged overdraft limit, which is common for current (checking) accounts in Europe.In North America, this field is typically only available for
credit-type accounts.double iso_currency_codeunofficial_currency_code is non-null.unofficial_currency _codeiso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.See the currency code schema for a full listing of supported
unofficial_currency_codes.last_updated_datetimeYYYY-MM-DDTHH:mm:ssZ) indicating the oldest acceptable balance when making a request to /accounts/balance/get.This field is only used and expected when the institution is
ins_128026 (Capital One) and the Item contains one or more accounts with a non-depository account type, in which case a value must be provided or an INVALID_REQUEST error with the code of INVALID_FIELD will be returned. For Capital One depository accounts as well as all other account types on all other institutions, this field is ignored. See account type schema for a full list of account types.If the balance that is pulled is older than the given timestamp for Items with this field required, an
INVALID_REQUEST error with the code of LAST_UPDATED_DATETIME_OUT_OF_RANGE will be returned with the most recent timestamp for the requested account contained in the response.date-time masknameofficial_nametypeinvestment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.credit: Credit carddepository: Depository accountloan: Loan accountother: Non-specified account typeSee the Account type schema for a full listing of account types and corresponding subtypes.
investment, credit, depository, loan, brokerage, othersubtype401a, 401k, 403B, 457b, 529, brokerage, cash isa, crypto exchange, education savings account, ebt, fixed annuity, gic, health reimbursement arrangement, hsa, isa, ira, lif, life insurance, lira, lrif, lrsp, non-custodial wallet, non-taxable brokerage account, other, other insurance, other annuity, prif, rdsp, resp, rlif, rrif, pension, profit sharing plan, retirement, roth, roth 401k, rrsp, sep ira, simple ira, sipp, stock plan, thrift savings plan, tfsa, trust, ugma, utma, variable annuity, credit card, paypal, cd, checking, savings, money market, prepaid, auto, business, commercial, construction, consumer, home equity, loan, mortgage, overdraft, line of credit, student, cash management, keogh, mutual fund, recurring, rewards, safe deposit, sarsep, payroll, nullverification_statuspending_automatic_verification: The Item is pending automatic verificationpending_manual_verification: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the micro-deposit.automatically_verified: The Item has successfully been automatically verified manually_verified: The Item has successfully been manually verifiedverification_expired: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link.verification_failed: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link.database_matched: The Item has successfully been verified using Plaid's data sources. Note: Database Match is currently a beta feature, please contact your account manager for more information.database_insights_pass: The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.database_insights_pass_with_caution: The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.database_insights_fail: The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.automatically_verified, pending_automatic_verification, pending_manual_verification, manually_verified, verification_expired, verification_failed, database_matched, database_insights_pass, database_insights_pass_with_caution, database_insights_failpersistent_account_iditemitem_iditem_id is always unique; linking the same account at the same institution twice will result in two Items with different item_id values. Like all Plaid identifiers, the item_id is case-sensitive.institution_idnull for Items created via Same Day Micro-deposits.webhookerrorerror_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.error_typeINVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERRORerror_codeerror_messagedisplay_messagenull if the error is not related to user action.This may change over time and is not safe for programmatic use.
request_idcausescauses will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.statusdocumentation_urlsuggested_actionavailable_productsbilled_products.assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identitybilled_productsavailable_products. Note - billed_products is populated in all environments but only requests in Production are billed. Also note that products that are billed on a pay-per-call basis rather than a pay-per-Item basis, such as balance, will not appear here.assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identityproductsbilled_products field. For some products, it is possible for the product to be added to an Item but not yet billed (e.g. Assets, before /asset_report/create has been called, or Auth or Identity when added as Optional Products but before their endpoints have been called), in which case the product may appear in products but not in billed_products.assets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identityconsented_productsassets, auth, balance, identity, identity_match, investments, investments_auth, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal, statements, processor_payments, processor_identityconsent_expiration _timeITEM_LOGIN_REQUIRED error state. To circumvent the ITEM_LOGIN_REQUIRED error and maintain continuous consent, the end user can reauthenticate via Link’s update mode in advance of the consent expiration time.Note - This is only relevant for certain OAuth-based institutions. For all other institutions, this field will be null.
date-time update_typebackground - Item can be updated in the backgrounduser_present_required - Item requires user interaction to be updatedbackground, user_present_requiredliabilitiescreditaccount_idaprsapr_percentagedouble apr_typebalance_transfer_apr, cash_apr, purchase_apr, specialbalance_subject_to_aprdouble interest_charge_amountdouble is_overduelast_payment_amountdouble last_payment_datedate last_statement_issue _datelast_statement_balancedouble minimum_payment_amountdouble next_payment_due_datenull if a payment is not expected. Dates are returned in an ISO 8601 format (YYYY-MM-DD).date mortgageaccount_idaccount_numbercurrent_late_feedouble escrow_balancedouble has_pmihas_prepayment_penaltyinterest_ratepercentagedouble typelast_payment_amountdouble last_payment_dateloan_type_descriptionconventional, fixed, or variable. This field is provided directly from the loan servicer and does not have an enumerated set of possible values.loan_term10 year).maturity_datedate next_monthly_paymentdouble next_payment_due_datedate origination_datedate origination_principal _amountdouble past_due_amountdouble property_addresscitycountrypostal_coderegionstreetytd_interest_paiddouble ytd_principal_paiddouble studentaccount_idaccount_numberdisbursement_datesdate expected_payoff_datedate guarantorinterest_rate _percentagedouble is_overduetrue if a payment is currently overdue. Availability for this field is limited.last_payment_amountdouble last_payment_datelast_statement_issue _dateloan_nameloan_statustypecancelled, charged off, claim, consolidated, deferment, delinquent, discharged, extension, forbearance, in grace, in military, in school, not fully disbursed, other, paid in full, refunded, repayment, transferred, pending idrminimum_payment_amountins_116861), Firstmark (ins_116295), Commonbond Firstmark Services (ins_116950), Nelnet (ins_116528), EdFinancial Services (ins_116304), Granite State (ins_116308), and Oklahoma Student Loan Authority (ins_116945).
Firstmark (ins_116295 ) and Navient (ins_116248) will display as $0 if there is an autopay program in effect.double next_payment_due_datenull if a payment is not expected. A payment is not expected if loan_status.type is deferment, in_school, consolidated, paid in full, or transferred. Dates are returned in an ISO 8601 format (YYYY-MM-DD).date origination_datedate origination_principal _amountdouble outstanding_interest _amountins_116944), this amount is included in the current balance of the loan, so this field will return as null.double payment_reference _numberpayment_reference_number will match account_number, but in some institutions, such as Great Lakes (ins_116861), it will be different.pslf_statusins_116527).estimated_eligibility _datedate payments_madepayments_remainingrepayment_plandescriptiontypeextended graduated, extended standard, graduated, income-contingent repayment, income-based repayment, interest-only, other, pay as you earn, revised pay as you earn, standard, saving on a valuable education, nullsequence_numberins_116948) does not make this field available.servicer_addresscityregion"NC"street"564 Main Street, APT 15"postal_codecountryytd_interest_paiddouble ytd_principal_paiddouble request_id1{2 "accounts": [3 {4 "account_id": "BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp",5 "balances": {6 "available": 100,7 "current": 110,8 "iso_currency_code": "USD",9 "limit": null,10 "unofficial_currency_code": null11 },12 "mask": "0000",13 "name": "Plaid Checking",14 "official_name": "Plaid Gold Standard 0% Interest Checking",15 "subtype": "checking",16 "type": "depository"17 },18 {19 "account_id": "dVzbVMLjrxTnLjX4G66XUp5GLklm4oiZy88yK",20 "balances": {21 "available": null,22 "current": 410,23 "iso_currency_code": "USD",24 "limit": 2000,25 "unofficial_currency_code": null26 },27 "mask": "3333",28 "name": "Plaid Credit Card",29 "official_name": "Plaid Diamond 12.5% APR Interest Credit Card",30 "subtype": "credit card",31 "type": "credit"32 },33 {34 "account_id": "Pp1Vpkl9w8sajvK6oEEKtr7vZxBnGpf7LxxLE",35 "balances": {36 "available": null,37 "current": 65262,38 "iso_currency_code": "USD",39 "limit": null,40 "unofficial_currency_code": null41 },42 "mask": "7777",43 "name": "Plaid Student Loan",44 "official_name": null,45 "subtype": "student",46 "type": "loan"47 },48 {49 "account_id": "BxBXxLj1m4HMXBm9WZJyUg9XLd4rKEhw8Pb1J",50 "balances": {51 "available": null,52 "current": 56302.06,53 "iso_currency_code": "USD",54 "limit": null,55 "unofficial_currency_code": null56 },57 "mask": "8888",58 "name": "Plaid Mortgage",59 "official_name": null,60 "subtype": "mortgage",61 "type": "loan"62 }63 ],64 "item": {65 "available_products": [66 "balance",67 "investments"68 ],69 "billed_products": [70 "assets",71 "auth",72 "identity",73 "liabilities",74 "transactions"75 ],76 "consent_expiration_time": null,77 "error": null,78 "institution_id": "ins_3",79 "item_id": "eVBnVMp7zdTJLkRNr33Rs6zr7KNJqBFL9DrE6",80 "update_type": "background",81 "webhook": "https://www.genericwebhookurl.com/webhook"82 },83 "liabilities": {84 "credit": [85 {86 "account_id": "dVzbVMLjrxTnLjX4G66XUp5GLklm4oiZy88yK",87 "aprs": [88 {89 "apr_percentage": 15.24,90 "apr_type": "balance_transfer_apr",91 "balance_subject_to_apr": 1562.32,92 "interest_charge_amount": 130.2293 },94 {95 "apr_percentage": 27.95,96 "apr_type": "cash_apr",97 "balance_subject_to_apr": 56.22,98 "interest_charge_amount": 14.8199 },100 {101 "apr_percentage": 12.5,102 "apr_type": "purchase_apr",103 "balance_subject_to_apr": 157.01,104 "interest_charge_amount": 25.66105 },106 {107 "apr_percentage": 0,108 "apr_type": "special",109 "balance_subject_to_apr": 1000,110 "interest_charge_amount": 0111 }112 ],113 "is_overdue": false,114 "last_payment_amount": 168.25,115 "last_payment_date": "2019-05-22",116 "last_statement_issue_date": "2019-05-28",117 "last_statement_balance": 1708.77,118 "minimum_payment_amount": 20,119 "next_payment_due_date": "2020-05-28"120 }121 ],122 "mortgage": [123 {124 "account_id": "BxBXxLj1m4HMXBm9WZJyUg9XLd4rKEhw8Pb1J",125 "account_number": "3120194154",126 "current_late_fee": 25,127 "escrow_balance": 3141.54,128 "has_pmi": true,129 "has_prepayment_penalty": true,130 "interest_rate": {131 "percentage": 3.99,132 "type": "fixed"133 },134 "last_payment_amount": 3141.54,135 "last_payment_date": "2019-08-01",136 "loan_term": "30 year",137 "loan_type_description": "conventional",138 "maturity_date": "2045-07-31",139 "next_monthly_payment": 3141.54,140 "next_payment_due_date": "2019-11-15",141 "origination_date": "2015-08-01",142 "origination_principal_amount": 425000,143 "past_due_amount": 2304,144 "property_address": {145 "city": "Malakoff",146 "country": "US",147 "postal_code": "14236",148 "region": "NY",149 "street": "2992 Cameron Road"150 },151 "ytd_interest_paid": 12300.4,152 "ytd_principal_paid": 12340.5153 }154 ],155 "student": [156 {157 "account_id": "Pp1Vpkl9w8sajvK6oEEKtr7vZxBnGpf7LxxLE",158 "account_number": "4277075694",159 "disbursement_dates": [160 "2002-08-28"161 ],162 "expected_payoff_date": "2032-07-28",163 "guarantor": "DEPT OF ED",164 "interest_rate_percentage": 5.25,165 "is_overdue": false,166 "last_payment_amount": 138.05,167 "last_payment_date": "2019-04-22",168 "last_statement_issue_date": "2019-04-28",169 "loan_name": "Consolidation",170 "loan_status": {171 "end_date": "2032-07-28",172 "type": "repayment"173 },174 "minimum_payment_amount": 25,175 "next_payment_due_date": "2019-05-28",176 "origination_date": "2002-08-28",177 "origination_principal_amount": 25000,178 "outstanding_interest_amount": 6227.36,179 "payment_reference_number": "4277075694",180 "pslf_status": {181 "estimated_eligibility_date": "2021-01-01",182 "payments_made": 200,183 "payments_remaining": 160184 },185 "repayment_plan": {186 "description": "Standard Repayment",187 "type": "standard"188 },189 "sequence_number": "1",190 "servicer_address": {191 "city": "San Matias",192 "country": "US",193 "postal_code": "99415",194 "region": "CA",195 "street": "123 Relaxation Road"196 },197 "ytd_interest_paid": 280.55,198 "ytd_principal_paid": 271.65199 }200 ]201 },202 "request_id": "dTnnm60WgKGLnKL"203}Was this helpful?
Webhooks
Liabilities webhooks are sent to indicate that new loans or updated loan fields for existing accounts are available.
DEFAULT_UPDATE
The webhook of type LIABILITIES and code DEFAULT_UPDATE will be fired when new or updated liabilities have been detected on a liabilities item.
webhook_typeLIABILITIESwebhook_codeDEFAULT_UPDATEitem_iditem_id of the Item associated with this webhook, warning, or errorerrorerror_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.error_typeINVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERRORerror_codeerror_messagedisplay_messagenull if the error is not related to user action.This may change over time and is not safe for programmatic use.
request_idcausescauses will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.statusdocumentation_urlsuggested_actionaccount_ids_with_new _liabilitiesaccount_id's for accounts that contain new liabilities.'account_ids_with _updated_liabilitiesaccount_id's that are mapped to their respective liabilities fields that changed.Example:
{ "XMBvvyMGQ1UoLbKByoMqH3nXMj84ALSdE5B58": ["past_amount_due"] }environmentdevelopment, sandbox, production1{2 "webhook_type": "LIABILITIES",3 "webhook_code": "DEFAULT_UPDATE",4 "item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",5 "error": null,6 "account_ids_with_new_liabilities": [7 "XMBvvyMGQ1UoLbKByoMqH3nXMj84ALSdE5B58",8 "BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp"9 ],10 "account_ids_with_updated_liabilities": {11 "XMBvvyMGQ1UoLbKByoMqH3nXMj84ALSdE5B58": [12 "past_amount_due"13 ]14 },15 "environment": "production"16}