Skip to main content

Queries overview

📄️invoices

This query fetches a collection of invoices where the invoice date falls within the requested range. The query can be further refined through the use of QueryOptions to only fetch invoices that were created or modified (or both) within specified dates. Use filters.metadata to filter by stored customerMetadata entries. Optional filters.invoiceNumbers allows filtering by invoice numbers. Use filters.submittedToHealthcode to return only invoices submitted to Healthcode (or only those not submitted). Use filters.healthcodeStatus to match or exclude specific Healthcode statuses, for example healthcodeStatus [Validated, AwaitingCollection] } or healthcodeStatus [AwaitingCorrection, Cancelled] }.

📄️users

This query fetches a collection of users that belong to the same practice as the API user making the request. The results are paginated depending on the requested paging parameters. The query can be further refined through the use of UsersQueryOptions to filter users by their creation date or last update date, search by name, email, or metadata values, or set includeDeleted to true to include users who have been deleted in Semble. Use filters.isClinician to filter clinicians, filters.metadata to filter by stored customerMetadata entries. options.cliniciansOnly is deprecated; use filters.isClinician instead.