Skip to main content
POST
/
stores
/
{storeId}
/
customer-subscriptions
Update Customer Subscriptions
curl --request POST \
  --url https://api.getredo.com/v2.2/stores/{storeId}/customer-subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": {
    "email": "[email protected]",
    "subscriptions": {
      "marketing": {
        "subscriptionStatus": "subscribed",
        "triggerAutomations": false,
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    }
  },
  "sms": {
    "phoneNumber": "<string>",
    "subscriptions": {
      "marketing": {
        "subscriptionStatus": "subscribed",
        "triggerAutomations": false,
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "transactional": {
        "subscriptionStatus": "subscribed",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    }
  }
}
'
{
  "message": "<string>",
  "success": true,
  "updatedSubscriptions": {
    "email": {
      "marketing": true
    },
    "sms": {
      "marketing": true,
      "transactional": true
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

storeId
string
required

Store ID

Example:

"64e5a8a1af49a89df37e4ee7"

Body

application/json
email
object

Email subscription updates

sms
object

SMS subscription updates

Response

Success

Customer subscription update response

message
string
required

Human-readable success message

success
boolean
required

Whether the operation was successful

updatedSubscriptions
object
required

Details of which subscriptions were updated