Open your card account
Opens your business's one card account, which backs every card you issue. Send `type` `card`, `currency` `USD` and your business's own customer ID, which is the `customer_id` on your account whose `category` is `main`. The API refuses an end customer's ID and a second card account. The account starts `pending`. Wait for the `account.activated` webhook, or read the account until it is `active`, before you activate cards with it.
Opens your business's one card account, which backs every card you issue. Send type card, currency USD and your business's own customer ID, which is the customer_id on your account whose category is main. The API refuses an end customer's ID and a second card account. The account starts pending. Wait for the account.activated webhook, or read the account until it is active, before you activate cards with it.
POST /v1/accounts opens card accounts only at lead_bank and cross_river_bank, in USD. Leave bank out and Gravv tries lead_bank first, then cross_river_bank. Gravv sets category itself: main for your business's own customer. v1 reads your business's KYC from its customer record and takes no KYC data in the body.
This is the only use of POST /v1/accounts that Gravv documents. Open every other account, for any bank, currency or country, with POST /v2/accounts. Every error is HTTP 400, for example:
failed to create internal account: card accounts cannot be created for this customer — this account type is reserved for the tenant: you sent an end customer's ID.failed to create internal account: card account already exists for customer (account_id: <id>): use that card account. A deleted, frozen or failed card account does not count.failed to create internal account: kyc validation failed: no KYC information found for the customer: your business's basic KYC is not completed.failed to create internal account: account issuance for the requested currency USD and network <network> is not supported: a bank other than lead_bank or cross_river_bank.missing idempotency key in request headers: send an Idempotency-Key.Headers
Idempotency-KeyBody parameters
currencyAlways USD
Possible values: USD
typeAlways card
Possible values: card
labelcustomer_idcustomer_id on your account whose category is main.blockchain_networkNetwork of the account's wallet, in lower case
Possible values: polygon, ethereum, solana, stellar, avalanche_c_chain
bankBank that holds the card account. Leave it out and Gravv tries lead_bank first, then cross_river_bank. Any other value is refused.
Possible values: lead_bank, cross_river_bank
Response
Returns 200 OK. Account created
data/v2/accounts, without their v2-only fields.idlabeldate_createdwallet_addressblockchain_networktypeType of account. Your card account is card. operating is a v2 type, so POST /v1/accounts refuses it.
Possible values: regular, savings, card, auto_sweep, collection, default, non_custodial
customer_idcapabilitiesWhat the account can do. It depends on the account type.
Possible values: transfer, receive, remittance, card_payment, sweep_collection
currencyvirtual_account_idtenant_nametenant_idtierstatuspending while the bank sets the account up, then active. frozen means suspended or set-up failed, manual_review means held for review, and deleted is closed and final. reason explains a status other than active.
Possible values: active, pending, frozen, manual_review, deleted
reasoncategorymain for your own accounts, sub_account for your customers' accounts. Gravv sets it on POST /v1/accounts and ignores any category you send. A card account is always main.
Possible values: main, sub_account
balanceis_tokenizedinflow_behaviorSet for NGN accounts only
Possible values: settle, auto_onramp
polygon_walletaddressnetworktoken_balancevirtual_account_bank_namevirtual_account_bank_addressvirtual_account_bank_beneficiary_addressvirtual_account_bank_beneficiary_namevirtual_account_bank_account_numberactive.virtual_account_bank_routing_numberassetsbalancedecimalssymbolerrorErrors
| Status | Meaning |
|---|---|
| 200 | Account created |
| 400 | The request failed. These account routes return every error as HTTP 400, including not found. Read the error message for the cause. |