TrackingOptionId value missing from accountingApi.getInvoices()
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from XeroAPI/xero-node
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 3/5 Half a day Newbie friendliness 55/100
-
BankTransaction type is missing the batchPayment object.Possibly taken @miachillgood claimed this 171 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 22/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in XeroAPI/xero-node
Similar issues
-
prio:low status:done type:content
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
davidsneighbour/samui-samui.de#1925 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
opensro-dev/opensro#4901 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
super-productivity/super-productivity#12128 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
danielmiessler/LifeOS#3047 ·
Maintainers usually reply within 5 days
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at oncePossibly taken @2389400626lh-ops claimed this today. OpenArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Maintainers usually reply within 1 day