Deletes a payment profile belonging to the customer on the subscription.
If the customer has multiple subscriptions, the payment profile will be removed from all of them.
If you delete the default payment profile for a subscription, you will need to specify another payment profile to be the default through the api, or either prompt the user to enter a card in the billing portal or on the self-service page, or visit the Payment Details tab on the subscription in the Admin UI and use the “Add New Credit Card” or “Make Active Payment Method” link, (depending on whether there are other cards present).
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
The Chargify id of the subscription.
The Chargify id of the payment profile
curl -X DELETE \ --url 'https://subdomain.chargify.com/subscriptions/1/payment_profiles/1.json' \ -H 'Authorization: Bearer ACCESS_TOKEN'