Docs/User API/Payment methods/List

List payment methods

Preview
GET/user/v1/paymentMethods

List payment methods for an account.

query parameters

  • organizationId

    string

    Show results for specified organization.

    If this is not provided the user's individual subscription(s) will be returned.

  • pageSize

    int32

    The maximum number of payment methods to return. The API may return fewer than this value.

    If unspecified, at most 20 payment methods will be returned. The maximum value is 100; values above 100 will be coerced to 100.

  • pageToken

    string

    A page token, received from a previous list payment methods call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to list payment methods must match the call that provided the page token.

Returns

  • paymentMethods

    PaymentMethod[]

    The list of payment methods.

  • nextPageToken

    string

    A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

  • previousPageToken

    string

    A token, which can be sent as pageToken to retrieve the previous page. If this field is absent, there are no preceding pages. If this field is an empty string then the previous page is the first result.

curl https://api.userhub.com/user/v1/paymentMethods?organizationId=org_28seyVGVL1got6 \
  -H "UserHub-Api-Key: $USERHUB_USER_KEY" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN"
Response bodyJSON
{
  "paymentMethods": [
    {
      "id": "pm_2kWzaZMKDM1x81",
      "type": "CARD",
      "displayName": "Visa **** 4242",
      "fullName": "Jane Doe",
      "address": {
        "lines": [
          "42 West St"
        ],
        "city": "Brooklyn",
        "state": "NY",
        "postalCode": "11222",
        "country": "US"
      },
      "default": true,
      "card": {
        "brand": "VISA",
        "expYear": 2030,
        "expMonth": 7,
        "last4": "4242",
        "fundingType": "CREDIT"
      },
      "createTime": "2025-05-15T13:00:00Z",
      "updateTime": "2025-05-15T13:00:00Z"
    }
  ]
}
PreviousThe payment method object
NextCreate a payment method

Build software thatmonetizes
$

Subscribe to monthly product updates

© 2025 UserHub

Integrations

    UserHub & Auth0UserHub & Stripe BillingUserHub & Google CloudUserHub & FirebaseUserHub & custom auth