Skip to main content

deleteOrderFinancials

Deletes a batch of accounting documents (invoices / sales receipts).

Runs asynchronously: returns a process_id immediately and reports the outcome through the process_status_updates subscription. A background job deletes each document independently — a not-found document counts as a skip, and a failed one is recorded without stopping the rest.

Business Rules​

  • Each document must exist within the current company.
  • A document sent to the accounting provider is archived, and the QuickBooks document is voided or deleted per the integration's Document removal setting (or flagged in the activity log for manual cleanup when disabled).
  • A document never sent to the accounting provider is destroyed outright.

Error Scenarios​

  • **BAD_REQUEST**: when more documents are passed than the bulk operation limit.

Permissions Required​

  • accounting:delete_order_financial permission
deleteOrderFinancials(
input: DeleteOrderFinancialsInput!
): AsynchronousActionResponse!

Arguments​

deleteOrderFinancials.input ● DeleteOrderFinancialsInput! non-null input common​

Parameters for DeleteOrderFinancials

Type​

AsynchronousActionResponse object common​

Asynchronous action response type