Changes the default payment profile on the subscription group to the existing payment profile with the specified ID.
You must elect to change the existing payment profile to a new payment profile ID in order to receive a satisfactory response from this endpoint.
The new payment profile must belong to the subscription group's customer, otherwise you will receive an error.
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 uid of the subscription group
The Chargify id of the payment profile
application/json
application/json
curl -X POST \ --url 'https://subdomain.chargify.com/subscription_groups/uid/payment_profiles/1/change_payment_profile.json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN'