softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
52 stars 64 forks source link

CustomerSearch on Phone #289

Open dv14asr opened 7 months ago

dv14asr commented 7 months ago

When trying to use CustomerSearch on Phone im running into the error Fortnox.SDK.Exceptions.FortnoxApiException: 'Request failed: Ogiltig parameter i anropet.'

This is the current code im trying. All other parameters seems to work but as soon as im trying to search by phone it throws exception

var customerSubset = await CustomerConnector.FindAsync(new CustomerSearch() { Phone1 = "0704455667" });

Has anyone stumbled across the same issue?

adamelfstrom commented 7 months ago

It seems the search parameter Phone1 is supposed to be Phone. This is a bug in the SDK. https://apps.fortnox.se/apidocs#tag/CustomersResource/operation/list_CustomersResource