Skip to main content

Sync Bank Transactions from Xero

POST 

/api/xero/bank-transactions/download

Dispatch a tracked background sync that pulls bank transactions from Xero's BankTransactions API into the local cache (paged 100/request, upserted by BankTransactionID).

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Authentication: Requires Bearer token.

Body (all optional, nullable dates Y-m-d):

  • date_from — only transactions dated on/after (builds the Xero OData Date >= DateTime(...) filter)
  • date_to — only transactions dated on/before
  • modified_after — incremental: only records changed since (If-Modified-Since)

All null = full pull. Returns the tracked-job id so the UI can follow progress via the tracked job log endpoints.

Request

Responses

OK

Response Headers
    Content-Type