Payment methods

Retrieve payment method

Changed on

Retrieves a saved payment method from a member's wallet when you pass member_id or account_id, or from your own otherwise.

Required permissions:

  • member:payment_methods:read
get/payment_methods/{id}

Request

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

Path parameters

id, string required
Example:payt_xxxxxxxxxxxxx

The unique identifier of the payment method.

Query parameters

member_id, string

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

Example:mber_xxxxxxxxxxxxx
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

union required
object required

A saved payment method with no type-specific details available.

OR
object required

A saved card payment method, including brand, last four digits, and expiration details.

OR
object required

A saved US bank account payment method, including bank name, last four digits, and account type.

OR
object required

A saved Cash App payment method, including the buyer's cashtag and unique identifier.

OR
object required

A saved iDEAL payment method, including the customer's bank name and BIC code.

OR
object required

A saved SEPA Direct Debit payment method, including the bank code, country, and last four IBAN digits.

Example response

{
  "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 oneOf[subschema #1: BasePaymentMethod]/payment_method_type response property for the response status

    • warning

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

    • warning

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

    3 more changes in this revision