Customers > Customers > favoritesCreate
Commerce APICustomersCustomersfavoritesCreate
favoritesCreate
POST:favorites.json

Description

Add variant to customer's favorites list.

Permission bit: "customer_favorites.create"

Topic: Customers

Arguments

customer_id: String!

Unique customer identifier. See also: Unique Identifiers

Example: "cu_EQzGqWoY"


data: [CustomerFavoriteCreate!]!

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

[CustomerFavorite!]

Preview (typescript)

Loading module