List receipts
GET/api/integration/v1/receipts
Returns receipts with their line items, ordered by last update, oldest first. Cancelled and refunded receipts are still returned, with their status. Requires the receipts: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 receipts: { requestId, receipts, nextCursor }. Each element of receipts has the fields of a receipt, 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 receipts:read scope. |
Every endpoint can also return 401, 429 and 5xx. See Error codes.
curl -sS "https://iclinic.phongkhamhieploi.vn/api/integration/v1/receipts?limit=200" \
-H "Authorization: Bearer $ICLINIC_API_KEY"
{
"requestId": "req_7c1f3a",
"receipts": [
{
"id": "e7d3b1a4-52c8-4f19-a0b6-9c4d8e2f1a37",
"code": "HD-20261004-002",
"patientId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"encounterId": "3f0c9a52-6d1b-4e7a-9b1e-2a4c8d5e7f10",
"total": 350000,
"paidAmount": 350000,
"paymentMethod": "CASH",
"status": "PAID",
"receiptDate": "2026-10-04",
"lines": [
{
"name": "Khám chuyên khoa",
"quantity": 1,
"unitPrice": 200000,
"total": 200000,
"sourceType": "SERVICE"
},
{
"name": "Vitamin B1",
"quantity": 10,
"unitPrice": 15000,
"total": 150000,
"sourceType": "MEDICATION"
}
],
"createdAt": "2026-10-04T08:10:00.000Z",
"updatedAt": "2026-10-04T08:10:00.000Z",
"deletedAt": null
}
],
"nextCursor": null
}