Needs banking:admin: Bank account maintenance for a subaccount

Needs the banking:admin scope. If your API client does not have it, the API answers 403 Forbidden; ask Astrada to enable it if you need this operation.

Admin maintenance over one subaccount. It first runs the same mask pass as POST /bank-accounts/link-enrolled-cards, then each action the request asks for. The actions create cards on the cards platform or rewrite stored rows, so this route needs banking:admin, while the mask pass alone stays on link-enrolled-cards at banking:write. The caller's account comes from its token: it can run maintenance on any subaccount of its own account, and a subaccount of another account simply matches nothing (an empty result, not a 403).

Three optional actions, each off by default:

  • mint: true runs the completion-time mint pass over the subaccount's credit bank accounts that a completed link left without a card (the same-last-4 American Express case), so each gains a bank-feed card. Idempotent: an account that already holds a minted card is skipped.
  • backfillJunctionLast4: true fills, for the subaccount's card links, the last 4 each link answers to where it is still unknown, from the cards directory. Idempotent.
  • createCardholderCards: true runs, now and for this subaccount only, what a scheduled job does every 30 minutes: it gives each cardholder behind a pooled American Express billing account (a supplementary card that is not its own Plaid account) a bank-feed card of their own, with the cardholder's name, so their transactions can be emitted on that card. It does nothing unless Astrada has switched the feature on for the subaccount; the switches are set by Astrada only, from inside the platform, and no request can set them. Idempotent: a cardholder who already has a card is never given another.

The actions run in the order above, after the mask pass. If the cards directory cannot be read, the mask pass links nothing and still returns 201; each action then reads the directory again on its own and says so in its result (directoryUnavailable), or, for mint with accounts to screen, fails rather than mint unscreened. Any step that fails returns 400 and runs nothing after it (steps before it have done their work, and every step is idempotent, so the request can simply be repeated). Emits no webhook from banking; a card created here produces the cards platform's usual card-subscription events.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
uuid
required

The subaccount to run maintenance over.

boolean
Defaults to false

After the mask pass, also mint a bank-feed card for each of the subaccount's eligible credit bank accounts that holds no card. Accounts that already hold a minted card are skipped.

boolean
Defaults to false

After the mask pass, also fill each of the subaccount's card links with the last 4 it answers to, where still unknown, from the cards directory.

boolean
Defaults to false

After the mask pass, also create and name the bank-feed cards of the cardholders behind the subaccount's pooled American Express billing accounts, as the scheduled job does. Does nothing unless Astrada has switched the feature on for the subaccount.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json