Payment methods

List payment methods

Changed on

Returns a paginated list of saved payment methods for a member or account, or for the authenticated user when you pass neither.

Required permissions:

  • member:payment_methods:read
get/payment_methods

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

after, string

Returns the elements in the list that come after the specified cursor.

before, string

Returns the elements in the list that come before the specified cursor.

first, integer

Returns the first n elements from the list.

Example:42
last, integer

Returns the last n elements from the list.

Example:42
member_id, string

The unique identifier of the member to list payment methods for. Omit this and account_id to list your own saved payment methods.

Example:mber_xxxxxxxxxxxxx
direction, 'asc' | 'desc'

The sort direction for ordering results, either ascending or descending.

created_before, string date-time

Only return payment methods created before this timestamp.

Example:2023-12-01T05:00:00.401Z
created_after, string date-time

Only return payment methods created after this timestamp.

Example:2023-12-01T05:00:00.401Z
future_usage, 'off_session' | 'on_session'

Only return methods that can be charged this way. on_session leaves out saved Apple Pay and Google Pay cards, which can't be charged again while the buyer is present; off_session keeps every stored credential.

payment_method_types, PaymentMethodTypes[]

Only return payment methods of these types. Pass the eligible type values from the payment method types catalogue so the list holds nothing the purchase cannot take. An empty list returns no payment methods.

[
  "acss_debit"
]
card_brands, CardBrands[]

Only return cards on these networks, such as the networks the seller accepts. Payment methods that are not cards are unaffected.

card_funding_types, CardFundingTypes[]

Only return cards funded this way. A card whose funding could not be determined is excluded, and payment methods that are not cards are unaffected.

has_payer_document, boolean

Filter cards by whether they carry the payer identity document their payment provider requires. Payment methods that are not cards are unaffected.

expired, boolean

Filter by expiry. Only a card can expire, so false keeps every payment method that is not past its expiration month and true returns expired cards alone.

broken, boolean

Filter by whether the stored credential has permanently stopped charging, such as a vault entry its provider closed.

account_id, string

The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.

Example:biz_xxxxxxxxxxxxxx

Response

A successful response

object required

The connection type for PaymentMethodInterface.

data, PaymentMethodListItem[] required

A list of nodes.

page_info, PageInfo required

Information to aid in pagination.

Example response

{
  "data": [
    {
      "created_at": "2023-12-01T05:00:00.401Z",
      "id": "payt_xxxxxxxxxxxxx",
      "payment_method_type": "acss_debit"
    }
  ]
}

Changes

    • warning

      added the new bizum enum value to the data/items/oneOf[subschema #1: BasePaymentMethod]/payment_method_type response property for the response status

    • warning

      added the new bizum enum value to the data/items/oneOf[subschema #2: CardPaymentMethod]/payment_method_type response property for the response status

    • warning

      added the new bizum enum value to the data/items/oneOf[subschema #3: UsBankAccountPaymentMethod]/payment_method_type response property for the response status

    4 more changes in this revision