question

01928-7325x2 avatar image
01928-7325x2 asked 01928-7325x2 commented

Order Data Not Synced

Sometimes we notice that when pulling order data, it doesn't have the item we just add while on add item to order returned valid line item id.
Also, another case is newly created order, when we pull it right away, Clover REST API returned order not found.

Is this a common known issue or I did something wrong when pulling the order info?
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.

chanel avatar image
chanel Deactivated answered 01928-7325x2 commented
(I'm assuming you are talking about making changes to an order on a physical device and then pulling from Clover on a separate environment/device. Please let me know if I'm wrong.)

This is due to your device not syncing with Clover right away. The primary reason for this is network/connection latency. Rest assured, the changes are saved locally on the device and, once able, will be pushed to Clover databases and then synced to other devices.

If you still aren't seeing the changes after a significant period of time with a strong and reliable internet connection, can you provide details in how you are creating the order (or adding a new line item) and how you are checking for those changes?
3 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.

01928-7325x2 avatar image 01928-7325x2 commented ·

Through REST API, not from any Clover device.

0 Likes 0 ·
chanel avatar image chanel 01928-7325x2 commented ·

Hmmm...can you provide details of what you're calling, along with the data sent and timestamps?

0 Likes 0 ·
01928-7325x2 avatar image 01928-7325x2 chanel commented ·

Sample sequence:
1. Create order - https://www.clover.com/api_docs/#!/orders/CreateOrder

2. Add item - https://www.clover.com/api_docs/#orders_LineItems

3. Pull order details, expanding lineItems - https://www.clover.com/api_docs/#orders_Orders


Following document on https://www.clover.com/api_docs/

0 Likes 0 ·
01928-7325x2 avatar image
01928-7325x2 answered 01928-7325x2 commented
@ChanelAny update?
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.

chanel avatar image chanel commented ·

Hi @yauri, Sorry, but I was unable to reproduce your issue with the information you've given me.

Again, I suggest checking your internet connection or perhaps you're making the GET call before the POST call can finish. Let me know if there's anything else I can do for you to get this resolved.

0 Likes 0 ·
01928-7325x2 avatar image 01928-7325x2 chanel commented ·

It's not something that easy to replicate, not always happen.
1000% sure the POST is always done before GET.

0 Likes 0 ·

Welcome to the
Clover Developer Community