Xero-NetStandard
Xero-NetStandard copied to clipboard
BrandingTheme on Contact
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:
- Within code, obtain the branding theme object
- Assign this object to a new contact object
- Specify other mandatory fields in the contact
- 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.