Skip to main content

cartInvalidateCache

Invalidate cache for a specific cart or all carts if no id is provided.

Administrative operation to clear cached cart data. Requires base role permissions.

Possible errors:

  • CART_NOT_FOUND_ERROR: Cart with the specified ID does not exist (when ID is provided)
cartInvalidateCache(
id: String
): Boolean!

Arguments

cartInvalidateCache.id ● String scalar

Cart unique identifier

Type

Boolean scalar

The Boolean scalar type represents true or false.