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

# The Bill Object

<Info>
  **API v2 covers billing data from the Elation EHR, not the Elation Billing product.**

  API v2 gives you access to billing information captured in the patient chart, such as [bills](/articles/rest/billing-api/bills/the-bill-object), [billing codes](/articles/rest/billing-api/billing-codes/the-billing-code-object), and [outstanding balance](/articles/rest/billing-api/outstanding-balance/update-outstanding-balance). Integrations typically use these endpoints to send visit charges from Elation to a third-party practice management system, and to surface patient balance information in the Elation EHR.

  Claims, payments, remittances, and patient statements belong to Elation Billing and aren't available through API v2. Practices using Elation Billing can query that data in the Hosted Database — see [Claim](/articles/hdb/claim), [Charge](/articles/hdb/charge), [Payment](/articles/hdb/payment), and [ERA Matched Adjustment](/articles/hdb/era-matched-adjustment).
</Info>

## Object Definition

```json theme={null}
{
  "id": 65099661468,
  "ref_number": null,                       // string(50). required for PATCH that marks bill as processed.
  "service_date": "2016-10-12T12:00:00Z",
  "billing_date": null,                     // datetime(iso8601). required for PATCH that marks bill as processed.
  "billing_status": "Unbilled",
  "billing_error": null,                    // string(200). required for PATCH that marks bill as failed.
  "billing_raw_error": null,                // longtext. optional for PATCH that marks bill as failed.
  "notes": "patient has not paid yet",
  "cpts": [
    {
      "cpt": "99213",
      "description": "Office visit, established patient, 20-29 minutes",  // sourced from the practice's billing settings; null when no matching billing code exists.
      "modifiers": [
        "10",
        "11",
        "12",
        "13"
      ],
      "dxs": [
        "D23.4",
        "R88.8"
      ],
      "alt_dxs": [
        "216.4",
        "792.9"
      ],
      "unit_charge": "55.12",               // charge per CPT unit
      "units": "2.00",                      // CPT units
      "ndc": "60575-4112-01",               // 11 digit NDC code, zero padded to 5-4-2 format.
      "ndc_dose": "1.000",                  // NDC units administered.  Precision to 3 decimal places.
      "ndc_measure": "ML"                   // NDC unit of measure: null, "F2", "GR", "ME", "ML" or "UN"
    },
    {
      "cpt": "99214",
      "description": null,
      "modifiers": [
        "21",
        "32",
        "23",
        "42"
      ],
      "dxs": [
        "B49",
        "J66.8"
      ],
      "alt_dxs": [
        "112.89",
        "112.89"
      ],
      "unit_charge": null,
      "units": null
    }
  ],
  "payment": {
    "amount": "10.00",
    "when_collected": "2016-10-12T22:11:01Z"
  },
  "visit_note_id": 64409108504,
  "visit_note_signed_date": "2016-10-12T22:11:01Z",
  "visit_note_deleted_date": null,
  "referring_provider": {
    "name": "Beverly Crusher, MD (555-555-5555)",
    "state": "CA"
  },
  "service_location": {
    "id": 13631735,	
    "name": "Elation North",
    "is_primary": true,
    "place_of_service": "Office",
    "place_of_service_code": "11",
    "address_line1": "1234 First Practice Way",
    "address_line2": "",
    "city": "San Francisco",
    "state": "CA",
    "zip": "94114",
    "phone": "",
    "created_date": "2017-08-28T22:46:14.445876Z",
    "deleted_date": null
  },
  "physician": 64811630594,
  "practice": 65540,
  "patient": 64901939201,
  "prior_authorization": "1234-ABC",
  "metadata": null,
  "created_date": "2016-05-23T17:50:50Z",
  "last_modified_date": "2016-10-12T22:39:46Z"
}
```
