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

> Newest non-archived Super Bill that already bills this charge, or null.

Powers the charge row's Super Bill action, which has a charge but no bill:
reuse whatever bill already covers it rather than minting a second one on
every click. Unlike `by-event` there is no single-appointment restriction —
a multi-charge bill that includes this charge *is* this charge's bill, and
sending staff to a fresh empty one would lose the work already on it.

Scoped to the patient so a charge id can't surface another patient's bill.



## OpenAPI

````yaml get /billing/patient/{patient_id}/superbills/by-charge/{charge_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-charge/{charge_id}:
    get:
      tags:
        - Superbills
      summary: Get Superbill By Charge
      description: >-
        Newest non-archived Super Bill that already bills this charge, or null.


        Powers the charge row's Super Bill action, which has a charge but no
        bill:

        reuse whatever bill already covers it rather than minting a second one
        on

        every click. Unlike `by-event` there is no single-appointment
        restriction —

        a multi-charge bill that includes this charge *is* this charge's bill,
        and

        sending staff to a fresh empty one would lose the work already on it.


        Scoped to the patient so a charge id can't surface another patient's
        bill.
      operationId: >-
        get_superbill_by_charge_billing_patient__patient_id__superbills_by_charge__charge_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: charge_id
          in: path
          required: true
          schema:
            type: string
            title: Charge Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/SuperbillSummary'
                  - type: 'null'
                title: >-
                  Response Get Superbill By Charge Billing Patient  Patient Id 
                  Superbills By Charge  Charge 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

````