Skip to content

feat(tools): add optional currencyRate param to multicurrency tools#196

Open
Zechst wants to merge 1 commit into
XeroAPI:mainfrom
Zechst:feat/add-currency-rate-support
Open

feat(tools): add optional currencyRate param to multicurrency tools#196
Zechst wants to merge 1 commit into
XeroAPI:mainfrom
Zechst:feat/add-currency-rate-support

Conversation

@Zechst

@Zechst Zechst commented Jun 11, 2026

Copy link
Copy Markdown

Summary

  • Exposes currencyRate as an optional parameter on all create/update tools that support multicurrency transactions
  • Previously missing, causing failures when working with non-base currency invoices, bills, payments, credit notes, and quotes
  • The field already exists on all xero-node SDK types but was not wired through to the tool layer

Affected tools

  • create-invoice / update-invoice
  • create-payment
  • create-credit-note / update-credit-note
  • create-quote / update-quote

Behaviour

  • If currencyRate is omitted, Xero defaults to the XE.com day rate (existing behaviour unchanged)
  • If provided, the supplied rate is used for the transaction

Test plan

  • Create a foreign currency invoice with currencyRate — confirm Xero accepts it
  • Create a payment against a foreign currency invoice with currencyRate — confirm no error
  • Create/update without currencyRate — confirm existing behaviour unchanged

Expose currencyRate on create/update operations for invoices, payments,
credit notes, and quotes. Previously missing, causing failures when
working with non-base currency transactions. The field already exists
on all xero-node SDK types but was not wired through to the tool layer.

Affected tools: create-invoice, update-invoice, create-payment,
create-credit-note, update-credit-note, create-quote, update-quote.
@Zechst Zechst closed this Jun 11, 2026
@Zechst Zechst deleted the feat/add-currency-rate-support branch June 11, 2026 06:58
@Zechst Zechst restored the feat/add-currency-rate-support branch June 11, 2026 07:51
@Zechst Zechst reopened this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant