Skip to content

Opt Customer In/Out

This endpoint opts a customer in or out of the program. It is used to update customer enrollment status. Once a customer has opted in to the program they should begin seeing their offers.

1
PUT /customers/<token>/enrollment

Input Parameters

In addition to the query parameter, this endpoint requires a JSON body be posted.

Path Param Type Required Description
token string Required The security token for the customer
Query Param Type Required Description
channelId int Required Value from Channel list
locationId int Required Value from Location list
JSON Prop Type Required Description
optIn boolean Required A boolean value to indicate if customer is enrolled or not

Output

This endpoint returns an HTTP response indicating success (200) or failure (500).


Example

Request

1
PUT /api/v1/customers/C1FA3C38-1B28-4B54-A2F8-E577FFEEF9F5/enrollment?channelId=1&locationId=4
1
2
3
{
   "optIn":true
}

Response

1
200 OK