Component: Price Points

Promote Price Point to Default

PUT
/components/{component_id}/price_points/{price_point_id}/default.json

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
AuthorizationBasic <token>

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

In: header

Path Parameters

component_id*integer

The Advanced Billing id of the component to which the price point belongs

price_point_id*integer

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"  }}