HELP !!! Orders created using Lightspeed APIs are not displayed in the Lightspeed admin.

Nicolas BernierNicolas Bernier Member Posts: 2

Hello,


I am using the Lightspeed APIs (in production) in order to create orders and customers.

When I create new customers using the APIs, I see the customers created in the admin with no problem.

However, when I create an order, I cannot see the underlying created orders in the admin.


Here is a simplified flow explaining what I am doing :


1. Creating an order

API used:

POST - https://euc1.posios.com/PosServer/rest/onlineordering/customer/685567/establishmentorder

Data sent :

{
"companyId":32625,
"deliveryDate":"2019-12-05T16:10:21.957Z",
"status":"ACCEPTED",
"description":"Online order",
"orderItems":[
   {"amount":2,"totalPrice":5,"unitPrice":5,"productPlu":"D3","totalPriceWithoutVat":5,"unitPriceWithoutVat":5}
],
"type":"takeaway","note":"note",
"orderPayment":{"paymentTypeId":8187,"paymentTypeTypeId":4,"amount":1},
"customerId":685567
}


Answer : an order ID

2. Get one order by ID to verify that the order has been created


API used :

GET - https://euc1.posios.com/PosServer/rest/onlineordering/order/293388

Response

{
"id":293388,
"deliveryDate":"2019-12-05T16:10:22.000Z",
"creationDate":"2019-12-05T16:10:22.000Z",
"type":"takeaway",
"receiptId":0,
"status":
"ACCEPTED",
"orderItems":[{"id":842308,"productId":1250429,"productPlu":"D3","amount":2,"unitPrice":5.0000,"totalPrice":5.0000,"unitPriceWithoutVat":5.0000,"totalPriceWithoutVat":5.0000,"modifiers":[],"subitems":[]}],
"orderPayments":[{"id":293508,"paymentTypeId":8187,"paymentTypeTypeId":4,"amount":1.0000}],
"orderTaxInfo":[],
"note":"note",
"numberOfCustomers":0,
"tableId":0,
"customerId":685567,
"orderPayment":{"id":293508,"paymentTypeId":8187,"paymentTypeTypeId":4,"amount":1.0000}
}


As you can see my order is well created but when I go in the admin, there is no corresponding receipt in the report part and no ticket are printed in the kitchen of the restaurant.


What am I doing wrong / missing ?


Thank you in advance for your help !!

Sign In or Register to comment.