Get a case's billing statement

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
GET /cases/{caseId}/billing/statement

Lists the case's billing rows newest first (50 by default, at most 200, paged with limit and skip) with the total charged and the list value of plan-included rows; both totals cover every row, not just the page. Plan-included rows have informational: true and, like waived or voided rows, never count toward totalChargedCents. Requires a member role or above in the organization and owner or admin access to the case; not available to opposing counsel.

Headers

  • organization string Required

    id of the selected (active) organization

Path parameters

  • caseId string Required

    Id of the case

Query parameters

  • limit number
  • skip number

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • caseId string Required
      • rows array[object] Required
        Hide rows attributes Show rows attributes object
        • id string Required
        • skuKey string Required
        • description string Required
        • quantity number Required
        • amountCents number Required
        • informational boolean Required
        • listAmountCents number | null Required
        • status string Required

          Values are DRAFT, PENDING, PROCESSING, INVOICED, PAID, FAILED, REFUNDED, COMPED, or VOID.

        • hostedInvoiceUrl string | null Required
        • createdAt string(date-time) Required
      • totalChargedCents number Required
      • totalInformationalCents number Required
    • statusCode number Required
    • timestamp string(date-time) Required
GET /cases/{caseId}/billing/statement
curl \
 --request GET 'http://api.example.com/cases/{caseId}/billing/statement' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "organization: string"
Response examples (200)
{
  "data": {
    "caseId": "65a1b2c3d4e5f6a7b8c9d0e2",
    "rows": [
      {
        "id": "65a1b2c3d4e5f6a7b8c9d0e4",
        "skuKey": "collection.phone",
        "description": "Phone collection",
        "quantity": 1,
        "amountCents": 17900,
        "informational": false,
        "listAmountCents": 17900,
        "status": "INVOICED",
        "hostedInvoiceUrl": "https://invoice.stripe.com/i/acct_Example/test_Example",
        "createdAt": "2026-01-15T10:15:00.000Z"
      }
    ],
    "totalChargedCents": 17900,
    "totalInformationalCents": 5000
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}