Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Cards Create a card application

Create a card application

Opens a card application for a customer whose `basic` KYC is completed, using your active `card` account. In live, apply with `POST /v1/risk/features/activate` and `feature_id: virtual_cards` instead; this route works in sandbox.

POSThttps://api.gravv.xyz/v1/cards/applications/newTry it
Api-Key

Opens a card application for a customer whose basic KYC is completed, using your active card account. In live, apply with POST /v1/risk/features/activate and feature_id: virtual_cards instead; this route works in sandbox.

A second call for the same customer returns the existing application, in the shape of GET /v1/cards/applications/{application_id}, and does not check the new body. The response has no application_status; read it from GET /v1/cards/applications.

Headers

NameDescription
Idempotency-Key:stringRequired
1 to 255 printable ASCII characters. A retry with the same key within 24 hours returns the first response. Use a new key for each new card or withdrawal, and the same key to retry a failed one.

Body parameters

NameDescription
customer_id:stringRequired
The cardholder. Their basic KYC must be completed. For a business card, an associated person of the business.
account_id:string
Your active account of type card. Send this or wallet_id, not both.
wallet_id:string
For a business with no card account: one of your wallets, linked to the card instead. Withdrawals go back to it. It must be active, not a savings wallet, the wallet of one of your accounts, or a card's own balance wallet (named card-group-…, or card-… for older cards), have an address, and be on the chain your cards are issued on. A wallet of another business is refused. Send this or account_id, not both.
annual_remuneration:numberRequired
Cardholder's yearly income in USD
estimated_monthly_limit:numberRequired
Expected monthly spend in USD, not more than annual_remuneration
ip_address:stringRequired
The cardholder's IP address
type:string
Possible values: individual, business
Default"individual"
business_customer_id:string
Required with type: business. The business must have completed KYB and have a business_name, which is printed on the card.
funding:object
How the card is funded. shared joins a card group and shares its balance; without card_group_id it joins the cardholder's default group. own gives the card its own balance. Leave it out to use the application's group.
Show 4 child attributesobject

Response

Returns 200 OK. The new application, or the customer's existing one

NameDescription
data:oneOf
One of the following variants:
Show 14 child attributesoneOf
error:null

Errors

StatusMeaning
200The new application, or the customer's existing one
400A missing field, incomplete KYC, or an unusable card account
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/cards/applications/new' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: issue-card-jane-1' \
--header 'Content-Type: application/json' \
--data '{
"customer_id": "9e3cccad-e9ae-47a0-81ee-063af0159310",
"account_id": "9b40be8d-9d74-4d2a-8897-dea3ef80ad23",
"annual_remuneration": 60000,
"estimated_monthly_limit": 2000,
"ip_address": "203.0.113.24"
}'
Responseapplication/json
200400OK
{
"data": {
"message": "Card application request successful",
"status": true,
"id": "a14ec356-f33d-4384-ba68-4d9bfa19765b"
},
"error": null
}