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

Invoice - Setting DueDate to null does not omit the field from JSON. #294

Open
majilik opened this issue Mar 26, 2024 · 2 comments
Open

Comments

@majilik
Copy link

majilik commented Mar 26, 2024

On the Invoice entity, setting the DueDate property to null does not omit the field from the serialised JSON.

This causes the invoice to not pick up the default value set in Fortnox.

Been in contact with Fortnox support, and they state that we should not send null on the DueDate property, and instead omit it.

@richardrandak
Copy link
Collaborator

Hi, can you please double check this? I am quite sure the null properties are omitted from the json request.

@richardrandak
Copy link
Collaborator

richardrandak commented Mar 26, 2024

I checked the code, the serializer is set to omit the null properties. The due date was not sent if set to null.

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