> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Shopify Automation Settings

> Update the connected Shopify store's browse-abandonment and price-drop settings

Partial update: omitted sections are left untouched, omitted fields within a
section keep their current value, and passing `null` for a section resets it
to the platform defaults.

## Request

<ParamField body="browseAbandonment" type="object | null">
  Browse-abandonment settings: `enabled` (boolean), `delayHours` (hours to
  wait after a product view, default 2, max 168), `cooldownHours` (minimum
  hours between events per subscriber, default 24, max 720). Pass `null` to
  reset to the defaults.
</ParamField>

<ParamField body="priceDrop" type="object | null">
  Price-drop settings: `enabled` (boolean), `minPercent` (minimum price
  decrease percent, default 5, max 95), `lookbackDays` (viewer audience
  window, default 30, max 90), `cooldownDays` (minimum days between events per
  subscriber and product, default 7, max 90). Pass `null` to reset to the
  defaults.
</ParamField>

```bash theme={null}
curl -X PUT "https://api.sequenzy.com/api/v1/shopify/automation-settings" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"priceDrop": {"minPercent": 10}, "browseAbandonment": {"enabled": false}}'
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Shopify automation settings updated.",
    "integrationId": "int_123",
    "shopDomain": "my-store.myshopify.com",
    "browseAbandonment": {
      "enabled": false,
      "delayHours": 2,
      "cooldownHours": 24
    },
    "priceDrop": {
      "enabled": true,
      "minPercent": 10,
      "lookbackDays": 30,
      "cooldownDays": 7
    }
  }
  ```

  ```json 400 theme={null}
  {
    "success": false,
    "error": "Provide browseAbandonment and/or priceDrop settings to update."
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "error": "Unauthorized"
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": "Shopify integration not found"
  }
  ```
</ResponseExample>
