API not giving real-time data

sartipsartip Member Posts: 5

Hello,


We use lightspeed restaurant for taking orders for our customers, but we have to comply with local legislations and we need to fetch the finalized orders on real-time (max 4 minutes) and create an electronic invoice based on the finalized order (via another software that we connect with the API).


Currently on busy hours (1PM to 11PM) of busy days (fridays, saturdays and sundays) we are seeing a delay of 40 to 300 minutes, with an average of 90 minutes delay until a finalized order appears on the JSON response.


What can we do to have the data on real time fetched from the API? this delay is putting us on troubles with the customers as we cannot comply with local legislations.


Can you help us?


Luis Pedro Sarti

2 comments

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 940 moderator

    Hi @sartip,

    Thank you for contacting us.

    When (online) orders are paid these are directly visible in the API, you'll need to use the Financial endpoint to get the data https://developers.lightspeedhq.com/resto-api/endpoints/financial/#get-all-receipts-for-a-certain-date-or-date-range. Maybe the third party software you're using needs to fetch the data more often.

  • sartipsartip Member Posts: 5

    Hello Lucien,

    We are fetching the data every 5 minutes, we have evidence on peak hours that a recipt is finalized and the API doesn't show the receipt, only after an hour and a half the the receipt appears in the API.

    That doesn't happen on normal hours, the API shows the data immediately.

    Tomorrow we can send the pictures of the receipt that is not showing on the API and the API calls and responses we get.

    I'll upload the photos of the receipts here and the API calls and responses here too, so you can make this issue a priority.

    Thanks

Sign In or Register to comment.