List saved cards
GET/api/v1/billing/payment-methods
The cards saved for the organization. is_default marks the one
invoices are charged to. cards is [] when none has been saved.
Cards are added in the console.
Requires the billing:payment:read scope.
Authorization
Responses
200
The saved cards.
dataobjectcardsarray of CardShow Card properties
idstringbrandstringlast4stringexp_monthintegerexp_yearintegeris_defaultbooleanWhether invoices are charged to this card.
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
502
The saved cards could not be loaded from the payment provider (CARDS_UNAVAILABLE). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
503
Payments are not enabled on this environment (PAYMENTS_DISABLED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X GET 'https://evohub.io/api/v1/billing/payment-methods' \
-H 'Authorization: Bearer <TOKEN>'
