Xero API – ‘The discount rate ‘0.00’ is invalid.’ error when creating invoice with the line item which has negative amount
I’ve got BadRequest with an error “A validation exception occurred The discount rate ‘0.00’ is invalid.”, when trying to send create Invoice request via API, when invoice has line items with negative amount. At the same time, I can create Invoice with negative line items via UI. Is this possible using API at all? C