Promote Price Point to Default
Sets a new default price point for the component. This new default will apply to all new subscriptions going forward - existing subscriptions will remain on their current price point.
See Price Points Documentation for more information on price points and moving subscriptions between price points.
Note: Custom price points are not able to be set as the default for a component.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
The Advanced Billing id of the component to which the price point belongs
The Advanced Billing id of the price point
Response Body
application/json
curl -X PUT "https://example.com/components/0/price_points/0/default.json"{ "component": { "id": 292609, "name": "Text messages", "pricing_scheme": "stairstep", "unit_name": "text message", "unit_price": null, "product_family_id": 528484, "price_per_unit_in_cents": null, "kind": "metered_component", "archived": false, "taxable": false, "description": null, "created_at": "2019-08-02T05:54:53-04:00", "prices": [ { "id": 47, "component_id": 292609, "starting_quantity": 1, "ending_quantity": null, "unit_price": "1.0", "price_point_id": 173, "formatted_unit_price": "$1.00" } ], "default_price_point_name": "Original" }}List Components for Product Family GET
Lists components for a particular product family.
List Component Price Points GET
Lists the price points associated with a component. You may specify the component by using either the numeric id or the `handle:gold` syntax. If the price point is set to `use_site_exchange_rate: true`, it will return pricing based on the current exchange rate. If the flag is set to false, it will return all of the defined prices for each currency.