Appearance
Opt the authenticated customer in to an SMS-marketing provider
POST
/rest/v1/customer/me/sms-marketing
Customer-scoped self-service upsert (one row per customer × provider). customer_id is taken from the bearer token and creation_date is server-set; both are ignored if supplied in the body. Re-posting for the same provider updates the stored phone rather than creating a duplicate row. Ports the legacy /api/customer/setViberPhone behaviour for velora (provider 1 = Viber).
Authorizations
bearerAuth
JWT access token obtained from /rest/auth/admin/login or /rest/auth/customer/login
Type
HTTP (bearer)
Request Body
application/json
JSON "providerId": 0, "phone": "string"
{
}
Responses
Subscription saved
application/json
JSON
"string"