Resources
GET /invoices
get all invoicesGET /appointments/:id/invoices
get all invoices for a specified appointmentGET /practitioners/:id/invoices
get all invoices for a specified practitionerGET /patients/:id/invoices
get all invoices for a specified patient
Filtering
You can filter the returned results by these fields:
issue_date
(Date) with>=
>
<=
<
=
number
(Integer) with>=
>
<=
<
=
status
(Integer) with>=
>
<=
<
=
See Filtering Results for details on how to apply filters.
Example Request
curl https://api.au1.cliniko.com/v1/invoices \
-u API_KEY: \
-H 'Accept: application/json' \
-H 'User-Agent: APP_VENDOR_NAME (APP_VENDOR_EMAIL)'
Example Response
{
"invoices": [
{
"id": 108,
"issue_date": "2015-04-02",
"total_amount": "50.0",
"tax_amount": "0.0",
"net_amount": "50.0",
"notes": "",
"status": 10,
"invoice_to": "Mrs. Bernice Mayer\r\n4069 Willms Plains\r\nApt. 604\r\nStiedemannhaven KY 51148-8134\r\nBosnia and Herzegovina",
"patient_extra_information": "",
"number": 104,
"discounted_amount": "0.0",
"status_description": "Open",
"created_at": "2015-04-02T13:17:50Z",
"updated_at": "2015-04-02T13:17:50Z",
"deleted_at": null,
"closed_at": null,
"appointment": {
"links": {
"self": "https://api.au1.cliniko.com/v1/appointments/70644"
}
},
"business": {
"links": {
"self": "https://api.au1.cliniko.com/v1/businesses/26"
}
},
"practitioner": {
"links": {
"self": "https://api.au1.cliniko.com/v1/practitioners/26"
}
},
"patient": {
"links": {
"self": "https://api.au1.cliniko.com/v1/patients/1593"
}
},
"links": {
"self": "https://api.au1.cliniko.com/v1/invoices/108"
}
}
],
"total_entries": 1,
"links": {
"self": "https://api.au1.cliniko.com/v1/invoices?page=1"
}
}
Resources
GET /invoices/deleted
get all deleted invoicesGET /appointments/:id/invoices/deleted
get all deleted invoices for a specified appointmentGET /practitioners/:id/invoices/deleted
get all deleted invoices for a specified practitionerGET /patients/:id/invoices/deleted
get all deleted invoices for a specified patient
Filtering
You can filter the returned results by these fields:
issue_date
(Date) with>=
>
<=
<
=
number
(Integer) with>=
>
<=
<
=
status
(Integer) with>=
>
<=
<
=
See Filtering Results for details on how to apply filters.
Example Request
curl https://api.au1.cliniko.com/v1/invoices/deleted \
-u API_KEY: \
-H 'Accept: application/json' \
-H 'User-Agent: APP_VENDOR_NAME (APP_VENDOR_EMAIL)'
Example Response
{
"invoices": [
{
"id": 108,
"issue_date": "2015-04-02",
"total_amount": "50.0",
"tax_amount": "0.0",
"net_amount": "50.0",
"notes": "",
"status": 10,
"invoice_to": "Mrs. Bernice Mayer\r\n4069 Willms Plains\r\nApt. 604\r\nStiedemannhaven KY 51148-8134\r\nBosnia and Herzegovina",
"patient_extra_information": "",
"number": 104,
"discounted_amount": "0.0",
"status_description": "Open",
"created_at": "2015-04-02T13:17:50Z",
"updated_at": "2015-04-02T13:17:50Z",
"deleted_at": "2015-04-05T15:45:23Z",
"closed_at": null,
"appointment": {
"links": {
"self": "https://api.au1.cliniko.com/v1/appointments/70644"
}
},
"business": {
"links": {
"self": "https://api.au1.cliniko.com/v1/businesses/26"
}
},
"practitioner": {
"links": {
"self": "https://api.au1.cliniko.com/v1/practitioners/26"
}
},
"patient": {
"links": {
"self": "https://api.au1.cliniko.com/v1/patients/1593"
}
},
"links": {
"self": "https://api.au1.cliniko.com/v1/invoices/108"
}
}
],
"total_entries": 1,
"links": {
"self": "https://api.au1.cliniko.com/v1/appointments/70644/invoices/deleted?page=1"
}
}
Resources
GET /invoices/:id
get a specified invoice
Example Request
curl https://api.au1.cliniko.com/v1/invoices/3 \
-u API_KEY: \
-H 'Accept: application/json' \
-H 'User-Agent: APP_VENDOR_NAME (APP_VENDOR_EMAIL)'
Example Response
{
"id": 3,
"issue_date": "2014-12-11",
"total_amount": "2367.18",
"tax_amount": "0.0",
"net_amount": "2367.18",
"notes": null,
"status": 20,
"invoice_to": null,
"patient_extra_information": null,
"number": 1,
"discounted_amount": "0.0",
"status_description": "Paid",
"created_at": "2014-12-18T10:47:05Z",
"updated_at": "2014-12-18T10:47:08Z",
"deleted_at": null,
"closed_at": "2014-12-18T10:47:08Z",
"business": {
"links": {
"self": "https://api.au1.cliniko.com/v1/businesses/26"
}
},
"patient": {
"links": {
"self": "https://api.au1.cliniko.com/v1/patients/380"
}
},
"links": {
"self": "https://api.au1.cliniko.com/v1/invoices/3"
}
}
For any route that returns a set of invoices, you can filter them by:
appointment_id
Integerbusiness_id
Integercreated_at
DateTimeid
Integerissue_date
Datenumber
Integerpatient_id
Integerpractitioner_id
Integerstatus
Integerupdated_at
DateTime
Invoices support the following integer statuses and may be used when filtering by status
:
Status | Description |
---|---|
10 |
Open |
20 |
Paid |
30 |
Closed |
40 |
Open (credit) |
See Filtering Results for details on how to apply filters.