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

# 4.10 Admin

> Administrative operational metrics.

Administrative operational metrics. All operations require the `EntraBearer` HTTP bearer scheme.

## Create a test order

`POST /v1/admin/orders`

For an Admin, creates an order record for local or integration testing. Production orders should normally be created by the payment integration.

**Request body** (`application/json`, required): [`CreateOrderRequest`](https://docs.khanhng.com/decision-lane/api-reference/models#createorderrequest)

**Responses**

| Status | Description | Body |
| - | - | - |
| 201 | Successful Response | [`OrderRecord`](https://docs.khanhng.com/decision-lane/api-reference/models#orderrecord) |
| 401 | The bearer token is missing or invalid. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 403 | The authenticated user does not have a required role. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 409 | The request conflicts with the resource's current state. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 422 | Validation Error | [`HTTPValidationError`](https://docs.khanhng.com/decision-lane/api-reference/models#httpvalidationerror) |

## Get administrative claim metrics

`GET /v1/admin/kpis`

Returns claim totals and counts grouped by status for an Admin.

**Responses**

| Status | Description | Body |
| - | - | - |
| 200 | Successful Response | [`AdminKpis`](https://docs.khanhng.com/decision-lane/api-reference/models#adminkpis) |
| 401 | The bearer token is missing or invalid. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 403 | The authenticated user does not have a required role. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |


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