Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Accounts v2 Get account requirements

Get account requirements

Returns the form that create checks for one bank, currency and customer type: fields, documents, party rules and token networks. Send `customer_id` to see the values already on file, and `country` so that this call chooses the same bank as create.

GEThttps://api.gravv.xyz/v2/accounts/requirementsTry it
Api-Key

Returns the form that create checks for one bank, currency and customer type: fields, documents, party rules and token networks. Send customer_id to see the values already on file, and country so that this call chooses the same bank as create.

A field is needed only when required is true and its applies_when and required_when conditions hold. When has_existing_ref is true, send no data.root on create. When existing_application is present, finish that application instead.

Query parameters

NameDescription
customer_type:stringRequired
Possible values: individual, business
currency:stringRequired
Three-letter ISO 4217 code
bank_code:string
A bank_code from the capabilities
account_type:string
category:string

main is your business's own account. sub_account is an account for one of your customers. These are the only two categories you can open.

Possible values: main, sub_account

country:string
The customer's citizenship or incorporation country, alpha-2 or alpha-3
subdivision:string
ISO 3166-2 code or a bare state code. Needs country.
customer_id:string
Customer to fill the form for

Response

Returns 200 OK. The form for this bank

NameDescription
data:object
Show 11 child attributesobject
error:null

Errors

StatusMeaning
200The form for this bank
400Missing parameters, or no bank fits the request (UNSUPPORTED_COMBINATION). A bank_code that does not exist returns UNKNOWN_BANK. category accepts only main, sub_account and savings.
404Not found, or not in your business
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v2/accounts/requirements?customer_type=individual&currency=USD&bank_code=cross_river_bank&account_type=operating&category=sub_account&country=GB' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400404OK
{
"data": {
"min_parties": null,
"max_parties": null,
"fields": [
{
"name": "first_name",
"type": "string",
"scope": "root",
"group": "identity",
"required": true,
"write_only": false,
"label": "First Name",
"is_predefined": true
},
{
"name": "tax_id_number",
"type": "string",
"scope": "root",
"group": "us_tax",
"required": true,
"applies_when": {
"field": "citizenship_country",
"op": "eq",
"value": "US"
},
"write_only": true,
"label": "Tax ID Number",
"is_predefined": false
}
],
"documents": [
{
"types": [
"national_id",
"passport",
"drivers_license"
],
"scope": "root",
"required": true,
"new_document_fields": [
"document_type",
"content",
"issuing_country",
"number",
"issued_date",
"expiration_date"
]
}
],
"token_options": [
{
"network": "polygon",
"asset": "usdc"
}
],
"has_existing_ref": false
},
"error": null
}