Skip to content

Create an account

POSThttps://api.gravv.xyz/v1/accounts

Create a new internal account for a customer.

For sandbox and testing integrations, we recommend using polygon as the blockchain_network.

Body Params

  • currencystringrequired

    Currency code for the account

    Allowed:USDEURMXNNGN
  • typestringrequired

    Type of account

    Allowed:regularsavings
  • labelstringrequired

    Label for the account

  • customer_idstringrequired

    ID of the customer who owns this account

  • blockchain_networkstringrequired

    Blockchain network for the account

    Allowed:polygonstellarethereumsolanaavalanche
  • wallet_addressstring

    Blockchain wallet address to associate with the account.

Headers

  • Idempotency-Keystring

    A unique key to prevent duplicate requests.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/accounts' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"currency": "USD",
"type": "regular",
"label": "ops",
"customer_id": "550e8400-e29b-41d4-a716-446655440178",
"blockchain_network": "polygon"
}'