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

List payment methods

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

GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/billing/payment-methods" \
  -H "Authorization: Bearer your_access_token"
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"
  }
}