Subscription Components

Bulk Reset Subscription Components' Price Points

POST
/subscriptions/{subscription_id}/price_points/reset.json

Resets all of a subscription's components to use the current default.

Note: this will update the price point for all of the subscription's components, even ones that have not been allocated yet.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Path Parameters

subscription_id*integer

The Chargify id of the subscription.

Response Body

application/json

curl -X POST "https://example.com/subscriptions/0/price_points/reset.json"
{  "subscription": {    "id": 80293620,    "state": "active",    "trial_started_at": null,    "trial_ended_at": null,    "activated_at": "2023-11-23T10:28:34-05:00",    "created_at": "2023-11-23T10:28:34-05:00",    "updated_at": "2023-11-23T10:28:34-05:00",    "expires_at": null,    "balance_in_cents": 50504234,    "current_period_ends_at": "2023-11-23T10:28:34-05:00",    "next_assessment_at": "2023-11-23T10:28:34-05:00",    "canceled_at": null,    "cancellation_message": "lorem ipsum",    "next_product_id": null,    "cancel_at_end_of_period": false,    "payment_collection_method": "remittance",    "snap_day": null,    "cancellation_method": "dunning",    "current_period_started_at": "2023-11-23T10:28:34-05:00",    "previous_state": "active",    "signup_payment_id": -45156092,    "signup_revenue": "do aliquip ea",    "delayed_cancel_at": null,    "coupon_code": null,    "total_revenue_in_cents": -49740952,    "product_price_in_cents": 87617888,    "product_version_number": 13656635,    "payment_type": null,    "referral_code": null,    "coupon_use_count": null,    "coupon_uses_allowed": null,    "reason_code": null,    "automatically_resume_at": null,    "current_billing_amount_in_cents": -26151968,    "customer": {      "id": 15208337,      "first_name": "ipsum culpa in labore eiusmod",      "last_name": "esse",      "organization": null,      "email": "ex eiusmod",      "created_at": "2021-05-05T16:00:21-04:00",      "updated_at": "2021-05-05T16:00:21-04:00",      "reference": "laboris ea cupidatat",      "address": null,      "address_2": null,      "city": "id eiusmod proident",      "state": "magna eiusmod anim non",      "zip": null,      "country": null,      "phone": null,      "portal_invite_last_sent_at": null,      "portal_invite_last_accepted_at": "2021-05-05T20:00:21-04:00",      "portal_customer_created_at": "2021-05-05T16:00:21-04:00",      "cc_emails": "eiusmod sunt",      "tax_exempt": true    },    "product": {      "id": -74447756,      "name": "eu mollit nulla ut aute",      "handle": "esse dolor anim",      "description": "Lorem ut et non",      "accounting_code": "nisi",      "request_credit_card": false,      "expiration_interval": 1,      "expiration_interval_unit": "day",      "created_at": "2022-11-23T10:28:34-05:00",      "updated_at": "2022-11-23T10:28:34-05:00",      "price_in_cents": -4151649,      "interval": 20680876,      "interval_unit": "day",      "initial_charge_in_cents": null,      "trial_price_in_cents": null,      "trial_interval": null,      "trial_interval_unit": "day",      "archived_at": null,      "require_credit_card": true,      "return_params": "magna eu",      "taxable": true,      "update_return_url": "exercitation in",      "tax_code": "Excepteur aliqua sunt in",      "initial_charge_after_trial": true,      "version_number": 41642597,      "update_return_params": "dolore labore",      "product_family": {        "id": -5356997,        "name": "officia amet Lorem proident enim",        "description": "Duis",        "handle": "ea dolore dolore sunt",        "accounting_code": null      }    }  }}