# List a patient's billing accounts

Canonical page: https://docs.ovok.com/api/patient-billing/list-a-patient-s-billing-accounts

`GET /v1/patient-billing/patients/{patientId}/accounts`

Lists the patient's billing accounts: FHIR `Account` resources of type `PBILLACCT` whose subject is the patient. Ovok makes one per patient, with the first plan or invoice, and it names the plan coverage. Each clinic that enters a charge for the patient gets its own account too: `clinicId` names the clinic, and `coverageIds` the patient's coverages in order.

**Scope:** the caller's project, with `PATIENT_BILLING_ENABLED` on.

## Behaviour

- Your access policy must grant `patient_billing_invoices` `read` and let you read the patient, else **403** `PATIENT_BILLING_NOT_ALLOWED` or **404** `PATIENT_BILLING_PATIENT_NOT_FOUND`.

## Example

```bash
curl 'https://api.sandbox.ovok.com/v1/patient-billing/patients/<patientId>/accounts' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
