Skip to content

Define o e-mail dos avisos de venda da comunidade

PUT/api/notification-settings

Auth
Requires a token
Who can call it:
owner
admin
X-CommunityId
X-CommunityId Send the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.

Grava o e-mail que recebe os avisos de venda, estorno e chargeback. `null` ou string vazia limpa o campo, e os avisos voltam para o e-mail da empresa e, sem ele, para o do owner. Só owner e admin.

Headers

NameTypeDescription
X-CommunityIdoptionalstring (uuid)ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade.

Request body application/json

NameTypeDescription
salesNotificationEmailoptionalstring (email)

Responses

StatusDescription
200Configuração gravada
400E-mail inválido
401Sem autenticação
403Não é owner nem admin da comunidade

curl example

curl -X PUT "https://api.memberfy.net/api/notification-settings" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID" \
  -H "Content-Type: application/json" \
  -d '{}'