Update Component Price Point
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.
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.
Request Body
application/json
Response Body
application/json
application/json
curl -X PUT "https://example.com/components/0/price_points/0.json" \ -H "Content-Type: application/json" \ -d '{ "price_point": { "name": "Default", "prices": [ { "id": 1, "ending_quantity": 100, "unit_price": 5 }, { "id": 2, "_destroy": true }, { "starting_quantity": 101, "unit_price": 4 } ] } }'{ "price_point": { "id": 0, "type": "catalog", "default": true, "name": "string", "pricing_scheme": "stairstep", "component_id": 0, "handle": "string", "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "prices": [ { "id": 0, "component_id": 0, "starting_quantity": 0, "ending_quantity": 0, "unit_price": "string", "price_point_id": 0, "formatted_unit_price": "string", "segment_id": 0 } ], "use_site_exchange_rate": true, "subscription_id": 0, "tax_included": true, "interval": 0, "interval_unit": "day", "currency_prices": [ { "id": 0, "currency": "string", "price": "string", "formatted_price": "string", "price_id": 0, "price_point_id": 0 } ], "overage_prices": [ { "id": 0, "component_id": 0, "starting_quantity": 0, "ending_quantity": 0, "unit_price": "string", "price_point_id": 0, "formatted_unit_price": "string", "segment_id": 0 } ], "overage_pricing_scheme": "stairstep", "renew_prepaid_allocation": true, "rollover_prepaid_remainder": true, "expiration_interval": 0, "expiration_interval_unit": "day" }}