Skip to content

Invalid JSON data in request body #368

Closed Answered by emajo
Mingo07-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Mingo07-dev, the error you are receiving is due to a formal error in the json (in this case "country": "Italia", shouldn't contain the trailing comma), also when you are missing a mandatory property in the request body the error that gets returned contains exactly which fields are missing.

About the due_date and payment_terms question, actually the due_date field is mandatory even if payment_terms is specified (ideally the due_date could be automatically calculated in this case, but it doesn't work like that now), in fact the payment_terms field is there only if you want to keep track of them.

Thanks,
Emanuele.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Mingo07-dev
Comment options

@valmoz
Comment options

@Mingo07-dev
Comment options

Answer selected by Mingo07-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants