The model
Products describe what you sell; prices describe how much a buyer pays for it; checkout sessions and payment links turn prices into line items.- Product — what you sell (“Starter plan”, “Donation”). Carries name, description, images, unit label, kind, metadata, cross-sells.
- Price — belongs to one product; carries
unit_amount,currency,nickname, active state. A product can hold many prices (monthly vs annual, USD vs EUR) with one default. - Line item — a price selected for a specific checkout or link
(
{"price_id": "price_...", "quantity": 2}). Checkout sessions also accept inline line items for one-off amounts; payment links are always catalog-backed. - Optional item — a buyer-selectable add-on line: expedited service, setup packages, cross-sells.
npm install @ionicfi/sdk gives you typed calls for every request
below; the server SDK guide has details. Each example also
shows raw curl.
Create a product
Create a price
Use prices in checkout
Product fields
Price fields
Catalogs for connected merchants
A platform creates and updates a connected merchant’s products and prices with its platform secret key. Pass the merchant ID as the server SDK’saccount
option (@ionicfi/sdk 0.4.4 or later) or send it in the Ionic-Account
header. The platform key and the merchant’s connection both need
products:write. See Connect billing to put a
customer on the plan.
When to use inline amounts instead
Inline amounts are useful for prototypes, quotes, and one-off service invoices. Catalog objects are better once a price is reused, reported on, exposed in a dashboard, or selected by a payment link builder.What’s next
Sell with checkout
Turn catalog prices into line items on a hosted checkout page.
Share a payment link
Create a reusable link backed by a catalog price.
Bill recurring prices
Attach recurring prices to a customer and bill each period.

