Skip to the page
Chapters

Usage and statements

List usage records

GET/api/v1/usage/units

The usage records of a billing month in the key's mode, oldest first: one for each check, claim, attachment or ERA, with whether it is billable and why, and for a billable check of a billed month the price of its place in the month's tiers. A record names its resource by ID only: nothing about a patient. Filter by product, or by billable. The same records the month's figures are counted from. Months are calendar months in America/Denver for every partner. The default is the current month. A test key sees test activity only: it is never priced, and a test key sees no statements.

Needs a key with read permission.

Request

Query parameters

Query parameters
NameTypeRequiredDescription
limitintegeroptionalHow many items to return, from 1 to 100. Default 25.At least 1.At most 100.
cursorstringoptionalThe next_cursor of the previous page, to get the page after it. Opaque: pass it back unchanged.
monthstringoptionalA billing month, YYYY-MM, not after the current one. Default: the current billing month.Matches `^[1-9][0-9]{3}-(0[1-9]|1[0-2])$`.
productstringoptionalOnly records of this product.One of: `eligibility`, `claims`, `attachments`, `eras`.
billablestringoptionaltrue: only billable records; false: only records not billed.One of: `true`, `false`.

Response

A page of usage records. Status 200.

Response fields
NameTypeDescription
dataarray of object
data[].objectstringAlways `usage_unit`.
data[].timestring (date-time)
data[].productstringOne of: `eligibility`, `claims`, `attachments`, `eras`.
data[].resource_idstringThe ID of the check, claim, attachment or ERA the record is for.
data[].billableboolean
data[].reasonstringWhy the record is or is not billable.
data[].labelstringThe reason in words.
data[].tier_pricestring or nullA billable check of a billed month: the price of its place in the month's tiers, in dollars.Matches `^\d+\.\d{2,6}$`.
next_cursorvaluePass as cursor to get the next page; null when there is no next page.

Errors

Errors
HTTP statusCodeWhat it means
401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
403PERMISSION_DENIEDThis API key is not allowed to do that.
422INVALID_REQUESTThe request is not valid.
504TIMEOUTThe request took too long to finish. It may still have taken effect: look it up before sending it again with a new Idempotency-Key. What it made is found with GET /api/v1/eligibility?request_id=<this request_id>, and the same filter on /api/v1/claims and /api/v1/attachments (a key with read permission).
500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

Example

Example request

Shell
curl "https://sandbox.myclaimhouse.com/api/v1/usage/units?month=2026-09&limit=25" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY"

Example response: 200

JSON
{
  "data": [
    {
      "object": "usage_unit",
      "time": "2026-09-01T15:02:11.120000+00:00",
      "product": "eligibility",
      "resource_id": "elg_01JM000000E00800000000000G",
      "billable": true,
      "reason": "answered",
      "label": "the payer answered",
      "tier_price": "0.30"
    },
    {
      "object": "usage_unit",
      "time": "2026-09-01T15:04:40.870000+00:00",
      "product": "eligibility",
      "resource_id": "elg_01JM000000E00800000000000H",
      "billable": false,
      "reason": "cache_hit",
      "label": "answer reused from a recent check",
      "tier_price": null
    },
    {
      "object": "usage_unit",
      "time": "2026-09-01T16:30:02.400000+00:00",
      "product": "claims",
      "resource_id": "clm_01JM000000E00800000000000J",
      "billable": true,
      "reason": "transmitted",
      "label": "handed to the network",
      "tier_price": null
    }
  ],
  "next_cursor": null
}