> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decodahealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Superbill By Event

> Newest non-archived single-appointment Super Bill for (patient, event), or null.

Powers the note → Super Bill entry point. A note is tied to exactly one
appointment, so this only ever reuses a *single-appointment* bill — one
whose linked charges cover only this event. Multi-appointment bills (built
from the patient tab) are deliberately ignored; the note flow makes its own
single-appointment bill instead.

Coverage is derived from the linked charges' `event_id`s, NOT
`superbill.payload`: `save_superbill` overwrites the payload with the
editor's `SuperbillPayload`, so the `{"event_ids": [...]}` written at
creation is gone after the first save. `Superbill.event_id` only stores the
canonical (first-selected) event, so it can't distinguish a
single-appointment bill from a multi-appointment one either.



## OpenAPI

````yaml get /billing/patient/{patient_id}/superbills/by-event/{event_id}
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /billing/patient/{patient_id}/superbills/by-event/{event_id}:
    get:
      tags:
        - Superbills
      summary: Get Superbill By Event
      description: >-
        Newest non-archived single-appointment Super Bill for (patient, event),
        or null.


        Powers the note → Super Bill entry point. A note is tied to exactly one

        appointment, so this only ever reuses a *single-appointment* bill — one

        whose linked charges cover only this event. Multi-appointment bills
        (built

        from the patient tab) are deliberately ignored; the note flow makes its
        own

        single-appointment bill instead.


        Coverage is derived from the linked charges' `event_id`s, NOT

        `superbill.payload`: `save_superbill` overwrites the payload with the

        editor's `SuperbillPayload`, so the `{"event_ids": [...]}` written at

        creation is gone after the first save. `Superbill.event_id` only stores
        the

        canonical (first-selected) event, so it can't distinguish a

        single-appointment bill from a multi-appointment one either.
      operationId: >-
        get_superbill_by_event_billing_patient__patient_id__superbills_by_event__event_id__get
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: patient_id
          in: path
          required: true
          schema:
            type: string
            title: Patient Id
        - name: event_id
          in: path
          required: true
          schema:
            type: string
            title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/SuperbillSummary'
                  - type: 'null'
                title: >-
                  Response Get Superbill By Event Billing Patient  Patient Id 
                  Superbills By Event  Event Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SuperbillSummary:
      properties:
        id:
          type: string
          title: Id
        patientId:
          type: string
          title: Patientid
        eventId:
          anyOf:
            - type: string
            - type: 'null'
          title: Eventid
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        createdDate:
          type: string
          format: date-time
          title: Createddate
        updatedDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updateddate
        chargeCount:
          type: integer
          title: Chargecount
        totalBilledCents:
          type: integer
          title: Totalbilledcents
          default: 0
      type: object
      required:
        - id
        - patientId
        - createdDate
        - chargeCount
      title: SuperbillSummary
      description: List-view row on the patient Billing tab.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````