Create custom pricing plan from template
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans/template/custom_pricing_plan
bodyobjectCustom plan generator configuration including pricing rules, tiers, and billing parameters
200Returns the newly created product plan with all configured pricing details and rules
400Invalid plan generator configuration or unsupported pricing rules
401Authentication required or invalid API key provided
403Insufficient permissions to create pricing plans
404Referenced product items or templates not found
500Internal server error occurred while generating pricing plan
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/account-pricing/product-plans/template/custom_pricing_plan \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"type": "custom_pricing_plan",
"id": "",
"billingPeriod": {},
"planName": "",
"entitlements": [
{
"id": "",
"apiName": ""
}
],
"priceGenerators": {
"dimensionKeys": [],
"productItemId": "",
"priceTiers": [
{
"leafNodeType": ""
}
],
"type": "cost_plus_dimension"
},
"invoiceBasedFees": {
"type": "constant_invoice_ratio_fee"
}
}'