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

# Partially Update Bill



## OpenAPI

````yaml patch /api/2.0/bills/{id}/
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/{id}/:
    patch:
      tags:
        - Bills
      summary: Partially Update Bill
      operationId: bills_partial_update
      parameters:
        - in: path
          name: id
          required: true
          schema:
            format: int64
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedBillUpdate'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillUpdate'
          description: ''
      security:
        - oauth2: []
components:
  schemas:
    PatchedBillUpdate:
      properties:
        billing_date:
          description: >-
            The date the bill was billed. Required if marking a bill as
            processed.
          format: date-time
          type:
            - string
            - 'null'
        billing_error:
          description: >-
            The error message for the bill. Required if marking a bill as
            failed. This is the human readable error that users will see.
          maxLength: 200
          type:
            - string
            - 'null'
        billing_provider:
          format: int64
          type:
            - integer
            - 'null'
        billing_raw_error:
          description: >-
            Further details on the billing error. Optional when marking a bill
            as failed. Useful when debugging why a bill failed to process.
          type:
            - string
            - 'null'
        cpts:
          description: CPT objects for the bill.
          items:
            $ref: '#/components/schemas/CPT'
          type: array
        metadata:
          additionalProperties: {}
          type: object
        notes:
          description: Additional billing notes.
          maxLength: 1000
          type:
            - string
            - 'null'
        ordering_provider:
          description: >-
            The id of the provider who orders non-physician services for the
            patient.
          oneOf:
            - $ref: '#/components/schemas/ReferringProvider'
            - type: 'null'
        payment_amount:
          description: Dollar amount of the patient payment.
          format: decimal
          pattern: ^-?\d{0,8}(?:\.\d{0,2})?$
          type:
            - string
            - 'null'
        place_of_service:
          oneOf:
            - $ref: '#/components/schemas/BillUpdatePlaceOfServiceEnum'
            - $ref: '#/components/schemas/NullEnum'
        practice:
          format: int64
          type: integer
        prior_authorization:
          maxLength: 50
          type:
            - string
            - 'null'
        ref_number:
          description: >-
            The reference number of the bill. Required if marking a bill as
            processed.
          type: string
        referring_provider:
          oneOf:
            - $ref: '#/components/schemas/ReferringProvider'
            - type: 'null'
        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
        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
      type: object
    BillUpdate:
      properties:
        billing_date:
          description: >-
            The date the bill was billed. Required if marking a bill as
            processed.
          format: date-time
          type:
            - string
            - 'null'
        billing_error:
          description: >-
            The error message for the bill. Required if marking a bill as
            failed. This is the human readable error that users will see.
          maxLength: 200
          type:
            - string
            - 'null'
        billing_provider:
          format: int64
          type:
            - integer
            - 'null'
        billing_raw_error:
          description: >-
            Further details on the billing error. Optional when marking a bill
            as failed. Useful when debugging why a bill failed to process.
          type:
            - string
            - 'null'
        cpts:
          description: CPT objects for the bill.
          items:
            $ref: '#/components/schemas/CPT'
          type: array
        metadata:
          additionalProperties: {}
          type: object
        notes:
          description: Additional billing notes.
          maxLength: 1000
          type:
            - string
            - 'null'
        ordering_provider:
          description: >-
            The id of the provider who orders non-physician services for the
            patient.
          oneOf:
            - $ref: '#/components/schemas/ReferringProvider'
            - type: 'null'
        payment_amount:
          description: Dollar amount of the patient payment.
          format: decimal
          pattern: ^-?\d{0,8}(?:\.\d{0,2})?$
          type:
            - string
            - 'null'
        place_of_service:
          oneOf:
            - $ref: '#/components/schemas/BillUpdatePlaceOfServiceEnum'
            - $ref: '#/components/schemas/NullEnum'
        practice:
          format: int64
          type: integer
        prior_authorization:
          maxLength: 50
          type:
            - string
            - 'null'
        ref_number:
          description: >-
            The reference number of the bill. Required if marking a bill as
            processed.
          type: string
        referring_provider:
          oneOf:
            - $ref: '#/components/schemas/ReferringProvider'
            - type: 'null'
        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
        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
      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
    BillUpdatePlaceOfServiceEnum:
      enum:
        - '1'
        - '2'
        - '3'
        - '4'
        - '5'
        - '6'
        - '7'
        - '8'
        - '9'
        - '10'
        - '11'
        - '12'
        - '13'
        - '14'
        - '15'
        - '16'
        - '17'
        - '18'
        - '19'
        - '20'
        - '21'
        - '22'
        - '23'
        - '24'
        - '25'
        - '26'
        - '27'
        - '31'
        - '32'
        - '33'
        - '34'
        - '41'
        - '42'
        - '49'
        - '50'
        - '51'
        - '52'
        - '53'
        - '54'
        - '55'
        - '56'
        - '57'
        - '60'
        - '61'
        - '62'
        - '65'
        - '66'
        - '71'
        - '72'
        - '81'
        - '99'
      type: string
    NullEnum:
      type: 'null'
    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
  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

````