Xero-NetStandard icon indicating copy to clipboard operation
Xero-NetStandard copied to clipboard

BrandingTheme on Contact

Open IamBigBongo opened this issue 2 years ago • 0 comments

SDK you're using (please complete the following information): -Xero.NetStandard.OAuth2 Version [3.31.0] -Xero.NetStandard.OAuth2Client Version [1.6.0]

Describe the bug Branding Themes are not being set against contacts and are defaulted to INVOICE type.

To Reproduce Steps to reproduce the behavior:

  1. Within code, obtain the branding theme object
  2. Assign this object to a new contact object
  3. Specify other mandatory fields in the contact
  4. Call the CreateContactsAsync passing the required parameters

Expected behavior I would hope to see the Branding Theme would be assigned to the contact under the 'Sales defaults' section. But looking at the API History, the post command has specified a default branding type ("Type": "INVOICE"). So I attempted to override this by specifying Branding Type=0 and on the next attempt, the property and value ("Type": "INVOICE") was just omitted.

IamBigBongo avatar Jan 25 '23 16:01 IamBigBongo