---
title: "Completed vs rebooked counts since timestamp"
method: GET
path: "/api/analytics/finance/appointments/completed-rebooked-stats"
tags: ["analytics"]
---

# Completed vs rebooked counts since timestamp

`GET /api/analytics/finance/appointments/completed-rebooked-stats`

Returns completed total and completed-with-rebooking counts since from_timestamp.

## Query parameters

- `from_timestamp` string, date-time, required — Start timestamp (ISO 8601). Only appointments after this are counted.

## Response `200`

Successful Response

- CompletedRebookedStatsResponse — Completed and rebooked appointments stats response model.
  - `data` CompletedRebookedStatsRow[] — Usually one row with aggregated counts
    - `completed_total` integer, required — Total completed appointments since from_timestamp
    - `completed_with_rebooking` integer, required — Completed appointments that have a follow-up (rebooked)

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
