Open a wallet-backed USD account for a person
Open a USD account with US bank details for an individual, whose deposits arrive as USDC in the account's wallet.
Open a USD account with US bank details for an individual. Deposits to the account arrive as USDC in the account's wallet.
API version: v2.
Who it is for. This recipe is for a freelancer marketplace that pays UK and EU freelancers in dollars. It wants each freelancer's USD income to arrive as USDC that it can move at once.
Status. Available for individuals in the countries each option serves. polygon works on every option. stellar, ethereum, avalanche_c_chain and solana work where the option's token_options lists them. Gravv supports no other network.
Money example
Ada, a UK freelancer, invoices a US client 1,200.00 USD.
transfer.inflow.deposit_settled. If your plan has a deposit fee for that rail, Gravv bills it to your business separately.Before you start
basic KYC is completed.token_wallets. See Find what a customer can open.max_accounts_per_customer. Count her accounts with GET /v2/accounts?customer_id=…¤cy=USD.Find out what is required
Read the requirements for the option's bank_code. The forms differ by option:
| The default USD option | The USD, EUR and GBP option | The EUR and USD option | |
|---|---|---|---|
| Root fields | first_name, last_name, date_of_birth, email, phone_daytime, gender, citizenship_country, tax_residence_country, permanent_address | Names, date_of_birth, email, citizenship_country, permanent_address, and expected_activity (expected_avg_daily_balance, ach_in.monthly_count, ach_in.monthly_amount) | Names, date_of_birth, email, phone_daytime, citizenship_country, tax_residence_country, permanent_address, source_of_income, employment_status, work_industry, annual_deposit_range, transaction_frequency |
| US citizens only | tax_id_type (ssn) and tax_id_number | tax_id_type (ssn) once a tax_id_number is sent | None |
| Non-US citizens only | None | immigration_status, tax_residence_country, and international_supplement (four yes/no questions, with details when one is true) | None |
| Documents | One identity document and proof_of_address | The same | The same |
| Networks that work | polygon, ethereum, solana | polygon, ethereum, solana, stellar | polygon |
permanent_address holds address_line, city, state (ISO 3166-2, such as GB-LND), postal_code and country. It must not be a P.O. Box. An identity document is one of national_id, passport, drivers_license, permanent_resident_card, employment_authorization or other, with number, issued_date, expiration_date and issuing_country. If the requirements response differs from this table, trust the requirements response.
Steps
1. Open the account
Save account_id. The response has no application_id.
To back the account with a wallet you already hold, send wallet_id instead of network. The wallet's network must be one the option offers.
2. Follow it until it is active
status_reason is provider_review, or there is no status_reason, you have nothing to do. Wait.Or wait for applications.accounts.completed. Poll every few seconds at first, then less often, because a bank review can take minutes or days.
3. Give the details to the payer
When status is active, read the account again and show the virtual_account_bank_* fields. See Share account details and receive a deposit.
What can go wrong
| Response | Why | Fix |
|---|---|---|
400 the customer for the customer_id supplied has not completed KYC; … (CUSTOMER_KYC_INCOMPLETE) | KYC is not completed. The API checks KYC first and reports nothing else until it passes | Finish KYC, then retry with a new key |
400 no customer record exists for the customer_id supplied; … (CUSTOMER_NOT_FOUND) | The id is wrong, or it is a sandbox id sent with a live key | Send the id from the same environment |
400 network is required for account options that support wallet integration | You sent no network or wallet_id | Send network |
400 this account does not provide a token wallet on bitcoin; choose one of its supported networks (primary: polygon) | The option does not offer that network | Send one from token_options |
400 Network must be sent as a top-level request field; data.root.network is no longer accepted | You sent network in data.root | Move it to the top level |
400 invalid request payload: unknown field "blockchain_network" | You used an old field name | Send network |
400 wallet_id and network are mutually exclusive; send only one | You sent both | Send only one |
400 wallet_id does not reference a known wallet | The wallet is not one of yours | Check with GET /v1/wallets |
400 Date of Birth is required (and 1 other field; see details) | Fields are missing. details lists all of them | Fill every key in details, then retry with a new key |
400 details.documents: required: requires document proof_of_address | A document is missing | Add it |
400 Expiration Date is required for this document type | An ID is missing its details | Add number, issued_date, expiration_date, issuing_country |
400 document content too large: maximum size is 2MB; … | A file is over 2 MB | Compress it |
413 the uploaded file is too large — the maximum is 5MB | In sandbox, a request of about 600 KB or more, whatever the message says | Keep the files of one request under 500 KB together |
400 content must be base64 (standard or URL-safe) | The content has a data: prefix or bad base64 | Send raw base64 |
400 details.phone_daytime: invalid_format: must be a valid phone number for its country, … | The number is not valid for its country | Send it in E.164 format |
400 details.permanent_address.address_line: must be a physical address, not a P.O. Box | The address is a P.O. Box | Send a street address |
400 state "LND" is not an ISO-3166-2 subdivision; … | The state has no country prefix | Send the full code, such as GB-LND |
400 details.gender: invalid_enum: … expected one of: female, male | These forms do not accept other | Ask the customer, or choose another option |
400 parties are not accepted for an individual customer; … | You sent parties for a person | Remove parties |
409 this customer already holds the maximum number of USD accounts permitted for this account type (5) | The customer reached the per-customer limit | Open a second account |
409 customer already has an application in progress for this bank | An earlier application at this bank is open | Unblock that application |
503 Service temporarily unavailable. …, 500, 504 | A temporary fault | Retry with the same key |
Webhooks you will receive
Gravv sends these events in order:
applications.accounts.pending. Gravv can skip this event.applications.accounts.blocked, with metadata.block_reason.applications.accounts.completed with account_id, or applications.accounts.failed with metadata.fail_reason.Gravv does not send account.activated. See Account application events.
Testing in sandbox
Sandbox calls the bank's own test system, so activation is neither instant nor certain. Keep the documents of one request under 500 KB together, because sandbox refuses requests of about 600 KB or more. The customer must be verified first, or the create call returns CUSTOMER_KYC_INCOMPLETE. See Verify a customer in sandbox. Once an account is active, simulate a deposit.