Skip to main content
GET
/
api
/
v1
/
cardholders
/
{id}
/
payment-method
/
status
curl https://api.agentcard.sh/api/v1/cardholders/ch_abc123/payment-method/status \
  -H "Authorization: Bearer sk_test_..."
{
  "hasPaymentMethod": true,
  "paymentMethodId": "pm_abc123"
}
Returns whether the cardholder has a payment method attached and ready for card creation. A cardholder must have a payment method before you can create cards for them.

Path parameters

id
string
required
The cardholder’s unique identifier.

Response

hasPaymentMethod
boolean
Whether the cardholder has a payment method attached.
paymentMethodId
string
The Stripe payment method ID. Only present when hasPaymentMethod is true.
curl https://api.agentcard.sh/api/v1/cardholders/ch_abc123/payment-method/status \
  -H "Authorization: Bearer sk_test_..."
{
  "hasPaymentMethod": true,
  "paymentMethodId": "pm_abc123"
}