# quote.created

A Quote was created.

## Payload schema

- `object`
  - `api_version` (`any`)
  - `context` (`object`) - Present only when `source` is `api`. Identifies the acting project and API key.
    - `developer_platform_api_key_id` (`string | null`) - format: `uuid`
    - `developer_platform_project_id` (`string | null`) - format: `uuid`
  - `created_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
  - `data` (`object`)
    - `object` (`object`)
      - `accepted_at` (`string | null`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `alternative_payor_id` (`string | null`) - format: `uuid`; The AlternativePayor for an alternative-payor Quote.
      - `booking_ids` (`array`) - The Bookings linked to the Quote.
        - `items` (`string`) - format: `uuid`
      - `cancel_reason` (`string | null`) - enum: `staff`, `superseded`, `null`; Why the Quote was canceled. `staff` is a staff cancellation. `superseded` is set when a revised Quote replaces it.
      - `canceled_at` (`string | null`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `clinician_id` (`string | null`) - format: `uuid`; The Clinician attributed to the Quote.
      - `created_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `creation_source` (`string | null`) - enum: `staff_member`, `api`, `null`; How the Quote was created.
      - `currency` (`string | null`) - The ISO 4217 currency code.
      - `current_invoice_id` (`string | null`) - format: `uuid`; The current non-cancelled Invoice generated from the Quote.
      - `declined_at` (`string | null`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `expired_at` (`string | null`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `expires_on` (`string | null`) - format: `date`; The date the Quote remains valid through.
      - `id` (`string`) - format: `uuid`; The resource's unique identifier, formatted as an RFC 4122 version 4 UUID.
      - `invoice_id` (`string | null`) - format: `uuid`; The Invoice created by the first conversion or acceptance.
      - `invoice_ids` (`array`) - Every Invoice generated from the Quote, including cancelled generations.
        - `items` (`string`) - format: `uuid`
      - `invoiced_at` (`string | null`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `line_items` (`array`) - The proposed charges on the Quote.
        - `items` (`object`)
          - `booking_id` (`string | null`) - format: `uuid`; The Booking associated with the line item.
          - `created_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
          - `currency` (`string | null`) - The ISO 4217 currency code.
          - `discount_amount` (`integer | null`) - The discount in minor currency units.
          - `external_provider_name` (`string | null`) - The provider that collects an external fee.
          - `id` (`string`) - format: `uuid`; The resource's unique identifier, formatted as an RFC 4122 version 4 UUID.
          - `is_billed_by_another_provider` (`boolean`) - Whether another provider bills this line instead of the practice that issued the Quote.
          - `object` (`any`) - Discriminator value emitted at `object`.
          - `quantity` (`number | null`) - The quantity quoted.
          - `title` (`string | null`) - The line item description.
          - `total` (`integer | null`) - The line total in minor currency units.
          - `unit_price` (`integer | null`) - The unit price in minor currency units.
          - `updated_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `links` (`object`) - URLs to related resources.
        - `alternative_payor` (`string | null`) - format: `uri`; The full URL of a related resource.
        - `bookings` (`array`) - Developer Platform URLs for linked Bookings.
          - `items` (`string`) - format: `uri`; The full URL of a related resource.
        - `clinician` (`string | null`) - format: `uri`; The full URL of a related resource.
        - `current_invoice` (`string | null`) - format: `uri`; The full URL of a related resource.
        - `invoice` (`string | null`) - format: `uri`; The full URL of a related resource.
        - `invoices` (`array`) - Developer Platform URLs for every generated Invoice.
          - `items` (`string`) - format: `uri`; The full URL of a related resource.
        - `patient` (`string | null`) - format: `uri`; The full URL of a related resource.
      - `notes` (`string | null`) - Sanitized HTML notes on the Quote.
      - `object` (`any`) - Discriminator value emitted at `object`.
      - `patient_id` (`string | null`) - format: `uuid`; The Patient associated with the Quote.
      - `payor_type` (`string | null`) - enum: `patient`, `alternative_payor`, `null`; The party the Quote is issued to.
      - `quote_number` (`string | null`) - The Quote number, unique within the Organization.
      - `quoted_on` (`string | null`) - format: `date`; The date the Quote was issued or drafted.
      - `recipient_display_name` (`string | null`) - The display name of the live Patient or AlternativePayor the Quote is sent to.
      - `sent_at` (`string | null`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
      - `status` (`string | null`) - enum: `draft`, `sent`, `accepted`, `declined`, `expired`, `canceled`, `invoiced`, `null`; The Quote's current status.
      - `terms` (`string | null`) - Sanitized HTML terms copied onto the Quote.
      - `title` (`string | null`) - The Quote title.
      - `total` (`integer`) - The Quote total in minor currency units, including lines billed by another provider.
      - `total_collectible_by_issuing_organization` (`integer`) - The amount the issuing Organization will collect, in minor currency units. Excludes lines billed by another provider.
      - `updated_at` (`string`) - format: `date-time`; An ISO 8601 timestamp in UTC, with a `Z` suffix. For example, `2026-07-01T09:00:00Z`.
  - `developer_platform_project_id` (`string | null`) - format: `uuid`; The project ID whose credential caused the change. Null for `dashboard` events.
  - `id` (`string`) - Event identifier prefixed with `evt_`.
  - `livemode` (`boolean`) - `false` for test-event deliveries.
  - `object` (`any`)
  - `source` (`string`) - enum: `api`, `dashboard`; Origin of the change. `api` means a Developer Platform mutation; `dashboard` means a Carebit-initiated change.
  - `type` (`any`)

### Example payload

```json
{
  "id": "evt_00000000-0000-4000-8000-000000000012",
  "object": "event",
  "api_version": "v1",
  "created_at": "2026-01-01T09:00:00Z",
  "data": {
    "object": {
      "id": "00000000-0000-4000-8000-000000000029",
      "object": "quote",
      "accepted_at": null,
      "alternative_payor_id": null,
      "booking_ids": [
        "00000000-0000-4000-8000-000000000001"
      ],
      "cancel_reason": null,
      "canceled_at": null,
      "clinician_id": "00000000-0000-4000-8000-000000000002",
      "created_at": "2026-01-01T09:00:00Z",
      "creation_source": "api",
      "currency": "gbp",
      "current_invoice_id": null,
      "declined_at": null,
      "expired_at": null,
      "expires_on": "2026-01-31",
      "invoice_id": null,
      "invoice_ids": [],
      "invoiced_at": null,
      "line_items": [
        {
          "id": "00000000-0000-4000-8000-000000000030",
          "object": "quote_line_item",
          "booking_id": "00000000-0000-4000-8000-000000000001",
          "created_at": "2026-01-01T09:00:00Z",
          "currency": "gbp",
          "discount_amount": 0,
          "external_provider_name": null,
          "is_billed_by_another_provider": false,
          "quantity": 1,
          "title": "Initial consultation",
          "total": 25000,
          "unit_price": 25000,
          "updated_at": "2026-01-01T09:00:00Z"
        }
      ],
      "links": {
        "alternative_payor": null,
        "bookings": [
          "https://api.carebit.co/v1/bookings/00000000-0000-4000-8000-000000000001"
        ],
        "clinician": "https://api.carebit.co/v1/clinicians/00000000-0000-4000-8000-000000000002",
        "current_invoice": null,
        "invoice": null,
        "invoices": [],
        "patient": "https://api.carebit.co/v1/patients/00000000-0000-4000-8000-000000000004"
      },
      "notes": "",
      "patient_id": "00000000-0000-4000-8000-000000000004",
      "payor_type": "patient",
      "quote_number": "QUO-1001",
      "quoted_on": "2026-01-01",
      "recipient_display_name": "Test Patient",
      "sent_at": null,
      "status": "draft",
      "terms": "<p>This quote is valid until the expiry date shown.</p>",
      "title": "Initial consultation quote",
      "total": 25000,
      "total_collectible_by_issuing_organization": 25000,
      "updated_at": "2026-01-01T09:00:00Z"
    }
  },
  "developer_platform_project_id": null,
  "livemode": false,
  "source": "dashboard",
  "type": "quote.created"
}
```
