curl --request GET \
--url https://app.closerx.ai/api/list-cards/ \
--header 'api_key: <api-key>'{
"success": true,
"errors": [],
"response": [
{
"display_brand": "visa",
"exp_month": 9,
"exp_year": 2032,
"last4": "99999",
"customer": "z45j888B",
"id": "88GE",
"default": true
}
],
"message": "Cards List"
}Retrieves a list of saved payment methods (cards) for the authenticated user.
curl --request GET \
--url https://app.closerx.ai/api/list-cards/ \
--header 'api_key: <api-key>'{
"success": true,
"errors": [],
"response": [
{
"display_brand": "visa",
"exp_month": 9,
"exp_year": 2032,
"last4": "99999",
"customer": "z45j888B",
"id": "88GE",
"default": true
}
],
"message": "Cards List"
}Successfully retrieved list of saved cards
true
[]Show child attributes
Card brand (e.g., Visa, MasterCard)
"visa"
Card expiration month
9
Card expiration year
2032
Last 4 digits of the card
"99999"
Stripe customer ID
"z45j888B"
Stripe payment method ID
"88GE"
Whether this card is the default payment method
true
"Cards List"