Log In

Sync an Invoice Batch

post/public/v1/invoice-batches/{invoiceBatch}/sync

Queues 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.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • invoiceBatchstringrequired

    The invoice batch UUID

Response

200application/json

InvoiceBatchResource

  • dataobjectrequired
    ▶Show 7 child attributes
    • idstringrequired
      Example:b1a2t3c4-f5a6-47b8-9c0d-1e2f3a4b5c6d
    • referencestringrequired
      Example:BATCH-2024-001
    • statusenum<string>required
      Available options:draftfinalisedprocessingqueued
    • invoice_sending_behaviourenum<string>required
      Available options:do_not_send_automaticallysend_automatically
    • accounting_sync_statusenum<string> | nullrequired
      Available options:failedpendingqueuedsynced
    • finalised_atstring | nullrequired
      Example:2024-01-15T10:30:00+00:00
    • created_atstringrequired
      Example:2024-01-15T10:30:00+00:00
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 409The batch is not finalised, is already queued or synced, or the account has no connected accounting platform to sync it to.