Get recipe
const url = 'http://localhost:8080/v1/recipes/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/v1/recipes/example \ --header 'Authorization: Bearer <token>'Registry only — no DB read, no install state.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Recipe template with creates summary
object
One override key declared in a recipe’s overridable list. Drives validation at instantiate time and the override form in the dashboard’s preview dialog.
object
Default value applied when the override is not supplied.
object
object
Optional when the base fee is 0; the plan is then in_arrears (ADR-031).
The plan’s usage prices. Each takes the plan’s currency.
One usage price of a recipe plan. It takes the plan’s currency.
object
The event_name of the recipe meter the price is on.
object
per_unit bills quantity × unit_amount_cents. graduated bills each tier’s part of the quantity at that tier’s rate. package bills ceil(quantity ÷ package_size) × package_amount_cents: a part package bills as a whole one.
Price per unit in cents, as a decimal string (e.g. “0.0003” = $3.00 per 1,000,000 units). Used when mode is per_unit. 0 or more, under 10^18, at most 12 decimal places (trailing zeros do not count), and at most 100 characters. A JSON number is also read. A value outside them is refused with 422 and param naming the field. Invoice line amounts round to whole cents.
Used when mode is graduated. Each up_to is a whole number above the one before. The last tier has up_to: null (no upper bound), and only the last. Otherwise 422 with param tiers. A tier’s rate takes the limits of unit_amount_cents; a refusal names tiers[i].unit_amount_cents (i counts from 0).
object
The tier’s upper bound in whole units: the tier prices the quantity above the previous tier’s bound, up to this one. null on the last tier, which has no upper bound. Only the last tier is null, and it must be.
Price per unit in cents in this tier, as a decimal string.
Used when mode is package. Must be above 0.
Price of one package in cents, as a decimal string (e.g. “0.2” with package_size 1000 = $0.002 per 1,000 units), with the limits of unit_amount_cents. Used when mode is package.
Per-role count of objects a recipe will produce when instantiated. Recipes create no product entity — there is no products count.
object
The prices the install puts on its plans.
Example
{ "overridable": [ { "type": "string" } ], "plans": [ { "billing_interval": "monthly", "base_bill_timing": "in_advance", "prices": [ { "mode": "per_unit" } ] } ]}Unknown recipe key