Creates multiple segments in one request. The array of segments can contain up to 2000 records.
If any of the records contain an error the whole request would fail and none of the requested segments get created. The error response contains a message for only the one segment that failed validation, with the corresponding index in the array.
You may specify component and/or price point by using either the numeric ID or the handle:gold syntax.
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
ID or Handle for the Component
ID or Handle for the Price Point belonging to the Component
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST \ --url 'https://subdomain.chargify.com/components/COMPONENT_ID/price_points/PRICE_POINT_ID/segments/bulk.json' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ --data-raw '{}'items <= 2000