Skip to main content
PUT
/
newsletter
/
update-email
Update email
curl --request PUT \
  --url https://store.salesive.com/api/v1/newsletter/update-email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-shop-id: <api-key>' \
  --data '
{
  "oldEmail": "[email protected]",
  "newEmail": "[email protected]"
}
'

Request

PUT /newsletter/update-email
x-shop-id: {{shopId}}
Content-Type: application/json

{
  "oldEmail": "[email protected]",
  "newEmail": "[email protected]"
}

Headers

HeaderTypeDescription
x-shop-idstringIdentify the shop.
Content-TypestringAlways set to application/json.

Body parameters

FieldTypeRequiredDescription
oldEmailstringYesCurrent email address.
newEmailstringYesNew email address.

Successful response

{
    "status": 200,
    "success": true,
    "message": "Email updated successfully",
    "data": {
        "_id": "678bd5c2e37452d19efcb4e6",
        "email": "[email protected]",
        "updatedAt": "2025-01-18T12:15:00.000Z"
    }
}

Error response

{
    "status": 404,
    "success": false,
    "message": "Subscription not found",
    "data": {}
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Body

application/json
oldEmail
string<email>
required
newEmail
string<email>
required

Response

200

Email updated successfully