billduapp / api_documentation

Documentation for Billdu.com REST API
0 stars 2 forks source link

New proforma document error: no discount field #3

Open Lordchapter opened 4 years ago

Lordchapter commented 4 years ago

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}