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

# Get business order

> One order, with its customer and items.

One order, with its customer and items. It finds only this business's orders in the key's environment. Show it only behind a login.

Call this from your server with a `pk_` key. See [Store data overview](https://docs.khaime.com/api-reference/store-data/overview.md) for keys, errors and how to read empty values.

## Parameters

| Name | Type | Required | Description |
| - | - | - | - |
| `order_id` | integer | Yes | Path parameter. The `id` from [List business orders](https://docs.khaime.com/api-reference/store-data/list-orders.md). |

## Request

```bash theme={null}
curl -H "X-API-Key: $KHAIME_API_KEY" \
  "https://api.khaime.com/api/v1/analytics/orders/9012"
```

## Response

```json theme={null}
{
  "message": "Order retrieved",
  "success": true,
  "status": true,
  "data": {
    "environment": "live",
    "id": 9012,
    "order_number": "KH-9012",
    "amount": {
      "minor": 8200,
      "currency": "USD"
    },
    "payment_status": "paid",
    "delivery_status": "shipped",
    "customer_id": 771,
    "created_at": "2026-10-31T14:03:11.000Z",
    "customer": {
      "id": 771,
      "first_name": "Ada",
      "last_name": "Obi",
      "email": "ada@example.com"
    },
    "items": [
      {
        "title": "North Core Hoodie",
        "quantity": 1
      }
    ]
  }
}
```

## Read it correctly

* `customer` is `null` for a guest or a removed customer.
* An id that is not found returns `404` with `ORDER_NOT_FOUND`.


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