Prerequisites
- Account: a virtual account, opened as in Open a Virtual Account.
- API Key: a server API key with the
virtual-accounts.readscope. In staging, all scopes are included by default.
List Accounts
List the accounts of your project. AdduserLocator to list the accounts of one user.
Response
nextCursor and previousCursor appear only when a page exists in that direction. Send the same filters when you follow a cursor.
Each filter takes up to 20 values and matches any of them. An account is listed when it matches every filter sent. A malformed value, more than 20 values, a
limit outside 1 to 100, or an unknown cursor answers 400 payments:virtual-account.invalid-request.
Account Statuses
Every account has astatus and a statusReason. Treat both sets as extensible. See Account Statuses for what each status means and how an account moves between them.
statusReason is null unless the status is one of the three in the table.
When several causes suspend an account,
statusReason shows the one listed first in the table. Once issued, the bank details stay readable in every status and are never given to another user.
Follow Status Changes
Crossmint sends thevirtual_accounts.status.updated webhook each time the status or the statusReason of an account changes. Read the account when it arrives. See Handle Account Status Changes for the payload.
Next Steps
Track Deposits
Follow each bank transfer as an order
Handle Webhooks
Receive account and deposit events

