Create line items from line items

Creates optionally order-attributed line items by transforming submitted line items 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 | (CreateInvoiceLineItemsFromLineItemsReq) -> (CreateInvoiceLineItemsFromLineItemsRes)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
descriptionstringRequired1-32768 characters
invoice_line_item_amount_transformationobjectRequired
invoice_typeenumRequired
Allowed values:
line_item_typeenumRequired
source_invoice_line_itemslist of objectsRequired
account_idslist of stringsOptional
counterparty_off_chrt_org_data_idstringOptional
counterparty_org_idstringOptional

Must be a string starting with org_

invoice_idstringOptional
order_idstringOptional
task_group_idstringOptional

Response

Successful Response
created_invoice_line_item_countinteger
invoice_idstring

Errors

422
Invoice Line Items Create from Line Items V1request Unprocessable Entity Error