Endpoints
Path Parameters
The project’s Share ID
Query Parameters (GET)
Cuprice’s numeric plan ID:
cuprice_plan_id in the checkout link, or pricingPlans[].id in the Share API. Only plans that are visible on the page are found.Body Parameters (POST)
The chosen features, as objects with a
name that matches a feature in the project, for example [{ "name": "API calls" }]. Names that match no feature are left out of the price and of features.Amounts for limit and usage-based features, keyed by feature name, for example
{ "API calls": 10000 }.Response
The plan, its features, the price breakdown, return URLs and metadata. Field by field in Checkout Flow.
Your checkout link with all query parameters added: the address a buyer is sent to.
Errors
Example: a plan
features entries also carry featureType, multiplier, basePrice and a pricing object.
Example: a custom plan
payload.plan.id is 0, payload.plan.isCustom is true, and payload.customPlan holds the selection:
