Invalid JSON data in request body #368
-
I'm trying to create a valid JSON from zero following the guide https://developers.fattureincloud.it/docs/guides/invoice-creation , but I'm getting this error:
What I 'm missing, one or more mandatory properties, or am I just writing something wrong? Here's my JSON:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @Mingo07-dev, the error you are receiving is due to a formal error in the json (in this case About the Thanks, |
Beta Was this translation helpful? Give feedback.
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
andpayment_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.