Component: Price Points

Bulk Create Component Price Points

POST
/components/{component_id}/price_points/bulk.json

Creates multiple component price points in one request.

Authorization

BasicAuth
AuthorizationBasic <token>

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

In: header

Path Parameters

component_id*string

The Advanced Billing id of the component for which you want to fetch price points.

Request Body

application/json

price_points*array<|>

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