/billing_new

Approve many

Atomically approves draft line items owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsApproveManyReq) -> (list[InvoiceLineItem1])

patch/billing_new/invoice_line_items/approve_many/v1

Request body

invoice_line_item_idsstring[] required

Response

Successful Response

schema_version1 required
invoice_type'accounts_receivable' | 'accounts_payable' required
descriptionstring required
quantitynumber required
unit'each' | 'shipment' | 'hour' | 'day' | 'mile' | 'kilometer' | 'pound' | 'kilogram'
unit_pricenumber 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_percentagenumber nullable
counterparty_org_idstring nullable

Must be a string starting with org_

counterparty_off_chrt_org_data_idstring nullable
counterparty_driver_idstring nullable
shipper_account_idstring nullable
awb_numberstring nullable

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

export_ref__sage__item_idstring nullable
order_idstring nullable
task_group_idstring nullable
billing_period_idstring nullable
invoice_idstring nullable
rate_sheet_idstring nullable
status'draft' | 'approved' | 'finalized'
owned_by_org_idstring required

Must be a string starting with org_

created_by_user_idstring required

Must be a string starting with user_

created_at_timestampstring date-time required
last_edited_by_user_idstring required

Must be a string starting with user_

last_edited_at_timestampstring date-time required
_idstring required

Changes

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