---
title: "Set Customer Newsletter"
method: PUT
path: "/v1/shops/{shopId}/customers/{customerId}/newsletter"
tags: ["Customers"]
---

# Set Customer Newsletter

`PUT /v1/shops/{shopId}/customers/{customerId}/newsletter`

## Request

- Base URL: `https://api.sellauth.com`
- URL: `https://api.sellauth.com/v1/shops/{shopId}/customers/{customerId}/newsletter`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sellauth/apis/sellauth-api/docs/v1/shops/:shopId/customers/:customerId/newsletter/put.ts> (a function with typed inputs; its response is checked against the schema)

Subscribes or unsubscribes a customer from the shop's newsletter. Only subscribe a customer who actually consented; a subscribed customer can be targeted by your email campaigns and automations.

## Request body

- object
  - `newsletter` boolean, required: Whether the customer is subscribed to the newsletter. A customer who unsubscribed themselves stays unsubscribed.
  - `newsletter_at` string: When the customer opted in, if you are importing an existing consent. Defaults to now. Cannot be in the future.

## Response `200`

## Changes

- **2026-09-05** `05f1b5c3c6c8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sellauth/apis/sellauth-api/changes/v1/shops/:shopId/customers/:customerId/newsletter/put.md)

---

[API](https://skmtc.dev/sellauth/apis/sellauth-api.md) - [All operations](https://skmtc.dev/sellauth/apis/sellauth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sellauth/apis/sellauth-api/revisions/ff0d59c98d7a?raw)
