Component: Price Points

List Component Price Points

GET
/components/{component_id}/price_points.json

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.

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

Query Parameters

currency_prices?boolean

Include an array of currency price data.

page?integer

Result records are organized in pages. By default, the first page of results is displayed. The page parameter specifies a page number of results to fetch. You can start navigating through the pages to consume the results. You do this by passing in a page parameter. Retrieve the next page by adding ?page=2 to the query string. If there are no results to return, then an empty result set will be returned. Use in query page=1.

Range1 <= value
Default1
per_page?integer

This parameter indicates how many records to fetch in each request. Default value is 20. The maximum allowed values is 200; any per_page value over 200 will be changed to 200. Use in query per_page=200.

Rangevalue <= 200
Default20
filter[type]?array<>

Use in query: filter[type]=catalog,default.

Response Body

application/json

curl -X GET "https://example.com/components/0/price_points.json"
{  "price_points": [    {      "id": 80,      "default": false,      "name": "Wholesale Two",      "pricing_scheme": "per_unit",      "component_id": 74,      "handle": "wholesale-two",      "archived_at": null,      "created_at": "2017-07-05T13:55:40-04:00",      "updated_at": "2017-07-05T13:55:40-04:00",      "prices": [        {          "id": 121,          "component_id": 74,          "starting_quantity": 1,          "ending_quantity": null,          "unit_price": "5.0"        }      ]    },    {      "id": 81,      "default": false,      "name": "MSRP",      "pricing_scheme": "per_unit",      "component_id": 74,      "handle": "msrp",      "archived_at": null,      "created_at": "2017-07-05T13:55:40-04:00",      "updated_at": "2017-07-05T13:55:40-04:00",      "prices": [        {          "id": 122,          "component_id": 74,          "starting_quantity": 1,          "ending_quantity": null,          "unit_price": "4.0"        }      ]    }  ]}