JamiDev
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/orders
curl "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
}
  • amount is what the buyer paid, in santim, before any withdrawal fee.
  • productId and customerId come back as objects with the product title and customer email and name.
  • checkoutSessionId is the sessionId from POST /checkout.
  • environment is sandbox for test orders.
  • metadata is the snapshot taken at checkout: the product's metadata, then any checkout link's, then the metadata you passed to POST /checkout, later ones winning.
  • description is only present on custom-amount orders. Their productId comes back as { "title": "Custom payment" }, an internal placeholder; show description instead.

Other fields may be present; ignore the ones you don't use.

To page through everything, keep requesting page + 1 until page * limit >= total.

On this page