X-RepSpark-SyncMode: <SYNC_MODE>

Sync mode defines the scope and update strategy of data sent to RepSpark using POST requests. The API supports three modes: Full, Delta, and FullByType.

Full

The Full sync mode replaces all existing data with the incoming data, ensuring a complete and consistent dataset. It is highly recommended for initial data transfer, system changes, and data integrity verification. Additionally, it is necessary when deletion of data is required, as delta syncs do not support deletion.

Delta

The Delta sync mode intelligently updates existing data and inserts new data without overwriting everything. It is particularly recommended for efficient regular updates and real-time synchronization. This approach optimizes data transfer by reducing network traffic and processing overhead. It is well-suited for scenarios involving frequent updates or larger datasets, such as reporting and invoices.

FullByType (advanced)

The FullByType sync mode is applicable only to the Product and Option resources. It replaces all existing data for the resource-specific Type attribute with the incoming data: ProductType for Product and ElementType for Option. This mode allows for selective synchronization, such as syncing only insignias and embroidery items for the Product resource or syncing only colors for the Option resource. It enables more precise control over the synchronization process based on specific type requirements, such as product and insignia records that come from two different systems and need to be sent separately.