December 11, 2024

Better data syncing with custom ids and upserts

Shopify has introduced Custom ID and Upsert API support to enhance data management across platforms. The new Custom ID functionality allows you to assign unique identifiers to resources, simplifying the synchronization process and reducing data inconsistencies. Concurrently, the Upsert API enables you to either create or update a resource based on a matching key, reducing the number of API calls required.

For custom IDs, you will be able to create and manage custom IDs for any data type that has metafield support, and you will be able to look up custom IDs only for Products and Customers. For Upserts, two unstable APIs are now available that allow upserting by a matching key: productSet for Products and customerSet for Customers. You cannot yet use a custom ID as a matching key for upserting.

Upsert support will continue to expand for more object types in the future.