When creating a new document of type "proforma", it gives an error when the field "discount" is present.
{"error":500,"message":"MF\Json\ValidationException:property []: The property discount is not defined and the definition does not allow additional properties\n"}
When I exclude the "discount" field, the document is created.
When creating a new document of type "proforma", it gives an error when the field "discount" is present.
{"error":500,"message":"MF\Json\ValidationException:property []: The property discount is not defined and the definition does not allow additional properties\n"}
When I exclude the "discount" field, the document is created.
The following json is send to the API endpoint:
{"type":"proforma","client":xxxx,"items":[{"id":0,"label":"description","price":50.0,"tax":21,"count":1}],"payment":"transfer","currency":"EUR","discount":null}