Create product
jami_create_productCreate a product your organization sells and get its public Jami page URL and token. It publishes by default, so the page and checkouts work immediately.
Instructions
Create a product the organization sells, and get its public Jami page (url) and p_… token. Published by default, so the page and checkouts work immediately.
Pricing (can't be changed after creation; the amounts can):
fixed: amount_minor is the price, e.g. 250000 = 2,500.00 ETB.
pwyw (flexible): minimum_amount_minor; each checkout then sends its own amount.
free: no price.
Args: title (1–120 chars), pricing_model, amount_minor / minimum_amount_minor, description?, status? ('published' | 'draft').
Returns: { product_id, token, url, title, status, pricing_model, price }. To charge for it, call jami_create_checkout with product_id = token (omit gateway for a payment link).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| status | No | published | |
| description | No | ||
| amount_minor | No | Fixed price in santim | |
| pricing_model | Yes | ||
| response_format | No | 'markdown' (default) for a readable summary, 'json' for the full structured payload | markdown |
| minimum_amount_minor | No | Flexible price floor in santim |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public Jami page where anyone can buy it (published only) | |
| price | Yes | ||
| title | Yes | ||
| token | Yes | Use as product_id in jami_create_checkout | |
| status | Yes | ||
| product_id | Yes | ||
| amount_minor | Yes | ||
| pricing_model | Yes | ||
| minimum_amount_minor | Yes |