feat(Xero Node): Add accounting.attachments scope to enable attachment uploads - #206
Open
everettbu wants to merge 6 commits into
Open
feat(Xero Node): Add accounting.attachments scope to enable attachment uploads#206everettbu wants to merge 6 commits into
everettbu wants to merge 6 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirror of n8n-io/n8n#21366
Original author: Aaqeb11
Summary
Added
accounting.attachmentsscope to Xero OAuth2 credentials to enable attachment upload functionality. This scope is required by the Xero API for uploading files to invoices, bills, and other Xero entities but was missing from n8n's default Xero OAuth2 scope configuration.Testing performed:
Change details:
Added
accounting.attachmentsto the scopes array in Xero OAuth2 credentials:This enables users to upload PDF attachments and other files to Xero invoices, bills, and contacts without needing to create a workaround using Generic OAuth2 credentials.[2]
Related Linear tickets, Github issues, and Community forum posts
Fixes #20670
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)Note: The original issue reported an "Unsupported content type: text/html; charset=utf-8" error during OAuth2 callback. This error could not be replicated during testing on either cloud or self-hosted environments. The authentication flow worked correctly in both configurations. If users continue to experience callback errors, further investigation may be needed with additional debug logs and environment-specific details.
Screenshots
Self-hosted n8n


n8n-cloud version
Note
Adds the
accounting.attachmentsscope to Xero OAuth2 credentials to enable attachment uploads.Written by Cursor Bugbot for commit 12fd677. This will update automatically on new commits. Configure here.