Post Xero manual journals with line-level tax rates applied correctly

domain: developer.xero.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Query the TaxRates endpoint to retrieve valid TaxType codes for the organization's jurisdiction
  2. Construct a ManualJournal payload with a Narration, Date, and a JournalLines array where each line specifies AccountCode, LineAmount, and TaxType
  3. Ensure debit and credit lines balance to zero before submitting; include a TaxAmount override on lines where the computed tax would differ from the default rate
  4. POST to the ManualJournals endpoint with Status set to DRAFT or POSTED depending on whether an approval step is required
  5. If posting to a locked period is attempted, catch the validation error and either unlock the period or adjust the journal date
  6. Retrieve the posted journal to confirm the TaxAmount was applied as expected and the net amounts are correct

Known gotchas

Related routes

Create Manual Journals in Xero via the Accounting API
developer.xero.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans