App öffnen
Moonborn — API · billing

List saved payment methods (Stripe `pm_*` references)

GET/v1/billing/payment_methodsscope · Bearer (API key or session JWT)

Responses

200OK
Body
FieldTypeDescription
itemsreqobject[]
401Unauthenticated
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring

Examples

cURL
curl -X GET https://api.moonborn.co/v1/billing/payment_methods \
  -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';

const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });

const result = await client.billing.listPaymentMethods();
Python
import os
from moonborn import Moonborn

client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])

result = client.billing.list_payment_methods()