Skip to the page

Search the titles, headings and text of every guide and API reference page.

    Chapters

    Usage and statements

    List a statement by office

    GET/api/v1/statements/{id}/offices

    A statement's usage by office, as stored when the month was closed (office and practice group names included), never changing after. One row for each office with usage (by office name), then one with office_id null for the records with no office (an ERA held without a payee office), each with every product's billable and not billed counts. Counts only: a per-office amount would be an allocation of the month's tiered prices and minimum, so none is given. Usage of an earlier month that arrived after its statement (an adjustment) is counted under its office on the statement that took it. A statement of another organization is not found.

    Needs a key with read permission.

    Request

    Path parameters

    Path parameters
    NameTypeRequiredDescription
    idstringrequiredA statement ID (stm_...).

    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.

    Response

    A page of offices with their usage on the statement. Status 200.

    Response fields
    NameTypeDescription
    dataarray of object
    data[].office_idstring or nullThe office; null for the row of the records with no office (an ERA held without a payee office).
    data[].office_namevalueThe office's name: now in an open month, as it was at the close in a closed one. null for the row with no office.
    data[].client_referencevalueThe office's client_reference, at the same moment as its name; null when it has none, and for the row with no office.
    data[].practice_group_idstring or nullThe practice group the office is in (now in an open month, at the close in a closed one); null for a standalone office.
    data[].practice_group_namevalueThe practice group's name at the same moment; null when practice_group_id is.
    data[].productsarray of objectEvery product, in the same order as GET /usage, with its counts for the office (0 when none).
    data[].products[].productstringOne of: `eligibility`, `claims`, `attachments`, `eras`.
    data[].products[].billableintegerBillable transactions.At least -9007199254740991.
    data[].products[].not_billedintegerTransactions not billed.At least -9007199254740991.
    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.
    404NOT_FOUNDNot found.
    422INVALID_REQUESTThe request is not valid.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    504TIMEOUTThe request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    curl "https://app.myclaimhouse.com/api/v1/statements/stm_01JM000000E008000000000030/offices" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY"

    Example response: 200

    JSON
    {
      "data": [
        {
          "office_id": "off_01JM000000E008000000000003",
          "office_name": "Example Family Dental",
          "client_reference": "PMS-1001",
          "practice_group_id": "pgr_01JM000000E008000000000090",
          "practice_group_name": "Example North Region",
          "products": [
            {
              "product": "eligibility",
              "billable": 2600,
              "not_billed": 80
            },
            {
              "product": "claims",
              "billable": 820,
              "not_billed": 0
            },
            {
              "product": "attachments",
              "billable": 270,
              "not_billed": 0
            },
            {
              "product": "eras",
              "billable": 610,
              "not_billed": 2
            }
          ]
        },
        {
          "office_id": "off_01JM000000E00800000000004G",
          "office_name": "Example Lakeside Dental",
          "client_reference": null,
          "practice_group_id": null,
          "practice_group_name": null,
          "products": [
            {
              "product": "eligibility",
              "billable": 1400,
              "not_billed": 38
            },
            {
              "product": "claims",
              "billable": 420,
              "not_billed": 0
            },
            {
              "product": "attachments",
              "billable": 140,
              "not_billed": 0
            },
            {
              "product": "eras",
              "billable": 287,
              "not_billed": 1
            }
          ]
        },
        {
          "office_id": null,
          "office_name": null,
          "client_reference": null,
          "practice_group_id": null,
          "practice_group_name": null,
          "products": [
            {
              "product": "eligibility",
              "billable": 0,
              "not_billed": 0
            },
            {
              "product": "claims",
              "billable": 0,
              "not_billed": 0
            },
            {
              "product": "attachments",
              "billable": 0,
              "not_billed": 0
            },
            {
              "product": "eras",
              "billable": 3,
              "not_billed": 0
            }
          ]
        }
      ],
      "next_cursor": null
    }

    A statement of another organization: 404

    JSON
    {
      "error": "NOT_FOUND",
      "message": "Statement not found.",
      "errors": [],
      "request_id": "req_01JM000000E008000000000010"
    }