Track activation
Follow a v2 account from pending to active with the applications.accounts webhooks or by reading the account, and act on each status_reason.
API version: v2.
A new v2 account is pending while the bank reviews it. Follow it with the applications.accounts.* webhooks, or read GET /v2/accounts/{id} until status is active. For a v2 account you open, Gravv never sends account.activated. Wait for applications.accounts.completed instead.
A money example. Ada's client is ready to pay 1,200.00 USD, but the account is pending with status_reason provider_review. You don't need to do anything. An hour later applications.accounts.completed arrives, you read the account, and you give the client the account and routing numbers.
Read the account
application_id is the application to read or fix. The create response does not include it.status_reason is a fixed code. Branch on it, never on status_message, whose text can change.virtual_account_bank_*) appear only once status is active.Poll every few seconds at first, then less often, because a bank review can take minutes or days.
What each status_reason means
| status_reason | Who acts | What to do |
|---|---|---|
awaiting_customer_document | You | Upload every type in required_documents, in one PATCH |
awaiting_customer_data | You | Send every field in required_fields, in one PATCH |
tos_pending | The customer | Open required_action_url and accept the bank's terms. The application then resumes by itself. There is no API call to accept terms |
kyc_pending | The customer | Open required_action_url, the bank's own verification page. If the URL is not there yet, read again later |
provider_review | Nobody | Wait. The application continues by itself |
verification_rejected, verification_declined, review_declined | Nobody | The bank said no. The same details get the same answer, so try another option |
region_not_supported | Nobody | Choose another bank_code |
identity_document_mismatch, information_expired, request_cancelled | You | Open a new account with corrected data |
A pending account can have no status_reason while Gravv works on the application. Nothing is needed from you or the customer. If it stays pending for several days, contact support with the account id and application_id.
Webhooks
| Event | When | Read |
|---|---|---|
applications.accounts.pending | Gravv accepted the application. Gravv does not always send this event | account_id, application_id |
applications.accounts.blocked | The application waits on you or the customer | metadata.block_reason, metadata.action_url, metadata.additional_requirements |
applications.accounts.completed | The account is active | account_id. The event carries no bank details, so read the account |
applications.accounts.failed | The application ended without an account | metadata.fail_reason |
Deduplicate on the body's event_id. Gravv may not send a webhook for a repeat block of the same type, so always read the application again after you act. The payloads are on Account application events.
Next
When the account is active, read its bank details and give them to the payer.