Component: Price Points

Archive Component Price Point

DELETE
/components/{component_id}/price_points/{price_point_id}.json

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

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

In: header

Path Parameters

component_id*|

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.

price_point_id*|

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