Change Subscription Group Default Payment Profile
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.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
The uid of the subscription group
The Chargify id of the payment profile
Response Body
application/json
application/json
curl -X POST "https://example.com/subscription_groups/string/payment_profiles/0/change_payment_profile.json"{ "payment_profile": { "id": 10211899, "first_name": "Amelia", "last_name": "Example", "masked_card_number": "XXXX-XXXX-XXXX-1", "card_type": "bogus", "expiration_month": 2, "expiration_year": 2018, "customer_id": 14399371, "current_vault": "bogus", "vault_token": "1", "billing_address": "", "billing_city": "", "billing_state": "", "billing_zip": "", "billing_country": "", "customer_vault_token": null, "billing_address_2": "", "payment_type": "credit_card", "site_gateway_setting_id": 1, "gateway_handle": null }}Change Subscription Default Payment Profile POST
Changes the default payment profile on the subscription 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.
Read one time token details GET
Returns the one-time token data, including credit card or ACH details, associated with the provided token ID. One Time Tokens aka Advanced Billing Tokens house the credit card or ACH (Authorize.Net or Stripe only) data for a customer. You can use One Time Tokens while creating a subscription or payment profile instead of passing all bank account or credit card data directly to a given API endpoint. To obtain a One Time Token you have to use [Chargify.js](https://docs.maxio.com/hc/en-us/articles/38163190843789-Chargify-js-Overview#chargify-js-overview-0-0).