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

# List Superbill Event Candidates

> Paginated past appointments for the patient with light metadata.

Powers step 1 of the construct-super-bill wizard. Returns every past
visit (newest first) so staff can bill a visit of any age — late-filed
claims and timely-filing windows vary by payer. Pagination keeps the
picker responsive for patients with long histories.



## OpenAPI

````yaml get /billing/patient/{patient_id}/superbill-event-candidates
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}/superbill-event-candidates:
    get:
      tags:
        - Superbills
      summary: List Superbill Event Candidates
      description: |-
        Paginated past appointments for the patient with light metadata.

        Powers step 1 of the construct-super-bill wizard. Returns every past
        visit (newest first) so staff can bill a visit of any age — late-filed
        claims and timely-filing windows vary by payer. Pagination keeps the
        picker responsive for patients with long histories.
      operationId: >-
        list_superbill_event_candidates_billing_patient__patient_id__superbill_event_candidates_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: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Per Page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_SuperbillEventCandidate_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Page_SuperbillEventCandidate_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/SuperbillEventCandidate'
          type: array
          title: Data
        total:
          type: integer
          title: Total
      type: object
      required:
        - data
        - total
      title: Page[SuperbillEventCandidate]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SuperbillEventCandidate:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        start:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start
        end:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End
        locationName:
          anyOf:
            - type: string
            - type: 'null'
          title: Locationname
        chargeCount:
          type: integer
          title: Chargecount
        totalBilledCents:
          type: integer
          title: Totalbilledcents
      type: object
      required:
        - id
        - title
        - chargeCount
        - totalBilledCents
      title: SuperbillEventCandidate
      description: One row of the construct-wizard's step-1 visits picker.
    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

````