Payment methods

Delete a payment method for a customer

Changed on

Deletes a customer payment method using its ID.

Deleted payment methods are no longer saved and presented to the customer for future purchases.

Saved payment methods can't be deleted if tied to an active, trialing, paused, or past_due subscription. Update the subscription's payment method first, then delete the saved payment method.

There's no way to recover a deleted saved payment method. It's permanently removed from that customer.

delete/customers/{customer_id}/payment-methods/{payment_method_id}

Request

  • Base URL
    https://sandbox-api.paddle.com
  • Auth
    HTTP bearer

Path parameters

customer_idstring required

Unique Paddle ID for this customer entity, prefixed with ctm_.

Example:ctm_01grnn4zta5a1mf02jjze7y2ys

Paddle ID of the customer entity to work with.

payment_method_idstring required

Paddle ID of the payment method entity to work with.

Response

There is no content to send for this request, but the headers may be useful.

Changes

    • breaking

      added the pattern ^ctm_[a-z\d]{26}$ to the path request parameter customer_id

    • breaking

      added the new path request parameter customer_id

    • breaking

      added the new path request parameter payment_method_id

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added to the response property allOf list for the response status

    • info

      the response property became required for the status

    • info

      the response property became required for the status