List a company's saved cards
curl --request GET \ --url https://example.com/api/v1/clients/example/saved-cards \ --header 'Authorization: Bearer <token>'Lists the cards saved on the company’s Stripe customer (brand, last four digits, expiry) from Stripe, and says what a charge with no card named does: ready (it charges the card marked isDefault), choice_required (the customer has several cards and none is the default, so POST /invoices/{id}/charge needs a paymentMethodId from this list) or none (no card can be charged, with the reason). Reads Stripe on every call. Requires the invoices.manage permission and a company the caller reaches.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”The company’s saved cards.
object
The saved cards of a client company and what a charge with no card named does.
object
A card saved on a client’s Stripe customer.
object
Stripe’s card brand, e.g. visa, mastercard, amex; unknown when it has none.
Expiry month, 1 to 12.
True once the card’s expiry month has passed.
The card’s Stripe payment method id; send it as paymentMethodId to charge this card.
True for the card a charge uses when no card is named: the customer’s default, the card its Stripe subscription is charged with, or its only card.
Why no card qualifies; null otherwise.
ready: a charge picks a card itself (isDefault). choice_required: the customer has several cards and none is the default, so a charge needs paymentMethodId. none: no card can be charged; see reason.
Example
{ "data": { "status": "ready" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC