Archive Component Price Point
Archives a component price point. Subscriptions using a price point that has been archived will continue using it until they're moved to another price point.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
The id or handle of the component. When using the handle, it must be prefixed with handle:. Example: 123 for an integer ID, or handle:example-product-handle for a string handle.
The id or handle of the price point. When using the handle, it must be prefixed with handle:. Example: 123 for an integer ID, or handle:example-price_point-handle for a string handle.
Response Body
application/json
application/json
curl -X DELETE "https://example.com/components/0/price_points/0.json"{ "price_point": { "id": 79, "default": false, "name": "Wholesale", "pricing_scheme": "stairstep", "component_id": 74, "handle": "wholesale-handle", "archived_at": "2017-07-06T15:04:00-04:00", "created_at": "2017-07-05T13:44:30-04:00", "updated_at": "2017-07-05T13:44:30-04:00", "prices": [ { "id": 119, "component_id": 74, "starting_quantity": 1, "ending_quantity": 100, "unit_price": "5.0" }, { "id": 120, "component_id": 74, "starting_quantity": 101, "ending_quantity": null, "unit_price": "4.0" } ] }}Read Component Price Point GET
Returns details for a specific component price point. You can achieve this by using either the component price point ID or handle.
Update Component Price Point PUT
Updates a component price point and its associated prices. Passing in a price bracket without an `id` will attempt to create a new price. Including an `id` will update the corresponding price, and including the `_destroy` flag set to true along with the `id` will remove that price. Note: Custom price points cannot be updated directly. They must be edited through the Subscription.