/billing_new

Create line items from amount

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)

post/billing_new/invoice_line_items/create_from_amount/v1

Request body

amountnumber required
currency_code'USD' | 'CAD' | 'EUR' | 'GBP' | 'MXN' | 'AUD' | 'JPY' | 'CNY' | 'CHF' | 'INR' | 'XXX' required
counterparty_org_idstring nullable

Must be a string starting with org_

counterparty_off_chrt_org_data_idstring nullable
counterparty_driver_idstring nullable
account_idsstring[]
descriptionstring 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_percentagenumber nullable
invoice_type'accounts_receivable' | 'accounts_payable' required
invoice_idstring nullable
order_idstring nullable
task_group_idstring nullable
awb_numberstring nullable

IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'.

Response

Successful Response

invoice_idstring required
created_invoice_line_item_countinteger required

Changes

No recorded changes to this endpoint across all 1 revision of this API.