Making sure updated data gets synced to Metorik

You can read about how Metorik syncs data in the help doc here. When it comes to updated data, eg. an order or customer's information being updated, there are two ways it will try to sync the data to Metorik:

1. Webhooks: WooCommerce will try to send Metorik a message saying "this order or this customer was updated".

2. Background syncing: Metorik checks to see if it's version of the order/customer/etc is 'out of date' compared to WooCommerce's version, and if it, it will update it.

Both of the above may fail due to a number of reasons. Mainly, when you've got some custom code updating data but not triggering a webhook / changing the 'last modified' date.

To ensure that Metorik is aware of updates, you should update the order/customer/etc. 'last modified' date.

For orders, subscriptions, and similar, this is usually done by setting the post_modified and post_modified_gmt dates: