TrackingOptionId value missing from accountingApi.getInvoices()

Open
#777 2 comments 0 reactions 0 assignees View on GitHub

@miachillgood is already working on this.

Since Jun 30, 2026.

  • #813 by @miachillgood — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
18/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start with the open pull request #813 linked to this issue, since it may already address the missing trackingOptionID. Reproduce by comparing the raw GET /Invoice/{invoiceID} response for an invoice with tracking options against what accountingApi.getInvoices() returns for the same line items. Done means trackingOptionID is populated in the SDK output and the mapping is covered by a test.

Written by the indexing model from the issue text.

Description

SDK you're using:

  • Version 13.3.0

Describe the bug
The trackingOptionID field is present in the TS definition, but the value not getting properly populated/mapped. The other three fields are populated correctly; just the option ID is missing.

To Reproduce
Call GET https://api.xero.com/api.xro/2.0/Invoice/<<invoiceID>> using Postman or the API Explorer. Target an invoice which contain lines with tracking options selected.
Call accountingApi.getInvoices() with the same invoiceID, and notice trackingOptionID is undefined.

Dominant language
TypeScript
Stars
264
Forks
177
Avg merge
10h 5m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from XeroAPI/xero-node

All issues in XeroAPI/xero-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.