-
Call list_sync_summary.
This will give you a summary of all the changes that you still need to get (if any).
eg. There are 100 item changes and 5 customer changes.
-
If there is at least 1 item change, then you will call: list_sync_items
This will return the list of items (and the item data) that have been changed since the last synchronization.
You will loop through the list and apply each change in your database.
If the change_type_code (which is returned in the list) is "ADD", you will create the item in your system.
If the change_type_code (which is returned in the list) is "EDIT", you will modify the item in your system.
After you have applied the changes for all the items, then you need to inform Powersoft365 that you have applied these changes by calling the method: list_sync_changes_applied
-
If there is at least 1 customer change, then you will call: list_sync_customers
This will return the list of customers (and the customer data) that have been changed since the last synchronization.
You will loop through the list and apply each change in your database.
If the change_type_code (which is returned in the list) is "ADD", you will create the customer in your system.
If the change_type_code (which is returned in the list) is "EDIT", you will modify the customer in your system.
After you have applied the changes for all the customers, then you need to inform Powersoft365 that you have applied these changes by calling the method: list_sync_changes_applied
-
If there is at least 1 item stock change, then you will call: list_sync_items_stock or list_sync_items_stock_summary
This will return the list of items that theirs stock have been changed since the last synchronization.
You will loop through the list and apply each change in your database.
After you have applied the changes for all the item stock, then you need to inform Powersoft365 that you have applied these changes by calling the method: list_sync_changes_applied
-
If there is at least 1 order changes, then you will call: list_sync_orders
This will return the list of orders that have been changed since the last synchronization.
You will loop through the list and apply each change in your database.
After you have applied the changes for all the orders, then you need to inform Powersoft365 that you have applied these changes by calling the method: list_sync_changes_applied
-
If there is at least 1 item unflagged as e-commerce and needs to be removed from your side, then you will call list_sync_items_remove
This will return the list of items that needs to be removed from your side because they have been unflagged as e-commerce since the last synchronization.
You will loop through the list and apply each change in your database.
After you have applied the changes for all items, then you need to inform Powersoft365 that you have applied these changes by calling the method: list_sync_changes_applied
-
If there is at least 1 item image update, then you will call list_sync_items_image
This will return the list of items images following updates to the image storage since the last synchronization.
You will loop through the list and apply each change in your database.
After you have applied the changes for all items, then you need to inform Powersoft365 that you have applied these changes by calling the method: list_sync_changes_applied