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
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | A statement ID (stm_...). |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | How many items to return, from 1 to 100. Default 25.At least 1.At most 100. |
| cursor | string | optional | The 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.
| Name | Type | Description |
|---|---|---|
| data | array of object | |
| data[].office_id | string or null | The office; null for the row of the records with no office (an ERA held without a payee office). |
| data[].office_name | value | The 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_reference | value | The 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_id | string or null | The 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_name | value | The practice group's name at the same moment; null when practice_group_id is. |
| data[].products | array of object | Every product, in the same order as GET /usage, with its counts for the office (0 when none). |
| data[].products[].product | string | One of: `eligibility`, `claims`, `attachments`, `eras`. |
| data[].products[].billable | integer | Billable transactions.At least -9007199254740991. |
| data[].products[].not_billed | integer | Transactions not billed.At least -9007199254740991. |
| next_cursor | value | Pass as cursor to get the next page; null when there is no next page. |
Errors
| HTTP status | Code | What it means |
|---|---|---|
| 401 | UNAUTHORIZED | A valid API key is required. Send it as "Authorization: Bearer <key>". |
| 403 | PERMISSION_DENIED | This API key is not allowed to do that. |
| 404 | NOT_FOUND | Not found. |
| 422 | INVALID_REQUEST | The request is not valid. |
| 429 | TOO_MANY_REQUESTS | Too many requests of this kind lately. Wait, then try again. |
| 504 | TIMEOUT | The 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>. |
| 500 | INTERNAL | Something went wrong on our side. Quote the request ID if you contact us. |
Example
Example request
curl "https://app.myclaimhouse.com/api/v1/statements/stm_01JM000000E008000000000030/offices" \
-H "Authorization: Bearer $CLAIMHOUSE_KEY"Example response: 200
{
"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
{
"error": "NOT_FOUND",
"message": "Statement not found.",
"errors": [],
"request_id": "req_01JM000000E008000000000010"
}