Customers > Customers > storefrontFavoritesCreate
POST:storefront/favorites.json
Description
Add variant to customer's favorites list.
Topic: Customers
Arguments
data: [StorefrontCustomerFavoriteCreate!]!
Main argument for mutations.
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
inventory_notification: Boolean
Whether inventory notifications are enabled
Example: true
Whether price notifications are enabled
Example: false
Unique variant identifier. See also: Unique Identifiers
Example: "va_EQzGqWoY"
Valid when: variant_id is not empty
Valid when: variant_id matches regexp pattern: ^va_
Result
Preview (typescript)
Loading module