Sync an Invoice Batch
post
/public/v1/invoice-batches/{invoiceBatch}/syncQueues a finalised batch's invoices to be sent to the account's accounting platform, Xero or MYOB.
The sync runs in the background: accounting_sync_status is queued until it finishes, then synced or failed.
A batch syncs when it has not synced yet, when its last sync failed, or when the platform no longer has some of its invoices.
invoiceBatchstringrequiredThe invoice batch UUID
Response
200application/jsonInvoiceBatchResource
dataobjectrequired▶Show 7 child attributesHide child attributes
idstringrequiredExample:b1a2t3c4-f5a6-47b8-9c0d-1e2f3a4b5c6dreferencestringrequiredExample:BATCH-2024-001statusenum<string>requiredAvailable options:draftfinalisedprocessingqueuedinvoice_sending_behaviourenum<string>requiredAvailable options:do_not_send_automaticallysend_automaticallyaccounting_sync_statusenum<string> | nullrequiredAvailable options:failedpendingqueuedsyncedfinalised_atstring | nullrequiredExample:2024-01-15T10:30:00+00:00created_atstringrequiredExample:2024-01-15T10:30:00+00:00
401Unauthenticated403Authorization error404Not found409The batch is not finalised, is already queued or synced, or the account has no connected accounting platform to sync it to.