---
title: "Expanded"
method: GET
path: "/billing_new/invoices/expanded/v1/{invoice_id}"
tags: ["/billing_new"]
---

# Expanded

`GET /billing_new/invoices/expanded/v1/{invoice_id}`

Retrieves an owner-scoped invoice with line-item orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)

## Path parameters

- `invoice_id` string, required

## Response `200`

Successful Response

- InvoiceExpandedRes
  - `invoice` Invoice1, required
    - `schema_version` 1, required
    - `invoice_type` 'accounts_receivable' | 'accounts_payable', required
    - `counterparty_org_id` string, nullable — Must be a string starting with `org_`
    - `counterparty_off_chrt_org_data_id` string, nullable
    - `counterparty_driver_id` string, nullable
    - `currency_code` 'USD' | 'CAD' | 'EUR' | 'GBP' | 'MXN' | 'AUD' | 'JPY' | 'CNY' | 'CHF' | 'INR' | 'XXX', required
    - `name` string, nullable
    - `description` string, nullable
    - `export_ref__sage__department_id` string, nullable
    - `export_ref__sage__customer_id` string, nullable
    - `owned_by_org_id` string, required — Must be a string starting with `org_`
    - `period_start_at_timestamp` string, date-time, required
    - `period_end_at_timestamp` string, date-time, required
    - `counterparty_account_ids` string[]
    - `invoice_line_item_ids` string[]
    - `total_amount` number, nullable
    - `status` 'draft' | 'approved' | 'void'
    - `approved_by_user_id` string, nullable — Must be a string starting with `user_`
    - `approved_at_timestamp` string, date-time, nullable
    - `voided_by_user_id` string, nullable — Must be a string starting with `user_`
    - `voided_at_timestamp` string, date-time, nullable
    - `void_reason` string, nullable
    - `merge_linked_account_id` string, nullable
    - `merge_invoice_id` string, nullable
    - `merge_remote_id` string, nullable
    - `merge_invoice_number` string, nullable
    - `merge_invoice_url` string, nullable
    - `merge_status` 'draft' | 'submitted' | 'open' | 'partially_paid' | 'paid' | 'void'
    - `merge_remote_was_deleted` boolean
    - `merge_exported_by_user_id` string, nullable — Must be a string starting with `user_`
    - `merge_exported_at_timestamp` string, date-time, nullable
    - `stripe_invoice_id` string, nullable
    - `stripe_invoice_number` string, nullable
    - `stripe_invoice_url` string, nullable
    - `stripe_status` 'draft' | 'open' | 'paid' | 'uncollectible' | 'void'
    - `stripe_was_deleted` boolean
    - `stripe_exported_by_user_id` string, nullable — Must be a string starting with `user_`
    - `stripe_exported_at_timestamp` string, date-time, nullable
    - `file_exported_by_user_id` string, nullable — Must be a string starting with `user_`
    - `file_exported_at_timestamp` string, date-time, nullable
    - `created_by_user_id` string, required — Must be a string starting with `user_`
    - `created_at_timestamp` string, date-time, required
    - `last_edited_by_user_id` string, required — Must be a string starting with `user_`
    - `last_edited_at_timestamp` string, date-time, required
    - `_id` string, required
  - `invoice_line_items` InvoiceLineItemExpandedRes[]
    - `invoice_line_item` InvoiceLineItem1, required
      - `schema_version` 1, required
      - `invoice_type` 'accounts_receivable' | 'accounts_payable', required
      - `description` string, required
      - `quantity` number, required
      - `unit` 'each' | 'shipment' | 'hour' | 'day' | 'mile' | 'kilometer' | 'pound' | 'kilogram'
      - `unit_price` number, required
      - `currency_code` 'USD' | 'CAD' | 'EUR' | 'GBP' | 'MXN' | 'AUD' | 'JPY' | 'CNY' | 'CHF' | 'INR' | 'XXX', required
      - `line_item_type` 'base_rate' | 'additional_mileage' | 'long_distance_mileage' | 'fuel' | 'extra_stop' | 'wait_time' | 'attempt' | 'pick_and_hold' | 'parking' | 'tolls' | 'additional_fee' | 'dispute' | 'equipment' | 'dangerous_goods' | 'special_vehicle' | 'after_hours' | 'weekend' | 'holiday' | 'air_waybill' | 'insurance' | 'off_network_carrier' | 'obc_day_rate' | 'flight_ticket' | 'tracking_device_label' | 'tracking_device_tag' | 'tracking_device_other' | 'tax_1' | 'tax_2' | 'tax_3' | 'other', required
      - `tax_percentage` number, nullable
      - `counterparty_org_id` string, nullable — Must be a string starting with `org_`
      - `counterparty_off_chrt_org_data_id` string, nullable
      - `counterparty_driver_id` string, nullable
      - `shipper_account_id` string, nullable
      - `awb_number` string, nullable — IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'.
      - `export_ref__sage__item_id` string, nullable
      - `order_id` string, nullable
      - `task_group_id` string, nullable
      - `billing_period_id` string, nullable
      - `invoice_id` string, nullable
      - `rate_sheet_id` string, nullable
      - `currency_conversion` InvoiceLineItemCurrencyConversion1
        - `source_unit_price` number, required
        - `source_currency_code` 'USD' | 'CAD' | 'EUR' | 'GBP' | 'MXN' | 'AUD' | 'JPY' | 'CNY' | 'CHF' | 'INR' | 'XXX', required
        - `conversion_rate` number, required — Units of the target currency per one unit of source_currency_code. unit_price = source_unit_price * conversion_rate.
        - `description` string, nullable
      - `status` 'draft' | 'approved' | 'finalized'
      - `owned_by_org_id` string, required — Must be a string starting with `org_`
      - `created_by_user_id` string, required — Must be a string starting with `user_`
      - `created_at_timestamp` string, date-time, required
      - `last_edited_by_user_id` string, required — Must be a string starting with `user_`
      - `last_edited_at_timestamp` string, date-time, required
      - `_id` string, required
    - `order` OrderLimitedForProvider1 — Provider view: full order when coordinator; when executor only, task groups are filtered to the provider's own and other executors' operational fields are redacted.
      - `schema_version` 1, required
      - `_id` string, required
      - `short_id` string, required
      - `task_group_details` OrderTaskGroupExecutorDetails1[]
        - `task_group_id` string, required
        - `task_group_type` 'chrt_ground_provider' | 'cargo_on_flight' | 'onboard_courier', required
        - `executor_org_id` string, nullable — Must be a string starting with `org_`
        - `off_chrt_executor_org_data_id` string, nullable
        - `executor_department_id` string, nullable
        - `executor_assigned_user_ids` string[]
        - `executor_label` string, nullable
      - `order_classification_by_task_group_type` 'chrt_ground_provider' | 'cargo_on_flight' | 'onboard_courier'
      - `awb_numbers` string[]
      - `invoice_ids` string[]
      - `off_chrt_reference_id` string, nullable — Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved).
      - `order_schedule_id` string, nullable
      - `order_schedule_run_idempotency_key` string, nullable
      - `order_template_new_id` string, nullable
      - `creation_idempotency_key` string, nullable
      - `created_by_user_id` string, nullable — Must be a string starting with `user_`
      - `created_by_org_id` string, required — Must be a string starting with `org_`
      - `shipper_org_id` string, nullable — Must be a string starting with `org_`
      - `off_chrt_shipper_org_data_id` string, nullable
      - `coordinator_shipper_account_ids` string[]
      - `coordinator_org_id` string, nullable — Must be a string starting with `org_`
      - `coordinator_department_id` string, nullable
      - `coordinator_assigned_user_ids` string[]
      - `coordinator_label` string, nullable
      - `coordinator_task_lists_to_apply_at_order_staging` TaskListToApplyToOrder1[]
        - `task_list_id` string, required
        - `department_id` string, nullable
        - `initial_deadline_timestamp` string, date-time, nullable
      - `service_line` 'on_demand' | 'routed'
      - `status` 'draft' | 'staged' | 'in_progress' | 'completed' | 'cancelled' | 'exception'
      - `draft_started_at_timestamp` string, date-time, required
      - `staged_at_timestamp` string, date-time, nullable
      - `in_progress_at_timestamp` string, date-time, nullable
      - `completed_at_timestamp` string, date-time, nullable
      - `cancelled_at_timestamp` string, date-time, nullable
      - `exception_at_timestamp` string, date-time, nullable
    - `counterparty_org` OrgPublicData1 — unresolved $ref
    - `counterparty_off_chrt_org_data` OffChrtOrgData1 — unresolved $ref
    - `counterparty_driver` Driver1 — unresolved $ref
    - `shipper_account` Account1 — unresolved $ref
  - `counterparty_org` OrgPublicData1 — unresolved $ref
  - `counterparty_off_chrt_org_data` OffChrtOrgData1 — unresolved $ref
  - `counterparty_driver` Driver1 — unresolved $ref
  - `counterparty_accounts` Account1[] — unresolved $ref

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chrt/apis/chrt-fastapi.md) · [All operations](https://skmtc.dev/chrt/apis/chrt-fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chrt/chrt-fastapi/revisions/423b3b544a4e/schema)
