List a customer’s saved payment methods.
curl https://api.geldstuck.com/v1/payments/customers/cus_01HX3ZR.../payment-methods \
-H "x-api-key: $GELDSTUCK_PUBLIC_KEY" \
-H "x-api-secret: $GELDSTUCK_SECRET_KEY"
{
"data": [
{
"id": "pm_01HX3ZS...",
"type": "card",
"card": { "brand": "visa", "last4": "4242", "expMonth": 12, "expYear": 2030 },
"isDefault": true
}
]
}
curl https://api.geldstuck.com/v1/payments/customers/cus_01HX3ZR.../payment-methods \
-H "x-api-key: $GELDSTUCK_PUBLIC_KEY" \
-H "x-api-secret: $GELDSTUCK_SECRET_KEY"
{
"data": [
{
"id": "pm_01HX3ZS...",
"type": "card",
"card": { "brand": "visa", "last4": "4242", "expMonth": 12, "expYear": 2030 },
"isDefault": true
}
]
}
curl https://api.geldstuck.com/v1/payments/customers/cus_01HX3ZR.../payment-methods \
-H "x-api-key: $GELDSTUCK_PUBLIC_KEY" \
-H "x-api-secret: $GELDSTUCK_SECRET_KEY"
{
"data": [
{
"id": "pm_01HX3ZS...",
"type": "card",
"card": { "brand": "visa", "last4": "4242", "expMonth": 12, "expYear": 2030 },
"isDefault": true
}
]
}