Customers > Customers > favoritesCreate
POST:favorites.json
Description
Add variant to customer's favorites list.
Permission bit: "customer_favorites.create"
Topic: Customers
Arguments
Unique customer identifier. See also: Unique Identifiers
Example: "cu_EQzGqWoY"
data: [CustomerFavoriteCreate!]!
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