---
title: "Create line items from amount"
method: POST
path: "/billing_new/invoice_line_items/create_from_amount/v1"
tags: ["/billing_new"]
---

# Create line items from amount

`POST /billing_new/invoice_line_items/create_from_amount/v1`

Creates optionally order-attributed line items from an amount and attaches them to a draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators, order_executor_org_operators, task_group_coordinator_operators, executor_org_operators] when order-attributed | (CreateInvoiceLineItemsFromAmountReq) -> (CreateInvoiceLineItemsFromAmountRes)

## Request body

- CreateInvoiceLineItemsFromAmountReq
  - `amount` number, required
  - `currency_code` 'USD' | 'CAD' | 'EUR' | 'GBP' | 'MXN' | 'AUD' | 'JPY' | 'CNY' | 'CHF' | 'INR' | 'XXX', 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
  - `account_ids` string[]
  - `description` string, 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
  - `invoice_type` 'accounts_receivable' | 'accounts_payable', required
  - `invoice_id` string, nullable
  - `order_id` string, nullable
  - `task_group_id` string, nullable
  - `awb_number` string, nullable — IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'.

## Response `200`

Successful Response

- CreateInvoiceLineItemsFromAmountRes
  - `invoice_id` string, required
  - `created_invoice_line_item_count` integer, required

## 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/ea04e157edb3/schema)
