Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomerSearch on Phone #289

Open
dv14asr opened this issue Feb 26, 2024 · 1 comment
Open

CustomerSearch on Phone #289

dv14asr opened this issue Feb 26, 2024 · 1 comment

Comments

@dv14asr
Copy link

dv14asr commented Feb 26, 2024

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants