REST API
Orders
List your organization's orders, newest first.
An order is the permanent record of a paid checkout. Each checkout session produces at
most one, however many times the payment notification is replayed. Use this endpoint for
reconciliation and reporting; for fulfilment, use the order.completed
webhook.
List orders
GET /api/jamidev/orderscurl "https://jami.bio/api/jamidev/orders?status=paid&limit=20" \
-H "Authorization: Bearer $JAMI_TOKEN"With the SDK: jami.listOrders({ status: 'paid', limit: 20 }).
Prop
Type
Response
{
"items": [
{
"_id": "6710c2e8b1a2f0012ab34c11",
"checkoutSessionId": "6710c2e8b1a2f0012ab34c00",
"productId": { "_id": "6710c2e8b1a2f0012ab34c22", "title": "Pro License" },
"customerId": { "_id": "6710c2e8b1a2f0012ab34c33", "email": "buyer@example.com", "name": "Abebe B." },
"amount": 15000,
"currency": "ETB",
"status": "paid",
"environment": "production",
"metadata": { "campaign": "launch" },
"paidAt": "2026-10-16T09:29:58.000Z",
"createdAt": "2026-10-16T09:29:58.000Z"
}
],
"total": 42,
"page": 1,
"limit": 20
}amountis what the buyer paid, in santim, before any withdrawal fee.productIdandcustomerIdcome back as objects with the product title and customer email and name.checkoutSessionIdis thesessionIdfromPOST /checkout.environmentissandboxfor test orders.metadatais the snapshot taken at checkout: the product's metadata, then any checkout link's, then themetadatayou passed toPOST /checkout, later ones winning.descriptionis only present on custom-amount orders. TheirproductIdcomes back as{ "title": "Custom payment" }, an internal placeholder; showdescriptioninstead.
Other fields may be present; ignore the ones you don't use.
To page through everything, keep requesting page + 1 until page * limit >= total.
