GET
/api/public/v1/billing/payment-methods

List payment methods

Return all payment methods attached to the organization’s Stripe customer.

GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/billing/payment-methods" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key"
200Example response
json
{
  "message": "Payment methods retrieved successfully!",
  "content": {
    "paymentMethods": [
      {
        "id": "pm_123",
        "type": "card",
        "card": {
          "brand": "visa",
          "last4": "4242",
          "expMonth": 12,
          "expYear": 2030
        }
      }
    ],
    "defaultPaymentMethodId": "pm_123"
  }
}