Skip to main content

List Results

What HCDB returns when a list has no matching records, and how it paginates.

  • An empty list is not an error. When an optional filter, such as a date range, a status or a user ID, narrows a list to nothing, HCDB returns HTTP 200 with no records and zero totals. The same applies when the Principal holds no records of that kind.
  • HTTP 404 means an identifier is not held. HCDB answers HTTP 404 when the request names explicit identifiers, such as account IDs or transaction IDs, and none of them is held for the caller, or when the Principal is not held.
  • Pagination follows the Data Adapter Specification. A page size below 1 or above 1,000 is refused with HTTP 400, and a page below 1 or beyond the last page with HTTP 422. Page 1 of an empty list is the only valid page.
  • Default ranges. When a request names no date range, HCDB applies the default of the specification: the 12 months before the newest time for billing transactions, and the 24 months before the newest date for invoices.