0

What is the correct scope to generate invoices using the Xero API?

The docs say I should direct users to the following URL:

https://login.xero.com/identity/connect/authorize?
  response_type=code&
  client_id=YOURCLIENTID&
  redirect_uri=YOURREDIRECTURI&
  scope=openid profile email accounting.transactions&
  state=123

And says:

But I can't see anything that clearly states "Invoicing" or "Create invoice" unless its one of the following:

Accounting API

accounting.transactions
accounting.transactions.read
accounting.reports.read
accounting.journals.read
accounting.settings
accounting.settings.read
accounting.contacts
accounting.contacts.read
accounting.attachments
accounting.attachments.read

What values do I need to pass as the scope parameter?

Djave
  • 8,595
  • 8
  • 70
  • 124

1 Answers1

1

Invoice interactions are included in the set of business transactions covered by the accounting.transactions scope (and accounting.transactions.read for read-only actions).

rustyskates
  • 856
  • 4
  • 10
  • Note the scopes page has now been updated to include the specific endpoints covered by each scope: https://developer.xero.com/documentation/oauth2/scopes – rustyskates Sep 20 '19 at 03:36