Skip to main content

Sync Entity From Xero

POST 

/api/xero/v2/sync-status/:entity/sync-now

Pull one entity from Xero now, as a background job.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token, and the integrations.sync permission.

Path parameters:

  • entity (string, required) - one of accounts, tax_rates, contacts, bank_transactions, payments. The remaining entities reported by Get Mirror Sync Status are written by the accounting ledger and cannot be synced from here (can_sync_now is false for those).

Returns the id of the background job so its progress can be followed. When a run of the same job is already in flight, that run's id is returned instead of a second one being started.

Bank transactions and payments are pulled in their scheduled shape - the whole entity, which is contiguous with what is already mirrored - so the run is capped by the daily API budget, resumes after a rate limit instead of restarting, and records its outcome.

Returns 403 without the permission, 404 for an unknown entity, and 422 for one the accounting ledger owns.

Request​

Responses​

OK

Response Headers
    Content-Type