Skip to navigation

Preview selected charges

Previews exact uninvoiced charges, current resolved taxes, and explicit or derived billing dates without saving. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceCreateReq) -> (InvoicePreviewRes)

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
currency_codeenumRequired
invoice_typeenumRequired
Allowed values:
schema_versionintegerRequired
counterparty_driver_idstringOptional
counterparty_off_chrt_org_data_idstringOptional
counterparty_org_idstringOptional

Must be a string starting with org_

descriptionstringOptional<=32768 characters
export_ref__sage__customer_idstringOptional<=255 characters
export_ref__sage__department_idstringOptional<=255 characters
invoice_line_item_idslist of stringsOptional
namestringOptional<=255 characters
period_end_at_timestampdatetimeOptional
period_start_at_timestampdatetimeOptional

Response

Successful Response
calculationobject
invoiceobject
invoice_line_itemslist of objectsOptional
tax_configurations_by_line_item_idmap from strings to optional objectsOptional

Errors

422
Invoices Preview V1request Unprocessable Entity Error