If your bank account or credit card has multiple card holders, each with their own card, Plaid will not return sub-accounts separately via the /accounts/get endpoint, as these accounts are considered to be part of the primary account.
However, you can use the account_owner field on transactions returned by /transactions/sync (or /transactions/get) to filter for transactions posted to individual sub-accounts. Some more context on this field:
-
account_owneris not typically populated, and only relevant when dealing with sub-accounts. - There isn't a uniform standard for how the
account_ownerinformation is formatted. It might be just the last 4 digits, last name and mask, full name, etc. It shows in the format that is sent to us by the bank (e.g. "O. Winfrey - 0000", "Winfrey - 0000", "0000", "Oprah Winfrey", or some other format). - Generally, primary account transactions will have a null
account_ownervalue.
Our docs provide more info on the account owner field.