title: Oauth2 Scope for invoices in Xero API?
body: <p>What is the correct scope to generate invoices using the Xero API?</p>
  
  <p>The docs say I should direct users to the following URL:</p>
  
  <pre><code>https://login.xero.com/identity/connect/authorize?
    response_type=code&amp;
    client_id=YOURCLIENTID&amp;
    redirect_uri=YOURREDIRECTURI&amp;
    scope=openid profile email accounting.transactions&amp;
    state=123
  </code></pre>
  
  <p>And says:</p>
  
  <ul>
  <li>scope permissions to request (<a href="https://developer.xero.com/documentation/oauth2/scopes" rel="nofollow noreferrer">links to here</a>)</li>
  </ul>
  
  <p>But I can't see anything that clearly states "Invoicing" or "Create invoice" unless its one of the following:</p>
  
  <p><strong>Accounting API</strong></p>
  
  <pre><code>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
  </code></pre>
  
  <p>What values do I need to pass as the scope parameter?</p>