Item Variants: Sample Use Cases & Flows

This article presents possible use cases and corresponding sample flows that your app can support. It provides a useful starting point as you plan your app's implementation.

Sync pizza menu across all sites

If you have several pizzeria sites that use your app you might need to sync menu across those sites. For example, if there are new variants for a drink called "Small", "Medium", and "Large", this change also needs to be reflected on other sites.

To sync the pizza menu across all sites:

  1. Call Query Variants by the name field on the site where you updated the menu.
  2. Extract all 3 variant.name field values.
  3. Call Bulk Create Variants for your other sites and pass the new variants to each.
  4. Call Update Item and add the new variant IDs to the item.priceVariants.variants array.
Did this help?