What could cause an order to not be found when the associated invoice exists?

Hi all, we've been noticing when calling the Orders API that we're getting a number of errors of this type:

https://connect.squareup.com/v2/orders/<ORDER ID> (Params: ๐Ÿ˜ž 404 Not Found: {"errors": [{"code": "NOT_FOUND","detail": "Order not found for id <ORDER ID>","category": # "INVALID_REQUEST_ERROR"}]}

 

The order Id appears to be of valid format, and in fact comes from the invoices that we first extract via the /invoices endpoint.

 

As I understand, an order is the primitive for all invoices. What possible scenarios would result in an existing invoice with a missing associated order?

Would appreciate any clarification on this!

846 Views
Message 1 of 4
Report
3 REPLIES 3

Not sure if this is related (although it appears for the same order id as the above error), but we're also getting this:

failed while calling Get "https://connect.squareup.com/v2/orders/<ORDER ID>": read tcp 10.40.130.65:43612->172.66.0.47:443: read: connection reset by peer

 

Could this be related?

814 Views
Message 2 of 4
Report

Hey @csnsp, This is a weird issue. I think you would get better help on the Dev forums: https://developer.squareup.com/forums/ rather than here since its for Sellers. Have you tried a curl request(or something like Postman) to see if you get the same thing? This would just help narrow down the possibilities


Get your Square services into a spreadsheet. Get on with the work you need to do.



Get your services into Excel or CSV. Keep a copy, review prices, or make updates in bulk. Check your work, then save it back to Square. No need to create a new account; use your existing Square account.



For free.

Activate to start managing services
794 Views
Message 3 of 4
Report

Hi Manny, thanks for pointing me in the right direction.

 

I'm trying to set up an account for testing, but having trouble adding data, which I've posted about separately here: https://community.squareup.com/t5/Online-Store/dashboard-sites-redirecting-to-dashboard-unable-to-cr...

(Hopefully not also in the wrong place!)

786 Views
Message 4 of 4
Report