Payment methods

Delete payment method

Changed on

Delete a saved payment method. Cannot delete a payment method attached to an active subscription.

Required permissions:

  • member:payment_methods:manage
delete/payment_methods/{id}

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/payment_methods/{id}
  • Auth: HTTP bearer

Path parameters

idstring required
Example:payt_xxxxxxxxxxxxx

The unique identifier of the payment method to delete.

Query parameters

member_idstring

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_idstring

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

boolean required

Represents true or false values.

Changes

    • warning

      deleted the query request parameter company_id

    • info

      added the new optional query request parameter account_id