Products & Benefits
Create products from code or the dashboard, and choose pricing, checkout fields, metadata and benefits.
A product is something you sell from a catalog: a template, a course, a license, a ticket. This page covers the choices you make when you create one.
Do you need a product?
Not to take a payment. If your server decides the price, such as a cart total, an invoice
or a top-up, charge the amount directly with an amount and a
description. No setup.
Create a product when you want any of these:
- a hosted checkout page you can share without writing code;
- checkout links or the storefront;
- benefits such as license keys, granted on payment;
- checkout fields the buyer fills in;
- a subscription that charges the buyer every week, month or year.
Create a product
From your server, with an API token:
const product = await jami.products.create({
title: 'Ge’ez Calligraphy Course', // 1–120 characters
pricingModel: 'fixed', // 'fixed' | 'pwyw' | 'free'
price: { amount: 250000 }, // 2,500.00 ETB
});
product.url; // 'https://jami.bio/jamidev/p_x7Kf3mQz9aBc', its public page
product.token; // 'p_x7Kf3mQz9aBc', pass it as productIdThe SDK publishes it straight away; pass status: 'draft' to hold it back. Later, change it
with jami.products.update(token, { price: { amount: 300000 } }), list them with
jami.products.list(), and stop selling one with jami.products.archive(token). Every call
is in the Products API.
Or in the dashboard: Store → Products → New product. Products made either way show up in both places.
Then charge for it, either by pushing a prompt to the buyer's phone or by sending them a payment link. See Collect the payment:
const { checkoutUrl } = await jami.createCheckout({ productId: product.token });
// 'https://jami.bio/jamidev/pay/cs_…' for this one buyerBenefits and checkout fields are attached in the dashboard.
Recurring products
A product with productType: 'recurring' is a subscription plan. The payer approves it once
on Jami with their wallet PIN, and Jami charges their Jami wallet every period until either
side cancels:
const plan = await jami.products.create({
title: 'Gebeta Club membership',
pricingModel: 'fixed', // recurring plans are fixed-price
price: { amount: 25000 }, // 250.00 ETB per period
productType: 'recurring',
billingInterval: 'month', // 'week' | 'month' | 'year'
intervalCount: 1, // week: 1–52, month: 1–12, year: 1
});The price must be 1 to 10,000 ETB (100 to 1000000 santim) per period. The interval is
locked after creation, and a price change only affects subscribe links created afterwards;
existing subscribers keep what they approved. Sell a plan with a
subscribe link (jami.subscriptions.createCheckout), not createCheckout. The whole flow
is on Subscriptions.
Pricing models
| Model | How it works |
|---|---|
fixed | One price you set. You can edit the amount later. |
pwyw | Flexible price. The amount comes from the checkout: your server's amount, or what the buyer types on the hosted page. It must be at or above your minimum (which can be 0), and you can set a pre-filled suggestion. |
free | No payment. The checkout creates the order immediately and grants benefits. |
pwyw stands for "pay what you want", but the buyer only chooses on the product's own page.
From the API, your server sends amount (integer santim) and the buyer pays exactly that,
whether you push the prompt or send a payment link. If you don't need anything else a
product gives you, a custom amount is simpler.
Create a flexible product with price: { minimumAmount } (and optionally defaultAmount);
a fixed one with price: { amount }.
The pricing model is locked after creation. Every checkout session also snapshots the price when it's created, so an order always shows what the buyer saw, even if you change the price a minute later.
For fixed products the server uses your configured price and ignores any amount sent by
a client. Buyers always pay exactly the listed price; fees come out when you
withdraw, never at checkout.
Checkout URLs and ids
Every published product has two identifiers:
- a public product token like
p_x7Kf3mQz9aBc, safe to put in links and front-end code; - an internal id (24 hex characters), shown on the product page.
POST /checkout, the Products API and the SDK accept either one.
Shareable URLs only use the token:
https://jami.bio/jamidev/p_x7Kf3mQz9aBcThat's the product's page: anyone can open it, type their details and pay, as often as they like. A payment link is different: it's created per checkout, for one buyer and one amount. Draft and archived products show a "not available" page and can't be bought from the API either.
Checkout fields
Collect extra information at checkout: text, number, date, checkbox or select. Define fields once in Developer → Checkout Fields, then attach them to products and mark each one required or optional.
From the API, send answers as collectedFields, keyed by field id:
await jami.createCheckout({
productId: 'p_x7Kf3mQz9aBc',
customer: { email: 'buyer@example.com', phone: '251911223344' },
gateway: 'telebirr',
collectedFields: { '6710c2e8b1a2f0012ab34c01': 'Team Abebe' },
});A missing required field returns 400 with the field's label in the message. A required
checkbox counts as missing unless it's true.
Metadata
A product can carry a metadata map of string keys to string values, such as a SKU or a
plan name. It's copied onto every order and included in order.* webhooks.
Checkout links can add their own metadata, and an API call can add
metadata too. On a key conflict, the checkout's own metadata wins, then the link's, then
the product's.
Benefits
Benefits are granted automatically once an order is paid. Create them in Automation → Benefits and attach them to products.
| Type | What happens today |
|---|---|
license_key | A unique key is generated per order. The buyer sees it on the success page and in the receipt email, and it's in the benefit.granted webhook as payload.licenseKey. |
discord_role, github_access, file_download, feature_flag, custom | A grant is recorded and benefit.granted fires, but Jami doesn't deliver anything yet. Fulfil these from your webhook handler. |
Grants are idempotent per order. Replayed payment notifications never grant twice.
Next
- Every product endpoint: API: Products.
- Charge every month instead of once: Subscriptions.
- Sell several products from one URL: Checkout links.
- Start a checkout from code: API: Checkout.
