Skip to main content
GET
/
api
/
v1
/
billing
/
payment-methods
List saved Stripe payment methods
curl --request GET \
  --url http://localhost:3051/api/v1/billing/payment-methods \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.omnifence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Returns the cards saved to your account. We store only the brand, last four digits, and expiry — full card numbers never reach our servers. Cards appear here after you complete a top-up with Save card for future top-ups checked, or after running a setup-mode checkout via POST /billing/checkout-session. Requires the billing:write scope.

Response

{
  "payment_methods": [
    {
      "payment_method_id": "pm_1Q...",
      "card_brand": "visa",
      "card_last4": "4242",
      "card_exp_month": 12,
      "card_exp_year": 2030,
      "is_default": false,
      "created_at": "2026-05-11T10:00:00.000Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key from the Stars dashboard

Response

200

Default Response