Component: Price Points

Create Component Price Point

POST
/components/{component_id}/price_points.json

Creates a price point for an existing 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

Request Body

application/json

price_point*|

Response Body

application/json

application/json

curl -X POST "https://example.com/components/0/price_points.json" \  -H "Content-Type: application/json" \  -d '{    "price_point": {      "name": "Wholesale",      "handle": "wholesale-handle",      "pricing_scheme": "stairstep",      "use_site_exchange_rate": false,      "prices": [        {          "starting_quantity": "1",          "ending_quantity": "100",          "unit_price": "5.00"        },        {          "starting_quantity": "101",          "ending_quantity": "200",          "unit_price": "4.00"        }      ]    }  }'
{  "price_point": {    "id": 0,    "type": "catalog",    "default": true,    "name": "string",    "pricing_scheme": "stairstep",    "component_id": 0,    "handle": "string",    "archived_at": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "prices": [      {        "id": 0,        "component_id": 0,        "starting_quantity": 0,        "ending_quantity": 0,        "unit_price": "string",        "price_point_id": 0,        "formatted_unit_price": "string",        "segment_id": 0      }    ],    "use_site_exchange_rate": true,    "subscription_id": 0,    "tax_included": true,    "interval": 0,    "interval_unit": "day",    "currency_prices": [      {        "id": 0,        "currency": "string",        "price": "string",        "formatted_price": "string",        "price_id": 0,        "price_point_id": 0      }    ],    "overage_prices": [      {        "id": 0,        "component_id": 0,        "starting_quantity": 0,        "ending_quantity": 0,        "unit_price": "string",        "price_point_id": 0,        "formatted_unit_price": "string",        "segment_id": 0      }    ],    "overage_pricing_scheme": "stairstep",    "renew_prepaid_allocation": true,    "rollover_prepaid_remainder": true,    "expiration_interval": 0,    "expiration_interval_unit": "day"  }}