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)

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
amountdoubleRequired
currency_codeenumRequired
descriptionstringRequired1-32768 characters
invoice_typeenumRequired
Allowed values:
line_item_typeenumRequired
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
tax_percentagedoubleOptional>=0

Response

Successful Response
created_invoice_line_item_countinteger
invoice_idstring

Errors

422
Invoice Line Items Create from Amount V1request Unprocessable Entity Error