Skip to content
Maua.Culturewire

Xero

Accounting: invoices, contacts, payments, banks and organization

Finance and accountingCatalog2 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • OAuth 2.0

    PKCEYour OAuth app

    Bring your own OAuth app: register one with Xero, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide

    Registering the OAuth app

    1. At developer.xero.com/app/manage click “New app”: type “Web app”, a name, the company website (e.g. https://www.example.com) and, as “Redirect URI”, the redirect URI shown below.
    2. Create it and, in “Configuration”, click “Generate a secret”; copy the Client ID and the Client secret.
    3. When you click “Continue with Xero”, choose the Xero organization: the last one you authorize is used. Permissions are requested for settings, contacts, invoices, payments, bank transactions and attachments; accounting reports (profit and loss, balance sheet) need scopes that Xero restricts to its partners.

    Default scopes

    • offline_access
    • accounting.settings
    • accounting.contacts
    • accounting.invoices
    • accounting.payments
    • accounting.banktransactions
    • accounting.attachments

Tools (2)

  • Xero API requestXERO_SEND_REQUEST

    Authenticated call to the Xero API (https://api.xero.com/api.xro/2.0). Any endpoint of the API is allowed. For another connected organization, pass the xero-tenant-id header (lowercase) with its tenantId from GET https://api.xero.com/connections. Examples: GET /Invoices?Statuses=AUTHORISED&where=Type=="ACCREC"&order=DueDate&page=1&summaryOnly=true, GET /Invoices/{id or number}, GET /Contacts?searchTerm=…, POST /Invoices {"Invoices": [{"Type": "ACCREC", "Contact": {"ContactID": "…"}, "LineItems": [{"Description": "…", "Quantity": 1, "UnitAmount": 100, "AccountCode": "200"}], "Status": "DRAFT"}]}, GET /Payments?where=Date>=DateTime(2026,10,01), GET /BankTransactions?page=1, GET /Accounts, GET /TaxRates, GET /Items, GET /Invoices/{id}/OnlineInvoice. Pagination: page (100 per page).

    Required scopes

    No scopes required

    Input

    Xero API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • InvoicesXERO_LIST_INVOICES

    Issued (ACCREC) or received (ACCPAY) invoices, from newest to oldest: number, contact, date, due date, status, total, amount due and currency. 100 per page.

    Required scopes

    No scopes required

    Input

    Invoices input
    NameTypeDescription
    typestringACCREC: issued (sales); ACCPAY: received (purchases)One of: ACCREC, ACCPAYDefault: "ACCREC"
    statusesstring[]Default: all except voided and deleted
    fromstringInvoice date from (YYYY-MM-DD)
    contactstringContactID of the customer or supplier
    textstringSearches the number and the reference
    pageintegerDefault: 1