Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Transfer List countries and states for addresses

List countries and states for addresses

Lists countries with their states or regions, for address forms. Both filters match part of the value and are not case-sensitive.

GEThttps://api.gravv.xyz/v1/transfer/supported-countries-for-addressTry it
Api-Key

Query parameters

NameDescription
iso_code:string
name:string

Response

Returns 200 OK. The countries

NameDescription
data:object
Show 1 child attributesobject
error:null

Errors

StatusMeaning
200The countries
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/transfer/supported-countries-for-address?iso_code=GH&name=Ghana' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200OK
{
"data": {
"countries": [
{
"iso_code": "GH",
"name": "Ghana",
"states": [
{
"code": "GH-AA",
"name": "Greater Accra"
}
]
}
]
},
"error": null
}