Skip to content

Create card

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

Create a new card for a customer.

Body Params

  • customer_idstringrequired

    ID of the customer to create a card for

  • card_limitnumberrequired

    Maximum spending limit on the card

  • name_on_cardstringrequired

    Name to be printed on the card

  • card_typestringrequired

    Type of card to create

    Allowed:virtualphysical
  • shipping_addressobject

    The shipping address for delivering a physical card. Provide this field only when the card type is physical.

Headers

  • Idempotency-Keystring

    A unique key to prevent duplicate requests.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/cards' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customer_id": "9e3cccad-e9ae-47a0-81ee-063af0159310",
"card_type": "virtual",
"card_limit": 50,
"name_on_card": "Jane Doe"
}'
{
"data": {
"message": "Card creation request is processing",
"status": true,
"id": "dce0192a-9b3d-440b-9500-33dc9ac8dc20",
"fee_charged": true,
"fee_pending": false,
"fee_id": "fee_abc123"
},
"error": null
}