# Production order duration breakdown by state (/docs/api-reference/reports/ReportsController_getOrderDurationBreakdown)

`GET /api/factories/{factoryId}/reports/order-duration/{orderId}`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `factoryId` | path | yes | string | Factory ID |
| `orderId` | path | yes | string | Production Order ID |

## Responses

### 200: Time spent in each state