Object of type 'Sale' not found with primary ID
I searched but I did not see something on this. This appears to just have started happening with our integration.
Very recently we have had some retailers contact us about issues and I noticed that we have started encounter an odd error saying the Object of type ‘Sale’ not found. We are able to get the customer information from Lightspeed but not the sale information when that happens. Here is an example of the query string we receive from Lightspeed and then the responses in our log file:
Mon Mar 1 15:17:25 EST 2021 - Query String - [Retailer Name] - type=sale&accountID=[accountID]&systemUserID=[userid]&employeeID=1&saleID=580853&customerID=10116&shopID=4®isterID=20&returnURL=https%3A%2F%2Fus.lightspeedapp.com%2Fregister.php
We then call "https://api.merchantos.com/API/Account/[accountID]/Sale/580853.json?load_relations=[\"SaleLines.Item\"]";
This is the response:
Mon Mar 1 15:17:26 EST 2021 - INDEX [Retailer Name]
[httpCode] => 404
[httpMessage] => Not Found
[message] => Object of type 'Sale' not found with primary ID '580853'.
[errorClass] => Exception
These calls are within a second of each other so I would think the sale would still exist. It is only happening to some retailers. Most are still working fine. Any help would be appreciated.