Add SaleLine to Open Sale

abailieabailie Member Posts: 4

I'm trying to add a saleline to an open sale, but it keeps getting rejected.


I’m POSTing to the https://api.lightspeedapp.com/API/Account/{accountID}/Sale/{saleID}/SaleLine endpoint and I keep getting the response:

{

    "httpCode": "400",

    "httpMessage": "Bad Request",

    "message": "SaleLine must have both tax and taxClassID set or itemID set. Set taxClassID to 0 to specifically negate having a TaxClass",

    "errorClass": "SaleError",

    "saleID": "346"

}

I've tried so many different values in the JSON body, and always the same response, even when all he values listed are set.


Can someone show me a sample JSON body for the POST request?


Thanks for your help

Tags:

3 comments

Sign In or Register to comment.