Source profileQuality 94/100

WYRE-AI/msp-claude-plugins/msp-claude-plugins/xero/xero/skills/contacts/SKILL.md

Xero Contacts

Xero contacts (customers and suppliers): contact fields, addresses and phones, contact groups, status values and read-only balances, plus MSP client onboarding, offboarding, and PSA cross-referencing patterns.

Source repository stars
42
Declared platforms
0
Static risk flags
1
Last source update
2026-08-28
Source checked
2026-08-28

Decision brief

What it does: where it fits

Xero contacts (customers and suppliers): contact fields, addresses and phones, contact groups, status values and read-only balances, plus MSP client onboarding, offboarding, and PSA cross-referencing patterns.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/WYRE-AI/msp-claude-plugins --skill "msp-claude-plugins/xero/xero/skills/contacts"
    Safe inspection promptEditorial

    Inspect the Agent Skill "Xero Contacts" from https://github.com/WYRE-AI/msp-claude-plugins/blob/5005f73ba2f52cd299f58aa6bb79f4e70ae87103/msp-claude-plugins/xero/xero/skills/contacts/SKILL.md at commit 5005f73ba2f52cd299f58aa6bb79f4e70ae87103. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Anti-triggers

      The CRM view of the same organization — Xero contacts carry AR/AP

      The CRM view of the same organization — Xero contacts carry AR/APThe billing target on the payment rail — useChart-of-accounts entries — a Xero "account" is a general ledger code,
    2. 02

      Core Concepts

      Xero contacts can be customers, suppliers, or both. The type is determined by usage rather than a fixed field:

      Xero contacts can be customers, suppliers, or both. The type is determined by usage rather than a fixed field:Contacts can be organized into groups for reporting and filtering:Name is the only required field and must be unique. AccountNumber and ContactNumber are free-text and are the natural place to store your PSA client ID. IsCustomer/IsSupplier and the Balances. totals are read-only and d…
    3. 03

      Contact Types

      Xero contacts can be customers, suppliers, or both. The type is determined by usage rather than a fixed field:

      Xero contacts can be customers, suppliers, or both. The type is determined by usage rather than a fixed field:
    4. 04

      Contact Status

      Review the “Contact Status” section in the pinned source before continuing.

      Review and apply the “Contact Status” source section.
    5. 05

      Contact Groups

      Contacts can be organized into groups for reporting and filtering:

      Contacts can be organized into groups for reporting and filtering:

    Permission review

    Static risk signals and limitations

    Network access

    medium · line 74

    The documentation includes network, browsing, or remote request actions.

    curl -s -X GET "https://api.xero.com/api.xro/2.0/Contacts?where=Name.Contains(%22Acme%22)" \

    Network access

    medium · line 159

    The documentation includes network, browsing, or remote request actions.

    `https://api.xero.com/api.xro/2.0/Contacts?where=${where}`,

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score94/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars42SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    WYRE-AI/msp-claude-plugins
    Skill path
    msp-claude-plugins/xero/xero/skills/contacts/SKILL.md
    Commit
    5005f73ba2f52cd299f58aa6bb79f4e70ae87103
    License
    Apache-2.0
    Collected
    2026-08-28
    Default branch
    main
    View the original SKILL.md

    Xero Contacts Management

    Overview

    Contacts are the foundational entity in Xero, representing customers (clients you invoice), suppliers (vendors you pay), or both. Every invoice, payment, credit note, and bank transaction is linked to a contact. For MSPs, contacts typically represent managed services clients, hardware vendors, software suppliers, and subcontractors.

    Anti-triggers

    • The CRM view of the same organization — Xero contacts carry AR/AP balances but no pipeline, owner, or activity history; use hubspot-companies or salesbuildr-companies-contacts.
    • The billing target on the payment rail — use alternative-payments-customers.
    • Chart-of-accounts entries — a Xero "account" is a general ledger code, not a customer account; use xero-accounts.
    • The same operation in QuickBooks — use qbo-customers.

    Core Concepts

    Contact Types

    Xero contacts can be customers, suppliers, or both. The type is determined by usage rather than a fixed field:

    RoleDescriptionMSP Example
    CustomerContacts you create sales invoices (ACCREC) forManaged services clients
    SupplierContacts you receive bills (ACCPAY) fromSoftware vendors, ISPs
    Customer & SupplierBoth rolesPartner MSPs, distributors

    Contact Status

    StatusDescription
    ACTIVEActive contact (default)
    ARCHIVEDArchived contact (hidden from lists)
    GDPR_REQUESTGDPR deletion requested

    Contact Groups

    Contacts can be organized into groups for reporting and filtering:

    GroupMSP Use Case
    Managed ServicesClients on monthly contracts
    Break-FixAd-hoc support clients
    VendorsHardware and software suppliers
    PartnersCo-managed or referral partners

    Key Fields

    Name is the only required field and must be unique. AccountNumber and ContactNumber are free-text and are the natural place to store your PSA client ID. IsCustomer/IsSupplier and the Balances.* totals are read-only and derived from invoice history.

    See references/fields.md for the complete field reference, including address, phone, and balance fields.

    API Patterns

    Every request needs both Authorization: Bearer ${ACCESS_TOKEN} and xero-tenant-id: ${XERO_TENANT_ID}. Xero-specific quirks:

    • Updates use POST, not PUT, against /Contacts/{ContactID}, and the body must repeat the ContactID.
    • Filters go in a URL-encoded where clause with doubled quotes around string literals, && for AND, and .Contains() / .StartsWith() for partial name matching.
    • /Contacts is paginated at 100 records per page — pass page=N.
    # Search by name (partial match)
    curl -s -X GET "https://api.xero.com/api.xro/2.0/Contacts?where=Name.Contains(%22Acme%22)" \
      -H "Authorization: Bearer ${ACCESS_TOKEN}" \
      -H "xero-tenant-id: ${XERO_TENANT_ID}" \
      -H "Accept: application/json"
    

    See references/api.md for the full endpoint catalog and create/update/archive/search examples.

    Common Workflows

    MSP Client Onboarding

    1. Create contact with company details and billing address
    2. Set account number using your PSA or internal reference
    3. Add to contact group (e.g., "Managed Services")
    4. Set default currency if multi-currency
    5. Create first invoice for onboarding or first month
    async function onboardMspClient(clientData) {
      const token = await auth.getToken();
    
      const contact = await createContact(token, {
        Name: clientData.companyName,
        ContactNumber: clientData.psaId,
        AccountNumber: clientData.accountCode,
        EmailAddress: clientData.billingEmail,
        Addresses: [
          {
            AddressType: 'STREET',
            AddressLine1: clientData.address,
            City: clientData.city,
            Region: clientData.state,
            PostalCode: clientData.zip,
            Country: clientData.country
          }
        ],
        Phones: [
          {
            PhoneType: 'DEFAULT',
            PhoneNumber: clientData.phone
          }
        ],
        DefaultCurrency: clientData.currency || 'USD'
      });
    
      return contact;
    }
    

    Client Offboarding

    1. Verify all invoices are paid - Check outstanding balances
    2. Create final invoice if needed for remaining services
    3. Archive the contact - Do not delete for audit trail
    async function offboardClient(contactId) {
      const token = await auth.getToken();
    
      // Check outstanding balance
      const contact = await getContact(token, contactId);
      const outstanding = contact.Balances?.AccountsReceivable?.Outstanding || 0;
    
      if (outstanding > 0) {
        console.log(`WARNING: ${contact.Name} has $${outstanding} outstanding.`);
        return { status: 'blocked', reason: 'outstanding_balance', amount: outstanding };
      }
    
      // Archive the contact
      await updateContact(token, contactId, { ContactStatus: 'ARCHIVED' });
      return { status: 'archived', contact: contact.Name };
    }
    

    PSA Cross-Reference

    Use the ContactNumber field to store your PSA system's client ID:

    async function findByPsaId(psaId) {
      const token = await auth.getToken();
      const where = encodeURIComponent(`ContactNumber=="${psaId}"`);
      const response = await fetch(
        `https://api.xero.com/api.xro/2.0/Contacts?where=${where}`,
        {
          headers: {
            'Authorization': `Bearer ${token}`,
            'xero-tenant-id': process.env.XERO_TENANT_ID,
            'Accept': 'application/json'
          }
        }
      );
      const data = await response.json();
      return data.Contacts?.[0] || null;
    }
    

    Bulk Contact Report

    async function generateClientReport() {
      const contacts = await fetchAllContacts();
    
      return contacts
        .filter(c => c.IsCustomer && c.ContactStatus === 'ACTIVE')
        .map(contact => ({
          name: contact.Name,
          accountNumber: contact.AccountNumber,
          email: contact.EmailAddress,
          outstanding: contact.Balances?.AccountsReceivable?.Outstanding || 0,
          overdue: contact.Balances?.AccountsReceivable?.Overdue || 0,
          city: contact.Addresses?.find(a => a.AddressType === 'STREET')?.City
        }))
        .sort((a, b) => b.overdue - a.overdue);
    }
    

    Gotchas

    • Contact names must be unique tenant-wide, including archived contacts. A "Name must be unique" 400 often points at an archived record, so search before assuming the name is free.
    • POST to /Contacts upserts. Including a ContactID in the body updates the existing contact rather than creating a new one.
    • Balances are only returned on the single-contact GET, not consistently on list responses — fetch the contact directly when you need AR/AP totals.
    • Archived contacts still appear in filtered queries unless you constrain on ContactStatus=="ACTIVE".

    See references/errors.md for the complete error-code table.

    Error Recovery Pattern

    async function safeCreateContact(data) {
      try {
        return await createContact(data);
      } catch (error) {
        if (error.message?.includes('must be unique')) {
          // Contact exists - find and return it
          const existing = await searchContactByName(data.Name);
          return existing;
        }
    
        if (error.status === 401) {
          // Token expired - refresh and retry
          await auth.refreshToken();
          return await createContact(data);
        }
    
        throw error;
      }
    }
    

    Best Practices

    1. Use unique names - Xero requires unique contact names; include location if needed
    2. Set AccountNumber - Map to your PSA client ID for cross-referencing
    3. Use ContactNumber - Store PSA or internal reference numbers
    4. Include billing email - Required for emailing invoices directly from Xero
    5. Add both addresses - STREET for physical, POBOX for mailing/billing
    6. Use contact groups - Organize clients by service tier or type
    7. Archive, don't delete - Preserve historical data and audit trail
    8. Set default currency - Important for international MSP clients
    9. Check balances before archiving - Ensure no outstanding amounts

    Related Skills

    Frequently asked questions

    What to verify before installation and use

    What does the Xero Contacts source document cover?

    Xero contacts (customers and suppliers): contact fields, addresses and phones, contact groups, status values and read-only balances, plus MSP client onboarding, offboarding, and PSA cross-referencing patterns.

    How do I install Xero Contacts?

    The source record exposes this install command: npx skills add https://github.com/WYRE-AI/msp-claude-plugins --skill "msp-claude-plugins/xero/xero/skills/contacts". Inspect the command and pinned source before running it.

    Which permission-related actions were detected?

    Static rules flagged network in the source; the page lists the matching lines and excerpts.

    Alternatives

    Compare before choosing

    Computed 10045,960

    coreyhaines31/marketingskills

    ab-testing

    When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

    Computed 10025,136

    alirezarezvani/claude-skills

    app-store-optimization

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

    Computed 100147

    equinor/neqsim

    neqsim-professional-reporting

    Engineering deliverable quality — the nine analytical-depth moves (contributor ranking, adjudicating the source document, quantitative rule-outs, robustness crossover, conservatism direction, discriminating test), results.json schema, figure→discussion→linked_results traceability, evidence matrices, assumptions/gaps registers, citation conventions, KaTeX math formatting, units consistency, executive-summary structure, AACE class declaration. USE WHEN: producing a task report, a PEPR/M1/root-caus

    Computed 100133

    JasonColapietro/suede-creator-skills

    suede-ab-testing

    Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).