Skip to content

Add an external account

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

Adds a new external account for transfers to accounts that are not created with Gravv.

Async setup contract

Registering an external account with our payment partners runs asynchronously. The response status code tells you the outcome:

  • 200 OK: The external account is fully registered with at least one partner. The status field is active. You can initiate transfers immediately.

  • 202 Accepted: the external account record is created and a background worker calls our partners. The status field is pending. To learn when it changes to active, either check the status by calling GET /v1/external-accounts/{external_account_id} until it is active, or subscribe to the payee.setup.* webhook events.

  • 400 Bad Request: Input validation failed. Fix the input and retry.

A duplicate POST with the same account_number (or iban), currency, and payee_type for the same customer is idempotent and returns the existing record.

Body Params

  • account_namestringrequired

    Name of the account holder.

  • customer_idstringrequired

    ID of the customer who owns the external account.

  • payment_railstring

    Optional. US payment rail to use when payee_type is ach_wire. Accepted values: ach (ACH transfer) or wire (domestic wire). Defaults to wire when omitted.

    Allowed:achwire

Headers

  • x-tenant-idstringrequired

    Business/tenant identifier for authorization

  • Idempotency-Keystring

    A unique key to prevent duplicate requests.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/external-accounts' \
--header 'Api-Key: <Api Key>' \
--header 'x-tenant-id: biz-12345-abc' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"payee_type": "ach_wire",
"account_number": "4401682860",
"account_name": "Joshua Edicha",
"bank_name": "Lead Bank",
"currency": "USD",
"customer_id": "373556ec-74e5-4cde-909c-b94d864915db",
"routing_number": "101019644",
"account_owner_type": "individual",
"account_type": "savings",
"address": {
"address_line1": "1800 N Pole St, Orlando, FL 32801",
"state": "US-FL",
"country": "US",
"postal_code": "32801",
"city": "Orlando"
}
}'