> ## 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 Note

> The Super Bill a note is linked to, or null.

The stable, deterministic replacement for the event-derived existence check
in the note → Super Bill flow: a note chain links to at most one bill via the
superbill_note junction (UNIQUE(parent_note_id)), so this is a single-row
lookup that survives charges being archived / re-pointed. Scoped to the
patient so a note id can't surface another patient's bill.

Accepts *any* revision id: the caller holds whichever revision the editor is
on, which changes on every save, so resolve to the chain root before matching.
An unknown note id is simply unlinked (null), matching the no-link case.



## OpenAPI

````yaml get /billing/patient/{patient_id}/superbills/by-note/{note_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-note/{note_id}:
    get:
      tags:
        - Superbills
      summary: Get Superbill By Note
      description: >-
        The Super Bill a note is linked to, or null.


        The stable, deterministic replacement for the event-derived existence
        check

        in the note → Super Bill flow: a note chain links to at most one bill
        via the

        superbill_note junction (UNIQUE(parent_note_id)), so this is a
        single-row

        lookup that survives charges being archived / re-pointed. Scoped to the

        patient so a note id can't surface another patient's bill.


        Accepts *any* revision id: the caller holds whichever revision the
        editor is

        on, which changes on every save, so resolve to the chain root before
        matching.

        An unknown note id is simply unlinked (null), matching the no-link case.
      operationId: >-
        get_superbill_by_note_billing_patient__patient_id__superbills_by_note__note_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: note_id
          in: path
          required: true
          schema:
            type: string
            title: Note Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/SuperbillSummary'
                  - type: 'null'
                title: >-
                  Response Get Superbill By Note Billing Patient  Patient Id 
                  Superbills By Note  Note 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

````