# smootify:errors

> Shopify's errors of a cart operation, or the error a filter threw

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/api/events/errors  
Updated: 2026-10-13

Shopify’s errors of a cart operation, or the error a filter threw Since 1.x.

## Listen

```js
window.Smootify = window.Smootify || [];
window.Smootify.push((api) => {
  api.on("errors", (payload) => {
    // …
  });
});
```

## Payload

```ts
UserError[]
```

### UserError

```ts
/** An error Shopify answers (a sold-out variant, an invalid code) or a filter throws. */
export interface UserError {
  message: string;
  field?: string[] | null;
  code?: string | null;
}
```
