Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Collections Get saved cards

Get saved cards

Lists a customer's saved cards, default card first, then newest. The list includes cards that are not active yet; only a card with `is_active` true can be charged.

GEThttps://api.gravv.xyz/v1/collections/cardsTry it
Api-Key

Query parameters

NameDescription
customer_id:stringRequired
The customer's ID. Always send it.
client_customer_id:string
When set, Gravv matches cards by this value only and does not filter by customer_id.

Response

Returns 200 OK. The saved cards

NameDescription
data:object[]
Show 12 child attributesobject[]
error:null

Errors

StatusMeaning
200The saved cards
400The request failed. A missing or invalid customer_id returns invalid customer_id format: invalid input.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/collections/cards?customer_id=f827e428-c497-4b21-8855-99d978909c28&client_customer_id=merchant-user-123' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400OK
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"card_token": "tokn_80aebb6ea2594a74bc",
"card_last4": "1111",
"card_brand": "visa",
"card_exp_month": "12",
"card_exp_year": "2028",
"is_default": true,
"is_active": true,
"cardholder_name": "JANE DOE",
"is_expiring_soon": false,
"billing_info": {
"first_name": "Jane",
"last_name": "Doe",
"country": "US"
},
"created_at": "2026-10-01T10:00:00Z"
}
],
"error": null
}