Mutations
Cart
Field | Argument | Type | Description |
---|---|---|---|
validateCart | StoreCart | Checks for changes between the cart presented in the UI and the cart stored in the ecommerce platform. If changes are detected, it returns the cart stored on the platform. Otherwise, it returns null . | |
cart | IStoreCart! | Shopping cart input. | |
session | IStoreSession | Web session identifier. |
There is a Known Issue with thevalidateCart
mutation. If an external request modifies the store cart with additional information like marketing data, it disrupts the store cart synchronization process, interfering with the connection between the cart displayed on the storefront and the actual cart data stored on the server. This may lead to issues for store users, such as items not being added, incorrect totals, or checkout problems. After any external cart update, refresh the cart data using the workaround instructions in the Cart does not update in FastStore if an external request is made to update orderForm guide.
Session
Field | Argument | Type | Description |
---|---|---|---|
validateSession | StoreSession | Updates a web session with the specified values. | |
session | IStoreSession! | Web session identifier. | |
search | String! | ||
subscribeToNewsletter | PersonNewsletter | Subscribes a new person to the newsletter list. | |
data | IPersonNewsletter! | Person data input to the newsletter. |