question

ismdcf avatar image
ismdcf asked David Marginian Deactivated commented

Order Title Missing For Orders Placed With Clover Registry App

We have configured Order Numbers to be manually entered and tried placing some orders via Clover Registry App. Once the order is placed, we immediately retrieve the specific order via Clover Rest API and once in awhile the "title" property and value for the order gets missing in the response. But if we wait sometime and again retrieve the same order, "title" property and value is there. Please note that this is happening once in awhile for the orders we place.

Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

When you use the REST API to retrieve an order you are retrieving the order from the server. When the order is placed from the Clover device, the order must sync to the server. You are obviously retrieving the order via the REST API before it has synced. Can you explain in detail what you are doing? What are you using to determine that the order has been placed? Is your app running on the Clover device?

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ismdcf avatar image ismdcf commented ·

Hi David,

We have an app running in the clover device which notifies our servers when an order is placed via the Clover Registry App. Using the orderId sent by our app, Our servers request that specific order from the Clover REST API and we do receive the order. But the problem is occasionally order title gets missing in the response. This happens for both automatic and manual order title numbering modes but somewhat often than the other when it is on manual mode.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ ismdcf commented ·

I am guessing the order of operations is:

1) Register - Request 1 - Create order

2) Your app - sends order creation notification to your server.

3) Register - Request 2 - order is updated with title, other info.

I think your implementation is problematic because there is nothing that guarantees that the sync of the update request (3) will beat your notification and server call, leaving you with inaccurate order information.


0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community