Looking for the previous documentation?Go to v1.docs.pluggy.ai

Account

The account product is the list of bank accounts such as Checking or Savings Account and Credit Card, that were available in the selected connector.

View as Markdown

The account product is the list of bank accounts such as Checking or Savings Account and Credit Card, that were available in the selected connector.

The response will vary depending on the Accounts Type, providing a data object related to its type bankData or creditData.

Bank
Bank
{
  "id": "a658c848-e475-457b-8565-d1fffba127c4",
  "type": "BANK",
  "subtype": "CHECKING_ACCOUNT",
  "number": "0001/12345-0",
  "name": "Conta Corrente",
  "marketingName": "GOLD Conta Corrente",
  "balance": 120950,
  "itemId": "a0922d6f-2007-4169-a181-b961500608db",
  "taxNumber": "333.333.333-33",
  "owner": "John Doe",
  "currencyCode": "BRL",
  "bankData": {
    "transferNumber": "123/0001/12345-0",
    "closingBalance": 120950,
    "automaticallyInvestedBalance": 100,
    "overdraftContractedLimit": 0,
    "overdraftUsedLimit": 0,
    "unarrangedOverdraftAmount": 0
  }
}
Credit
Credit
{
  "id": "4f61bd6d-e6fc-44b2-9c4b-5609058de7ab",
  "type": "CREDIT",
  "subtype": "CREDIT_CARD",
  "name": "Itau Uniclass 2.0 Mastercard Platinum",
  "marketingName": "Itau Uniclass 2.0 Mastercard Platinum",
  "taxNumber": "***.***.123-22",
  "owner": "FEDERICO MIRAS",
  "number": "1234",
  "balance": 142.41,
  "itemId": "fc214524-4725-4974-9f7a-0f1b50ea39e0",
  "currencyCode": "BRL",
  "creditData": {
    "level": "PLATINUM",
    "brand": "MASTERCARD",
    "brandAdditionalInfo": null,
    "balanceCloseDate": "2020-07-08",
    "balanceDueDate": "2020-07-17",
    "availableCreditLimit": 51300,
    "creditLimit": 51800,
    "isLimitFlexible": false,
    "balanceForeignCurrency": 500,
    "minimumPayment": 100,
    "status": "ACTIVE",
    "holderType": "MAIN"
  }
}
PropertyDescriptionRequired
idUnique identifier of the Account model, used to recover related transactionsYes
typeType of account (BANK / CREDIT).Yes
subtypeThe subtype of account (CHECKING_ACCOUNT / SAVINGS_ACCOUNT / CREDIT_CARD).Yes
numberFor BANK type, this field returns the number of the account. Ie: 12345-6 (or 12345-6/500 in some saving accounts). For CREDIT type, this field returns the last four digits of the credit card. Ie: 1234. For connectors with type PAYMENT_ACCOUNT, number represents the fund destination account number.Yes
balanceFor BANK type, this field returns the current available balance of the account. For CREDIT type, this field returns the value of the current balance of the open invoice not yet paid. For connectors with type PAYMENT_ACCOUNT, balance can only be returned in digital accounts, not in external accounts. More details here.Yes
currencyCodeCurrency ISO code of the account, ie USD or EURYes
nameName of the account, ie. Saving Account 1234 or Mastercard Gold.Yes
marketingNameThe extra name provided for some accounts that are related to the level of the account. Not always provided.
ownerName of the owner of the account.
taxNumberFormatted tax number of the owner of the account (CPF or CNPJ). For connectors with type PAYMENT_ACCOUNT, taxNumber represents the CNPJ of the connected company. Availability varies by connector. For some business connectors (e.g. Bradesco PJ, Caixa PJ), accounts under the same itemId may return different taxNumber values, since the value comes from the selected company or directly from the institution's API.
bankDataSpecific data for bank account types.
creditDataSpecific data for credit account types.

Balance#

Bank Accounts (Checking & Savings) balances represent the amount the holder currently holds as available to spend. If this value is negative, it represents a debt the holder has with the financial institution, an example of this would be an overdraft.

Credit Cards balances are the amount due to the institution, this would mean the open balance of the user's current month. If the previous invoice was paid with an exceeded amount, the balance would return a negative value.

For Open Finance connectors, Credit Card balance is the used limit for that credit card.

Calculating credit card balances

Credit-type account can leverage the availableCreditLimit to consolidate a 360 view of credit cards.

creditLimit = availableCreditLimit (yet to spend) + balance (open balance) + debt from previous balance.

Bank account balances on Open Finance#

For Open Finance connectors, the institution reports the available amount of a bank account and, when it has them, the blocked amount and the automatically invested amount. Not every institution reports the last two, so treat them as optional. Pluggy maps them like this:

FieldValue
balanceThe available amount.
bankData.closingBalancebalance + the blocked amount (the accounting balance). null if the institution does not report a blocked amount.
bankData.automaticallyInvestedBalanceThe automatically invested amount, unchanged. null if the institution does not report it.

The sum in closingBalance is the same for every Open Finance connector. What changes for a few institutions is which amount is used as balance.

Itaú and Banco do Brasil. On Itaú PF (601), Itaú PJ (618), Banco do Brasil PF (611) and Banco do Brasil PJ (662), when the automatically invested amount is greater than zero it is used as balance instead of the available amount, and closingBalance is calculated from it. These institutions report the money held in the automatic investment (Itaú's automatic investment, Banco do Brasil's Rende Fácil) separately from the available amount: some send the same value in both, others send zero as available and the whole amount as automatically invested. In both cases the account holder sees that amount as their balance in the bank's app, so that is what balance returns. automaticallyInvestedBalance still returns the amount exactly as reported.

Overdraft. If balance is zero and the account has overdraft in use (overdraftUsedLimit greater than zero), balance is returned as the negative of the overdraft used. This applies to the balance collected when the item syncs; the real-time real-time balance endpoint returns the institution's amounts without this adjustment.

Which field to use

Use balance for the amount the holder can spend. Use closingBalance when you need the accounting balance including blocked amounts. Do not add automaticallyInvestedBalance to balance on Itaú or Banco do Brasil: when it is greater than zero, it is already the balance.

Bank data#

PropertyDescription
transferNumberThis field returns the most important account information: COMPE / Agency / Account. Ie.: 123 / 1234 / 12345-6
closingBalanceAccounting balance of the account. For Open Finance connectors, it is always balance + the blocked amount reported by the institution, and it is null when the institution does not report a blocked amount. It is not the previous day's closing balance. See Bank account balances on Open Finance.
automaticallyInvestedBalanceAmount the institution automatically invested from the account (for example Itaú's automatic investment or Banco do Brasil's Rende Fácil), returned exactly as the institution reports it.
overdraftContractedLimitAmount of the contracted overdraft limit.
overdraftUsedLimitTotal amount used of the special check limit and the advance to the depositor.
unarrangedOverdraftAmountValue of operation contracted on an emergency basis to cover outstanding balance in demand deposit account and excess over the agreed overdraft limit.

Credit Data#

PropertyDescription
minimumPaymentBalance minimum payment for the current period.
balanceForeignCurrencyBalance in foreign currency for the current period.
availableCreditLimitThe available credit limit for the account yet to spend.
creditLimitThe credit limit for the account.
isLimitFlexibleWhether the credit card is unlimited.
balanceDueDateBalance's Due Date for the card account. (yyyy-mm-dd)
balanceCloseDateClose date when the balance was calculated. (yyyy-mm-dd)
levelCard type level (Black, Signature, etc).
brandCard Brand (Mastercard, Visa, Elo, etc).
brandAdditionalInfoFree text specifying the brand category when brand is OTHER. Only available on Open Finance connectors.
statusCard status (ACTIVE, BLOCKED, CANCELLED). For regulated connectors we only return ACTIVE, meaning the status of that the card is still being recovered from the FI.
holderTypeCard holder type (MAIN or ADDITIONAL)

Disaggregated Credit Limits#

Some credit cards may have multiple credit lines or different operation modalities. The disaggregatedCreditLimits field provides detailed information about each credit line to help you correctly identify the main card and calculate precise balances.

When to Use Disaggregated Limits#

Use this feature when you encounter:

  • Incorrect credit card balances
  • Multiple credit lines on the same card
  • Different operation modalities with separate limits

Structure#

disaggregatedCreditLimits lives inside creditData and is an array of objects, one per credit line:

json
{
  "creditData": {
    "disaggregatedCreditLimits": [
      {
        "creditLineLimitType": "LIMITE_CREDITO_TOTAL",
        "consolidationType": "INDIVIDUAL",
        "identificationNumber": "1000",
        "isLimitFlexible": false,
        "usedAmount": 149.84,
        "usedAmountCurrencyCode": "BRL",
        "lineName": "CREDITO_A_VISTA",
        "limitAmount": 1000.0,
        "limitAmountCurrencyCode": "BRL",
        "customizedLimitAmount": 2000.0,
        "customizedLimitAmountCurrencyCode": "BRL",
        "availableAmount": 850.16,
        "availableAmountCurrencyCode": "BRL"
      }
    ]
  }
}

Key Fields#

FieldTypeDescriptionExample
creditLineLimitTypestringCredit limit type"LIMITE_CREDITO_TOTAL" or "LIMITE_CREDITO_MODALIDADE_OPERACAO"
consolidationTypestringIndicates if the limit is consolidated or individual"INDIVIDUAL" or "CONSOLIDATED"
identificationNumberstringAdditional credit card identification number"1000"
isLimitFlexiblebooleanIndicates if the limit is flexiblefalse
usedAmountnumberUsed amount of the additional credit card149.84
usedAmountCurrencyCodestringUsed amount currency code"BRL"
lineNamestringName of the credit limit line. One of CREDITO_A_VISTA, CREDITO_PARCELADO, SAQUE_CREDITO_BRASIL, SAQUE_CREDITO_EXTERIOR, EMPRESTIMO_CARTAO_CONSIGNADO, OUTROS"CREDITO_A_VISTA"
lineNameAdditionalInfostringFree text describing the line when lineName is OUTROS"SAQUE_CREDITO"
limitAmountnumberAdditional credit card limit amount1000.00
limitAmountCurrencyCodestringLimit currency code"BRL"
limitAmountReasonstringReason why the reported total limit amount is zero"Limite zerado após análise"
customizedLimitAmountnumberTotal limit amount customized by the customer through the institution's electronic channels2000.00
customizedLimitAmountCurrencyCodestringCustomized limit amount currency code"BRL"
availableAmountnumberAvailable amount of the additional credit card850.16
availableAmountCurrencyCodestringAvailable amount currency code"BRL"

See AccountsAPI in our API reference for more information.

Was this page helpful?