Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

No way to set CompanyNumber in the Contacts endpoint

Started by Randolph West -   in API Endpoints

I refer to the same question asked a few years ago here, which does not have a satisfactory answer: https://community.xero.com/developer/discussion/79150663/

On the website when adding a new Contact, you can scroll down to the Financial Details section and add Business Registration Number. This corresponds to the CompanyNumber field on the Contacts endpoint when performing a GET.

However, there does not seem to be a way to *set* the Company Number, and I consider this a bug. I am using Xero.NetStandard.OAuth2 v3.20.0 and C#.