RevKeen Docs
Api reference

Get customer payment methods

Retrieve all payment methods for a customer


Related endpoints

  • GET /customers/{customerId}/invoices — List customer invoices
  • GET /customers/{customerId}/subscriptions — List customer subscriptions
  • GET /customers/{customerId}/orders — List customer orders
  • GET /customers/{customerId}/payments — List customer payments
  • PUT /customers/external/batch — Batch upsert customers by external ID
  • POST /customers — Create a new customer
  • GET /customers — List customers
  • GET /customers/{id} — Get customer by ID

Common errors

  • 401 unauthenticated — missing, malformed, or revoked API key.
  • 404 resource_missing — the referenced resource does not exist or is not visible to your key.

Pagination

Offset-based with limit (default 25, max 100) and offset. The response pagination block includes total and hasMore. See the pagination guide for SDK auto-paging helpers.

GET
/customers/{id}/payment-methods
x-api-key<token>

Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.

In: header

Path Parameters

id*string

Customer UUID

Formatuuid

Response Body

application/json

curl "https://api.revkeen.com/v2/customers/00000000-0000-0000-0000-000000000000/payment-methods" \  -H "x-api-key: $REVKEEN_API_KEY"
{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "object": "payment_method",
      "public_id": "pm_1a2b3c4d5e6f",
      "type": "card",
      "status": "active",
      "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
      "is_default": true,
      "card": {
        "brand": "visa",
        "last4": "4242",
        "exp_month": 12,
        "exp_year": 2028,
        "funding": "credit"
      },
      "us_bank_account": {
        "bank_name": "Chase",
        "last4": "6789",
        "routing_number_last4": "1234",
        "account_type": "checking"
      },
      "billing_details": {
        "name": "string",
        "email": "user@example.com",
        "phone": "string",
        "address": {
          "line1": "string",
          "line2": "string",
          "city": "string",
          "state": "string",
          "postal_code": "string",
          "country": "string"
        }
      },
      "metadata": {
        "property1": null,
        "property2": null
      },
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}
Empty
Empty