Customers > Customers > storefrontFavoritesCreate
Storefront APICustomersCustomersstorefrontFavoritesCreate
storefrontFavoritesCreate
POST:storefront/favorites.json

Description

Add variant to customer's favorites list.

Topic: Customers

Arguments

data: [StorefrontCustomerFavoriteCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

inventory_notification: Boolean

Whether inventory notifications are enabled

Example: true


price_notification: Boolean

Whether price notifications are enabled

Example: false


variant_id: String!

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

[StorefrontCustomerFavorite!]

Preview (typescript)

Loading module