Skip to Content
API ReferenceStore settings

Customer email settings

Turn the automatic delivery email and the failed subscription payment email on or off.

These switches decide which automatic emails your customers get. The address those emails come from is a separate setting: see sender email.

PATCH changes only the fields you send; PUT needs both. The GET response can be sent back to PUT unchanged.

GET
/v2/store/settings/customer-emails

Get which automatic emails your customers get: the delivery email after they pay, and the email asking them to pay when a subscription payment cannot be collected. The address these emails come from is managed with /v2/store/settings/sender-email. The response body can be sent back to PUT /v2/store/settings/customer-emails unchanged. Requires the store API-key ability and the store permission in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v2/store/settings/customer-emails' \  -H 'X-STORE: launch-lab'
{  "data": {    "send_delivery_email": true,    "send_payment_failure_email": true  }}
PATCH
/v2/store/settings/customer-emails

Turn the customer emails you send on or off and keep the other one. Takes effect for emails sent after the change. Sending the same change again is safe. Requires the store API-key ability and the store permission in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
send_delivery_email?boolean

Whether customers automatically get an email with what they bought after paying. Turn it off when you deliver to customers yourself.

send_payment_failure_email?boolean

Whether customers get an email with a way to pay when your payment processor cannot collect a subscription payment. Turn it off when your processor already emails them.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://sell.app/api/v2/store/settings/customer-emails' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "send_payment_failure_email": false}'
{  "data": {    "send_delivery_email": true,    "send_payment_failure_email": false  }}
PUT
/v2/store/settings/customer-emails

Set both customer emails; both fields are required. A missing field returns 422 and nothing is saved. Sending the same body again is safe. Requires the store API-key ability and the store permission in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
send_delivery_email*boolean

Whether customers automatically get an email with what they bought after paying. Turn it off when you deliver to customers yourself.

send_payment_failure_email*boolean

Whether customers get an email with a way to pay when your payment processor cannot collect a subscription payment. Turn it off when your processor already emails them.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PUT 'https://sell.app/api/v2/store/settings/customer-emails' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "send_delivery_email": true,  "send_payment_failure_email": false}'
{  "data": {    "send_delivery_email": true,    "send_payment_failure_email": false  }}