/billing_new
/billing_new/invoices

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)

post/billing_new/invoices/preview/v1

Request body

schema_version1 required
invoice_type'accounts_receivable' | 'accounts_payable' required
counterparty_org_idstring nullable

Must be a string starting with org_

counterparty_off_chrt_org_data_idstring nullable
counterparty_driver_idstring nullable
currency_code'USD' | 'CAD' | 'EUR' | 'GBP' | 'MXN' | 'AUD' | 'JPY' | 'CNY' | 'CHF' | 'INR' required
namestring nullable
descriptionstring nullable
export_ref__sage__department_idstring nullable
export_ref__sage__customer_idstring nullable
period_start_at_timestampstring date-time nullable
period_end_at_timestampstring date-time nullable
invoice_line_item_idsstring[]

Response

Successful Response

tax_configurations_by_line_item_idobject

Changes

Changed in 2 of the 9 revisions of this API.14

  • 1a1e5a995fc913See the full diff
    • ▲

      removed the required property /// from the response with the status

      response-required-property-removed

    • ○

      added the optional property /// to the response with the status

      response-optional-property-added

    • ○

      added the required property /// to the response with the status

      response-required-property-added

    • ○

      added the required property /// to the response with the status

      response-required-property-added

    • ○

      endpoint added

      endpoint-added

    This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog