> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joinmarkt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders

> Create and track orders, invoices, and fulfillment status.

Orders represent a buyer purchase. Checkout creates a draft order (`processing`); payment webhooks move it to `paid`, and fulfillment moves it to `completed`.

**Merchant (Bearer) orders** live under `/api/merchant/v1/stores/{storeId}/orders` — see [Merchant orders](https://docs.joinmarkt.com/api-reference/merchant-orders.md).

## Hosted checkout

After an order/invoice exists:

```txt theme={null}
https://joinmarkt.com/checkout/{orderId}
```

This path is **not** rewritten through store subdomains.

## Status model

| Status | Meaning |
| - | - |
| `pending` | Created, awaiting action |
| `processing` | Draft checkout in progress |
| `unpaid` | Explicitly unpaid (some gateway verify paths) |
| `paid` | Payment settled; fulfillment may still be running |
| `completed` | Paid and fulfilled |
| `cancelled` | Cancelled |
| `expired` | Timed out |
| `refunded` | Refunded. Set on orders imported from another platform; Join Markt checkout does not set it. Emits the `order.refunded` outgoing webhook |

There is no `delivered` order status; delivery finishing moves the order to `completed`. See [Order status](https://docs.joinmarkt.com/api/order-status.md).

## Webhooks

Do not poll forever for payment — listen to provider IPN. See [Webhooks & IPN](https://docs.joinmarkt.com/developers/webhooks.md).

## Dashboard list

Vendors load orders for the active store from the dashboard orders APIs. Always gate fetches with a **real** `storeId` from `usePrimaryStoreId()` / bootstrap — never the shell placeholder.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.