If i use this script in orders, i get:
{ "type":"error", "message":"Customer is missing or invalid", "traceback":"", "error_type":"RequiredFieldError" }
I am 100% sure the customer number exists. advice?
{ "customer": { "customerNo":"ANGSPE01" }, "customerPO": 'feb 2019', "items": [ { "inventory": { "whse": "00", "partNo": "LL9.1138.0467.0", "description": "Medium Elastic Bandage 12 cm x 4.5m\/4.7\" x 14.8\"" }, "description": "Medium Elastic Bandage 12 cm x 4.5m\/4.7\" x 14.8\"", "orderQty": "3.0000", "committedQty": "3.0000", "unitPrice": "5.1000" } ], }
Your JSON is not valid.
The error has been improved / corrected in Spire 3.2.
It will now say;
"message":"JSON parse error - ....."
Please use a tool like https://jsonlint.com to validate your JSON.
Spire A Developer
The following example adds a sale, with deposits.
The sales can be added using the following end point. Remember to replace "inspire2_10" with the company database.
https://localhost:10880/api/v1/companies/inspire2_10/sales/orders/