Unenroll a Customer to from Milestone or Streak

This API unenrolls a user from a milestone or streak in a connected organisation.

Milestones and Streaks

A Milestone in Loyalty+ is a feature that lets brands set specific targets for their customers. When customers reach these defined targets, they are rewarded.

For more information refer to the documentation on Milestones.

A Streak in Loyalty+ refers to a series of consecutive customer actions or engagements. When customers complete a series of consecutive actions, they are rewarded.

For more information refer to the documentation on Streaks.

👍

Note

For detailed information about our APIs and for hands-on testing, refer to the documentation in API overview and step-by-step guide on making your first API call.

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Default access group

Resource information

URI/targetGroups/{targetGroupId}/targets/{targetId}/unEnroll
HTTP MethodPOST
PaginationNo
Batch supportNo
Rate limit informationNone

API endpoint example

https://eucrm.cc.capillarytech.com/v3.1/targetGroups/{targetGroupId}/targets/{targetId}/unEnroll

Headers

HeaderDescription
DATA-SCOPE-ORGList of Organization IDs.
DATA-SCOPEScopes define what data can be accessed using the API. You can use scopes to control access to data from a parent or child organization. Defining a scope ensures that the response contains only data from the respective organization.

Supported headers: SELF and OTHER.

Refer to connected orgs data scopes for more information.

Request path parameters

ParameterData typeDescription
targetGroupId*IntegerThe ID of the target group associated with the item. A target group is the primary entity under which individual targets can be created.
targetId*IntegerThe ID of the target. A target is a set of conditions or rules that need to be met to achieve a specific goal.

Request body parameters

ParameterData TypeDescription
customerId*IntegerThe unique identifier of the customer.
[
    {
        "customerId":423789336
    }
]

Response parameters

ParameterData TypeDescription
dataIntegerThe unique identifier of the customer.
errorsArrayErrors during the API call, if any.
warningsArrayWarnings during the API call, if any.
{
    "data": 345651201,
    "errors": null,
    "warnings": null
}
{
    "data": null,
    "errors": [
      {
        "code": 310141,
        "message": 'Datascope 'ALL' is not supported for this 'API'
      }
      ],
    "warnings": null
}

API-specific errors

Error codeDescription
310119User already enrolled for the target.
310011Invalid userId. Check if the customerId is valid.
310019Target period not found. Check the target period ID to troubleshoot this error.
310017Target group not found or deactivated. Check the target group ID to troubleshoot this error.
310018Target rule not found. Check the target rule ID to troubleshoot this error.
300004Invalid input.
310141Datascope 'ALL' is not supported for this 'API
310144Connected Orgs not set properly in Headers.

- Check whether the target organisation is a connected organisation.
- Check the API endpoint.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!