Bad Request: Sale not Created. "employeeID" must be set for Create

in Development
Hi,
I am setting employeeID but my request is being rejected, can you please advise?
Thanks
config: {
url: 'https://api.lightspeedapp.com/API/Account/214742/Sale.json',
method: 'post',
data: `{"sale":{"shopID":"1","registerID":"1","employeeID":"1","completed":"true","referenceNumber":"10001000150","refernceNumberSource":"Opsuite","completeTime":"6/4/2017","TransactionQtySold":"2","TransactionTax":"2.82","TransactionTotalSales":"19.76","ItemSku":"380010","ItemDescription":"CRAFTSMAN'S KNIFE HVK","Supplier":"Casstrom Limited","Department":"KNIVES","Category":"FIXED BLADE","Price":"8.95","Cost":"2.63","QtySold":"1","Tax":"1.49","TotalSales":"10.44","BinLocation":"Z5"}}`,
Tags:
2 comments
Hi @darryl_ss,
Thank you for contacting us.
What is see is that you have a typo in "refernceNumberSource" this must be "referenceNumberSource". Can you check if this was the issue?
Ha, thanks for spotting that :)
The issue I think was caused by creating an object that started with '{sale:'