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

# Create Bill



## OpenAPI

````yaml post /api/2.0/bills/
openapi: 3.1.0
info:
  contact:
    name: Elation Health
    url: https://www.elationhealth.com/
  description: Elation Health API v2.0
  title: Billing API
  version: 2.0.0
servers:
  - description: Sandbox Server
    url: https://sandbox.elationemr.com
  - description: Production Server
    url: https://api.app.elationemr.com
security: []
paths:
  /api/2.0/bills/:
    post:
      tags:
        - Bills
      summary: Create Bill
      operationId: bills_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillSingleInstance'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillSingleInstance'
          description: ''
      security:
        - oauth2: []
components:
  schemas:
    BillSingleInstance:
      properties:
        billing_provider:
          format: int64
          type:
            - integer
            - 'null'
        cpts:
          items:
            $ref: '#/components/schemas/CPT'
          type: array
        id:
          readOnly: true
          type: integer
        notes:
          default: ''
          description: Additional billing notes.
          maxLength: 1000
          type: string
        ordering_provider:
          allOf:
            - $ref: '#/components/schemas/ReferringProvider'
          description: >-
            The id of the provider who orders non-physician services for the
            patient.
        patient:
          format: int64
          type: integer
        payment:
          format: int64
          type: integer
        payment_amount:
          default: '0.00'
          description: Dollar amount of the patient payment.
          format: decimal
          pattern: ^-?\d{0,8}(?:\.\d{0,2})?$
          type:
            - string
            - 'null'
        physician:
          format: int64
          type: integer
        practice:
          format: int64
          type: integer
        prior_authorization:
          maxLength: 50
          type:
            - string
            - 'null'
        referring_provider:
          $ref: '#/components/schemas/ReferringProvider'
        rendering_provider:
          format: int64
          type:
            - integer
            - 'null'
        service_location:
          description: The id of the service location the bill is associated with.
          format: int64
          type: integer
        show_dual_coding:
          default: false
          type:
            - boolean
            - 'null'
        supervising_provider:
          description: >-
            The id of the provider who has undertaken primary responsibility for
            the patient's health.
          format: int64
          type:
            - integer
            - 'null'
        visit_note:
          format: int64
          type: integer
      required:
        - cpts
        - patient
        - physician
        - practice
        - service_location
        - visit_note
      type: object
    CPT:
      properties:
        cpt:
          type: string
        dxs:
          items:
            $ref: '#/components/schemas/DX'
          type: array
        modifier_1:
          maxLength: 2
          type:
            - string
            - 'null'
        modifier_2:
          maxLength: 2
          type:
            - string
            - 'null'
        modifier_3:
          maxLength: 2
          type:
            - string
            - 'null'
        modifier_4:
          maxLength: 2
          type:
            - string
            - 'null'
        ndc:
          maxLength: 11
          type:
            - string
            - 'null'
        ndc_dose:
          format: decimal
          pattern: ^-?\d{0,7}(?:\.\d{0,3})?$
          type:
            - string
            - 'null'
        ndc_measure:
          oneOf:
            - $ref: '#/components/schemas/NdcMeasureEnum'
            - $ref: '#/components/schemas/NullEnum'
        unit_charge:
          type: string
        units:
          type: string
      required:
        - cpt
        - dxs
        - unit_charge
        - units
      type: object
    ReferringProvider:
      properties:
        name:
          type: string
        npi:
          maxLength: 10
          type:
            - string
            - 'null'
        state:
          type: string
      required:
        - name
        - state
      type: object
    DX:
      properties:
        icd10_code:
          type: string
        icd9_codes:
          items:
            type: string
          type: array
      required:
        - icd10_code
      type: object
    NdcMeasureEnum:
      description: |-
        * `GR` - GR
        * `F2` - F2
        * `ME` - ME
        * `ML` - ML
        * `UN` - UN
      enum:
        - GR
        - F2
        - ME
        - ML
        - UN
      type: string
    NullEnum:
      type: 'null'
  securitySchemes:
    oauth2:
      flows:
        clientCredentials:
          scopes:
            act_as_user: >-
              Impersonate a provider via X-On-Behalf-Of (combinable with apiv2
              or system scopes)
            apiv2: Full access to the API
            system/{resource_name}.read: Read access to a specific resource
            system/{resource_name}.write: Write access to a specific resource
          tokenUrl: /api/2.0/oauth2/token/
      type: oauth2

````