softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
53 stars 65 forks source link

CustomerSearch on Phone #289

Open dv14asr opened 9 months ago

dv14asr commented 9 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 9 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