Skip to content

Error with GetOrganisationsAsync using LLC (S corporation) as Business structure #642

@beeyee0401

Description

@beeyee0401

SDK you're using (please complete the following information):

  • Version 9.2.0

Describe the bug
Getting an API exception in IAccountingApiAsync.GetOrganisationsAsync
Error converting value "SCORPORATIONLLC" to type 'Xero.NetStandard.OAuth2.Model.Accounting.Organisation+OrganisationTypeEnum'. Path 'Organisations[0].OrganisationType', line 13, position 43.","Data":{},"StackTrace":" at Xero.NetStandard.OAuth2.Client.CustomJsonCodec.d__7.MoveNext()\r\n---

To Reproduce
Steps to reproduce the behavior:

  1. Set Business structure in Organization details to "LLC (S corporation)"
  2. Save
  3. Call GetOrganisationsAsync from the .NET SDK
  4. See error

Expected behavior
Org is retrieved successfully

Additional context
I know we're behind on our version, but it seems like this could still happen in current version unless there's different handling in the JSON deserialization

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions