---
title: "Turns notification types on or off for the caller in this store, in their list and by browser push."
---

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

Path: Sherpo merchant API › user

`PATCH /v1/stores/{store}/me/notification_settings`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `user:write`

## Path parameters

- `store` (`updateMemberNotificationSettings.path.store`; string, required) — The store's id.

## Request body

_Required._

- `types` (`updateMemberNotificationSettings.types`; object, required) — Each type to change; a type left out keeps its setting, a field left out keeps its own.
  - `new_sale` (`updateMemberNotificationSettings.types.new_sale`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.new_sale.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.new_sale.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `new_subscription` (`updateMemberNotificationSettings.types.new_subscription`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.new_subscription.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.new_subscription.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `subscription_canceled` (`updateMemberNotificationSettings.types.subscription_canceled`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.subscription_canceled.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.subscription_canceled.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `renewal_failed` (`updateMemberNotificationSettings.types.renewal_failed`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.renewal_failed.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.renewal_failed.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `refund_needs_hand` (`updateMemberNotificationSettings.types.refund_needs_hand`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.refund_needs_hand.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.refund_needs_hand.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `dispute` (`updateMemberNotificationSettings.types.dispute`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.dispute.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.dispute.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `payouts` (`updateMemberNotificationSettings.types.payouts`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.payouts.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.payouts.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `approval_request` (`updateMemberNotificationSettings.types.approval_request`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.approval_request.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.approval_request.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `waitlist_join` (`updateMemberNotificationSettings.types.waitlist_join`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.waitlist_join.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.waitlist_join.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `new_review` (`updateMemberNotificationSettings.types.new_review`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.new_review.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.new_review.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `plan_limit` (`updateMemberNotificationSettings.types.plan_limit`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.plan_limit.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.plan_limit.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `plan_changed` (`updateMemberNotificationSettings.types.plan_changed`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.plan_changed.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.plan_changed.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `work_stopped` (`updateMemberNotificationSettings.types.work_stopped`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.work_stopped.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.work_stopped.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `call_booking` (`updateMemberNotificationSettings.types.call_booking`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.call_booking.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.call_booking.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `ai_output_ready` (`updateMemberNotificationSettings.types.ai_output_ready`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.ai_output_ready.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.ai_output_ready.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.
  - `plan_features_paused` (`updateMemberNotificationSettings.types.plan_features_paused`; object, optional)
    - `list` (`updateMemberNotificationSettings.types.plan_features_paused.list`; boolean, optional) — Whether it lands in the caller's list.
    - `push` (`updateMemberNotificationSettings.types.plan_features_paused.push`; boolean, optional) — Whether it is pushed to the caller's browsers; never without `list`.

## Example request

```json
{
  "types": {
    "new_sale": {
      "list": true,
      "push": true
    },
    "new_subscription": {
      "list": true,
      "push": true
    },
    "subscription_canceled": {
      "list": true,
      "push": true
    },
    "renewal_failed": {
      "list": true,
      "push": true
    },
    "refund_needs_hand": {
      "list": true,
      "push": true
    },
    "dispute": {
      "list": true,
      "push": true
    },
    "payouts": {
      "list": true,
      "push": true
    },
    "approval_request": {
      "list": true,
      "push": true
    },
    "waitlist_join": {
      "list": true,
      "push": true
    },
    "new_review": {
      "list": true,
      "push": true
    },
    "plan_limit": {
      "list": true,
      "push": true
    },
    "plan_changed": {
      "list": true,
      "push": true
    },
    "work_stopped": {
      "list": true,
      "push": true
    },
    "call_booking": {
      "list": true,
      "push": true
    },
    "ai_output_ready": {
      "list": true,
      "push": true
    },
    "plan_features_paused": {
      "list": true,
      "push": true
    }
  }
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/me/notification_settings' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "types": {
    "new_sale": {
      "list": true,
      "push": true
    },
    "new_subscription": {
      "list": true,
      "push": true
    },
    "subscription_canceled": {
      "list": true,
      "push": true
    },
    "renewal_failed": {
      "list": true,
      "push": true
    },
    "refund_needs_hand": {
      "list": true,
      "push": true
    },
    "dispute": {
      "list": true,
      "push": true
    },
    "payouts": {
      "list": true,
      "push": true
    },
    "approval_request": {
      "list": true,
      "push": true
    },
    "waitlist_join": {
      "list": true,
      "push": true
    },
    "new_review": {
      "list": true,
      "push": true
    },
    "plan_limit": {
      "list": true,
      "push": true
    },
    "plan_changed": {
      "list": true,
      "push": true
    },
    "work_stopped": {
      "list": true,
      "push": true
    },
    "call_booking": {
      "list": true,
      "push": true
    },
    "ai_output_ready": {
      "list": true,
      "push": true
    },
    "plan_features_paused": {
      "list": true,
      "push": true
    }
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/me/notification_settings';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    types: {
      new_sale: {list: true, push: true},
      new_subscription: {list: true, push: true},
      subscription_canceled: {list: true, push: true},
      renewal_failed: {list: true, push: true},
      refund_needs_hand: {list: true, push: true},
      dispute: {list: true, push: true},
      payouts: {list: true, push: true},
      approval_request: {list: true, push: true},
      waitlist_join: {list: true, push: true},
      new_review: {list: true, push: true},
      plan_limit: {list: true, push: true},
      plan_changed: {list: true, push: true},
      work_stopped: {list: true, push: true},
      call_booking: {list: true, push: true},
      ai_output_ready: {list: true, push: true},
      plan_features_paused: {list: true, push: true}
    }
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/me/notification_settings"

payload = { "types": {
        "new_sale": {
            "list": True,
            "push": True
        },
        "new_subscription": {
            "list": True,
            "push": True
        },
        "subscription_canceled": {
            "list": True,
            "push": True
        },
        "renewal_failed": {
            "list": True,
            "push": True
        },
        "refund_needs_hand": {
            "list": True,
            "push": True
        },
        "dispute": {
            "list": True,
            "push": True
        },
        "payouts": {
            "list": True,
            "push": True
        },
        "approval_request": {
            "list": True,
            "push": True
        },
        "waitlist_join": {
            "list": True,
            "push": True
        },
        "new_review": {
            "list": True,
            "push": True
        },
        "plan_limit": {
            "list": True,
            "push": True
        },
        "plan_changed": {
            "list": True,
            "push": True
        },
        "work_stopped": {
            "list": True,
            "push": True
        },
        "call_booking": {
            "list": True,
            "push": True
        },
        "ai_output_ready": {
            "list": True,
            "push": True
        },
        "plan_features_paused": {
            "list": True,
            "push": True
        }
    } }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Turns notification types on or off for the caller in this store, in their list and by browser push.

#### Example

```json
{
  "types": [
    {
      "type": "string",
      "list": true,
      "push": true,
      "available": true,
      "business": true
    }
  ]
}
```

- `types` (`updateMemberNotificationSettings.response.200.types`; array<object>, required)
  - `type` (`updateMemberNotificationSettings.response.200.types.type`; string, required)
  - `list` (`updateMemberNotificationSettings.response.200.types.list`; boolean, required)
  - `push` (`updateMemberNotificationSettings.response.200.types.push`; boolean, required)
  - `available` (`updateMemberNotificationSettings.response.200.types.available`; boolean, required) — Whether the caller's access lets them hear of it at all.
  - `business` (`updateMemberNotificationSettings.response.200.types.business`; boolean, required) — Told once for the whole business, its setting shared by every store.

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`updateMemberNotificationSettings.response.default.type`; string, required)
  - format `uri`
- `title` (`updateMemberNotificationSettings.response.default.title`; string, required)
- `status` (`updateMemberNotificationSettings.response.default.status`; integer, required)
- `detail` (`updateMemberNotificationSettings.response.default.detail`; string, required)
- `code` (`updateMemberNotificationSettings.response.default.code`; string, optional)
- `context` (`updateMemberNotificationSettings.response.default.context`; object, optional)
- `reached_core` (`updateMemberNotificationSettings.response.default.reached_core`; boolean, optional)
- `core_answer` (`updateMemberNotificationSettings.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/update-member-notification-settings/index.md
