Customers > Customers > favoritesModify
Commerce APICustomersCustomersfavoritesModify
favoritesModify
POST:favorites.json

Description

Modify customer's favorite item.

Permission bit: "customer_favorites.modify"

Topic: Customers

Arguments

customer_id: String!

Unique customer identifier. See also: Unique Identifiers

Example: "cu_EQzGqWoY"


data: [CustomerFavoriteModify!]!

Main argument for mutations.


ids: [String!]!

List of favorite ids. See also: Unique Identifiers

Example: ["fv_EQzGqWoY"]


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


Result

[CustomerFavorite!]

Preview (typescript)

Loading module