Finance

Xero Readiness

Read Xero invoices, bills and contacts from an OrgSDK action. Check line items and existing invoice references in the configured organisation.

View 6 plugin functions ↓

Use Xero Readiness in a project

  • Check existing invoice line items before preparing a billing review
  • Match invoice references and contacts to project records
  • List attachment metadata for invoices under review

Access and credentials

Reads the configured authorised Xero organisation only: invoices/bills, contacts and invoice attachment metadata. Every call verifies the tenant against /connections. No writes, email, payments, deletion or file downloads.

Obtain an OAuth access token using your own provider application and store it in OrgSDK. On OrgSDK 0.1.0, renew this token outside OrgSDK before it expires; native consent and refresh are not available for this provider.

Verify the configured Xero organisation

In Studio, open your project’s Plugins page and enable Xero Readiness. Connect the account you want to use. Paste this example into an action in the same project.

// Confirm the connection before asking for bookkeeping records.
return await xero.verifyConnection({});

Workflow examples and guides

Use with OrgSDK

OrgSDK gives external AI clients persistent projects and controlled execution. Plugins add optional tools to those projects. Each run uses pinned plugin versions, and project configuration determines which credentials they can use.

Set up OrgSDK locally ↗

Capabilities

6 functions from this published version. Read calls retrieve or process information; write actions can change data in the connected service.

6 of 6 functions

Verify the configured tenant against Xero's authorised connections; return only that organisation.

Parameters and return value

This call takes no parameters.

Returns Promise<XeroConnection>

Read one page of sales invoices or bills with line items in a date range of at most 366 days. No provider changes.

Parameters and return value
ParameterTypeDetails
fromstringInclusive invoice date YYYY-MM-DD.
tostringInclusive invoice date YYYY-MM-DD.
statusOptional"DRAFT" | "SUBMITTED" | "AUTHORISED" | "PAID" | "VOIDED" | "DELETED"—
typeOptional"ACCREC" | "ACCPAY"—
contactIdOptionalstring—
pageOptionalnumber1..10000; one page is fetched per call.
pageSizeOptionalnumber1..100; defaults to 50.

Returns Promise<{ invoices: XeroInvoice[]; page: number; pageSize: number; nextPage: number | null; mayHaveMore: boolean }>

Read one invoice or bill, including reference, totals, status and line items.

Parameters and return value
ParameterTypeDetails
invoiceIdstring—

Returns Promise<XeroInvoice>

Read one page of customer/supplier contact and billing identity data.

Parameters and return value
ParameterTypeDetails
pageOptionalnumber1..10000; one page is fetched per call.
pageSizeOptionalnumber1..100; defaults to 50.

Returns Promise<{ contacts: XeroContact[]; page: number; pageSize: number; nextPage: number | null; mayHaveMore: boolean }>

Read one contact's billing identity and addresses.

Parameters and return value
ParameterTypeDetails
contactIdstring—

Returns Promise<XeroContact>

Read attachment metadata for one invoice. Files and provider URLs are not downloaded or exposed.

Parameters and return value
ParameterTypeDetails
invoiceIdstring—

Returns Promise<{ invoiceId: string; attachments: XeroAttachment[] }>