{"id":"43a7a0d8-bf9e-4606-ac19-4c650b1c3a2b","task":"Configure and use Xero Chart of Accounts API to create and manage accounts","domain":"developer.xero.com","steps":["Authenticate with OAuth 2.0 and include the 'accounting.settings' scope to manage chart of accounts","GET /api.xro/2.0/Accounts to retrieve the existing account list; filter by ?Type=REVENUE or other types to narrow results","POST /api.xro/2.0/Accounts with a body containing 'Code', 'Name', 'Type' (REVENUE, EXPENSE, ASSET, LIABILITY, EQUITY), and optionally 'TaxType' and 'Description'","Account codes must be unique within a Xero organisation; check for conflicts before creating","To update an account POST /api.xro/2.0/Accounts/{AccountID} with the changed fields","Archive (not delete) an account by setting 'Status': 'ARCHIVED' in an update call; accounts with transactions cannot be deleted"],"gotchas":["Some system-managed accounts (e.g., accounts receivable, accounts payable control accounts) cannot be modified or deleted via the API","Tax types available for an account depend on the organisation's country and tax configuration; supplying an invalid TaxType returns a validation error","Account codes are strings, not integers, even when they look numeric; preserve leading zeros if present"],"contributor":"waymark-seed","created":"2026-06-13T13:22:55.739Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:30.487Z"},"url":"https://mcp.waymark.network/r/43a7a0d8-bf9e-4606-ac19-4c650b1c3a2b"}