Bulk Create Component Price Points
Creates multiple component price points in one request.
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 for which you want to fetch price points.
Request Body
application/json
Response Body
application/json
application/json
curl -X POST "https://example.com/components/string/price_points/bulk.json" \ -H "Content-Type: application/json" \ -d '{ "price_points": [ { "name": "Wholesale", "handle": "wholesale", "pricing_scheme": "per_unit", "prices": [ { "starting_quantity": 1, "unit_price": 5 } ] }, { "name": "MSRP", "handle": "msrp", "pricing_scheme": "per_unit", "prices": [ { "starting_quantity": 1, "unit_price": 4 } ] }, { "name": "Special Pricing", "handle": "special", "pricing_scheme": "per_unit", "prices": [ { "starting_quantity": 1, "unit_price": 5 } ] } ] }'{ "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" } ] } ]}Create Component Price Point POST
Creates a price point for an existing component.
Clone Component Price Point POST
Clones a component price point. Custom price points (tied to a specific subscription) cannot be cloned. The following attributes are copied from the source price point: - Pricing scheme - All price tiers (with starting/ending quantities and unit prices) - Tax included setting - Currency prices (if definitive pricing is set) - Overage pricing (for prepaid usage components) - Interval settings (if multi-frequency is enabled) - Event-based billing segments (if applicable)