List therapy plans
GET/api/integration/v1/therapy-plans
Returns therapy plans ordered by last update, oldest first. completedSessions and paidAmount change when a session is recorded or a payment is collected, and updatedAt changes too. Requires the therapy:read scope.
Query parameters
| Parameter | Description |
|---|---|
updatedSincestring · date-timeoptional |
Returns only records whose updatedAt is at or after this time. Use an ISO 8601 date-time with a time zone, for example 2026-10-01T00:00:00.000Z. For how to use it, see Incremental sync. |
cursorstringoptional |
The nextCursor value from the previous page, exactly as returned. Omit it on the first page. See Pagination. |
limitintegeroptional |
From 1 to 500. Default 200. |
Response 200
A page of therapy plans: { requestId, therapyPlans, nextCursor }. Each element of therapyPlans has the fields of a therapy plan, or is a deleted record (tombstone). If nextCursor is not null, there is a next page.
Errors
| Error code | When |
|---|---|
INVALID_UPDATED_SINCE400 | updatedSince is not an ISO 8601 date-time with a time zone, or appears more than once. |
INVALID_CURSOR400 | cursor is not valid, or was issued by a different endpoint. |
INVALID_LIMIT400 | limit is not an integer from 1 to 500. |
UNKNOWN_PARAMETER400 | A parameter that is not listed under “Query parameters”, including one with a misspelled name. |
INSUFFICIENT_SCOPE403 | The API key does not have the therapy:read scope. |
Every endpoint can also return 401, 429 and 5xx. See Error codes.
curl -sS "https://iclinic.phongkhamhieploi.vn/api/integration/v1/therapy-plans?limit=200" \
-H "Authorization: Bearer $ICLINIC_API_KEY"
{
"requestId": "req_7c1f3a",
"therapyPlans": [
{
"id": "7b2e4d90-1a63-4c85-b7f0-3d9a6c1e8b52",
"code": "LT-20261001-001",
"patientId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"name": "Liệu trình châm cứu 10 buổi",
"sessionCount": 10,
"completedSessions": 4,
"status": "IN_PROGRESS",
"totalPrice": 3500000,
"paidAmount": 3500000,
"createdAt": "2026-10-01T02:00:00.000Z",
"updatedAt": "2026-10-12T07:30:00.000Z",
"deletedAt": null
}
],
"nextCursor": null
}