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

Search order by YourOrderNumber #252

Open
martenw opened this issue Oct 20, 2022 · 3 comments
Open

Search order by YourOrderNumber #252

martenw opened this issue Oct 20, 2022 · 3 comments

Comments

@martenw
Copy link

martenw commented Oct 20, 2022

Orders in Fortnox has a the property YourOrderNumber to store to external ordernumber.

Would it be possible to add this to OrderSearch to get orders by external Id?

@martenw martenw changed the title Search order by Your Search order by YourOrderNumber Oct 20, 2022
@richardrandak
Copy link
Collaborator

richardrandak commented Oct 20, 2022

The implemented search parameters were based on the old documentation. Not sure where the available search parameters are listed in the new documentation.
Try to ask the Fortnox support. If such search parameter exists in the API, I will add it to the OrderSearch, but I a don't think it is supported.

@martenw
Copy link
Author

martenw commented Oct 22, 2022

From docs it seems that it is only possible to get orders by status (https://apps.fortnox.se/apidocs#operation/list_OrdersResource).

I have sent the question on to Fortnox support, will update here when I get a reply.

@martenw
Copy link
Author

martenw commented Oct 24, 2022

The response from support was just that it is possible to sort and filter using some fields but it will be trial and error to find out which ones. If an invalid field is used an exception will be thrown, for example:

{
  "ErrorInformation": {
      "error": 1,
      "message": "Ett felaktigt fält för sortering har använts.",
      "code": 2000865
  }
}

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