Skip to navigation

Retrieve (via POST) ad-hoc preview

Previews account-split ad-hoc line items without persisting them. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItemServerCreate1])

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
ad_hoc_line_itemslist of objectsRequired
task_group_idstringRequired

Response

Successful Response
created_at_timestampstringformat: "date-time"
created_by_user_idstring

Must be a string starting with user_

currency_codeenum
descriptionstring1-32768 characters
invoice_typeenum
Allowed values:
last_edited_at_timestampstringformat: "date-time"
last_edited_by_user_idstring

Must be a string starting with user_

line_item_typeenum
owned_by_org_idstring

Must be a string starting with org_

quantitydouble
schema_versioninteger
unit_pricedouble
awb_numberstring or nullOptionalformat: "^\d{3}-\d{8}$"
billing_line_keystring or nullOptional1-1024 characters
billing_period_idstring or nullOptional
counterparty_driver_idstring or nullOptional
counterparty_off_chrt_org_data_idstring or nullOptional
counterparty_org_idstring or nullOptional
currency_conversionobject or nullOptional
edited_by_userbooleanOptionalDefaults to false
export_ref__sage__item_idstring or nullOptional<=255 characters
generated_by_pricingbooleanOptionalDefaults to false
invoice_idstring or nullOptional
needs_reviewbooleanOptionalDefaults to false
order_idstring or nullOptional
rate_sheet_idstring or nullOptional
rate_sheet_revisioninteger or nullOptional>=1
shipper_account_idstring or nullOptional
source_order_billing_quote_idstring or nullOptional
statusenumOptional
Allowed values:
task_group_idstring or nullOptional
task_idslist of stringsOptional
task_short_idslist of stringsOptional
tax_percentagedouble or nullOptional>=0
unitenum or nullOptional

Errors

422
Unprocessable Entity Error