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.
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 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.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X PUT \ --url 'https://subdomain.chargify.com/components/1/price_points/1.json' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ --data-raw '{ "price_point": { "name": "Default", "prices": [ { "id": 1, "ending_quantity": 100, "unit_price": 5 }, { "id": 2, "_destroy": true }, { "unit_price": 4, "starting_quantity": 101 } ] }}'