Delink Customer

Lets you remove a customer from one or more partner programs.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

This API is used to Delink customer from Partner Program.

👍

Note

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

Example request

curl --location 'https://eu.api.capillarytech.com/v2/partnerProgram/deLinkCustomer' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <YOUR_AUTH_TOKEN>' \
--data '{
    "deLinkCustomers": [
        {
            "customer": {
                "mobile": "919800000000"
            },
            "deLinkFromPartnerPrograms": [
                {
                    "partnerProgramName": "1stProgram",
                    "configAttributes": [
                        {
                            "name": "delinkReason",
                            "value": "CustomerRequested"
                        }
                    ]
                },
                {
                    "partnerProgramName": "p3e1"
                }
            ]
        }
    ]
}'

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Partner program access group

Resource information

URI/v2/partnerProgram/deLinkCustomer
HTTP MethodPOST
PaginationNo
Batch supportNo
Rate limit informationNone

Body parameters

FieldTypeRequiredDescription
deLinkCustomersarrayYesList of customers to delink from partner programs.
.customerobjectYesCustomer identification details. At least one identifier is required.
..idintegerConditionalCustomer's internal Capillary ID. Any one identifier is required.
..mobilestringConditionalCustomer's mobile number. Any one identifier is required.
..emailstringConditionalCustomer's email address. Any one identifier is required.
..externalIdstringConditionalCustomer's external identifier. Any one identifier is required.
.deLinkFromPartnerProgramsarrayYesList of partner programs to delink the customer from.
..partnerProgramNamestringYesName of the partner program to delink from.
..configAttributesarrayOptionalLoyalty configuration attributes to capture for this delink. Each attribute is stored against the customer's enrollment and returned by the Get customer activity history API, and echoed back in this API's own response. Each name must match a loyalty configuration attribute configured for the partner program, can appear only once in the request, and must have a non-blank value.
...namestringConditionalName of the loyalty configuration attribute. Required for each attribute in the array.
...valuestringConditionalValue of the loyalty configuration attribute. Required for each attribute in the array. There is no character limit for this parameter.

API Quick Reference

POST /v2/partnerProgram/deLinkCustomer
   └─ DeLinkPartnerProgramBatch
       └─ deLinkCustomers[] (array, required)
           ├─ customer (object, required)
           │   ├─ id (integer)
           │   ├─ mobile (string)
           │   ├─ email (string)
           │   └─ externalId (string)
           └─ deLinkFromPartnerPrograms[] (array, required)
               ├─ partnerProgramName (string, required)
               └─ configAttributes[] (array)
                   ├─ name (string)
                   └─ value (string)

Example response

{
    "deLinkCustomers": [
        {
            "customer": {
                "id": 382741349,
                "mobile": "919800000000",
                "email": "[email protected]",
                "externalId": "X919800000000",
                "status": {
                    "status": true,
                    "code": 1000,
                    "message": "Customer successfully retrieved"
                }
            },
            "deLinkFromPartnerPrograms": [
                {
                    "partnerProgramName": "1stProgram",
                    "configAttributes": [
                        {
                            "name": "delinkReason",
                            "value": "CustomerRequested"
                        }
                    ],
                    "partnerDeLinkStatus": {
                        "status": true,
                        "code": 200,
                        "message": "Success"
                    }
                },
                {
                    "partnerProgramName": "p3e1",
                    "partnerDeLinkStatus": {
                        "status": true,
                        "code": 200,
                        "message": "Success"
                    }
                }
            ]
        }
    ],
    "warnings": []
}

Response parameters

FieldTypeDescription
deLinkCustomersarrayList of customer delinking results.
.customerobjectCustomer identification details and retrieval status.
..idintegerCustomer's internal Capillary ID.
..mobilestringCustomer's mobile number.
..emailstringCustomer's email address.
..externalIdstringCustomer's external identifier.
..statusobjectStatus of customer retrieval.
...statusbooleantrue if customer was found, false otherwise.
...codeintegerStatus code for customer retrieval. 1000 indicates success.
...messagestringMessage describing the customer retrieval result.
.deLinkFromPartnerProgramsarrayList of partner programs and their delinking results.
..partnerProgramNamestringName of the partner program.
..configAttributesarrayEchoes back the loyalty configuration attributes submitted in the request for this partner program, if any.
...namestringName of the loyalty configuration attribute.
...valuestringValue of the loyalty configuration attribute.
..partnerDeLinkStatusobjectStatus of delinking the customer from the partner program.
...statusbooleantrue if delinking succeeded, false otherwise.
...codeintegerStatus code for the delinking operation. 200 indicates success.
...messagestringMessage describing the delinking result.
warningsarrayList of warnings, if any.
Body Params
deLinkCustomers
object

Details of the customer and partner program to delink.

Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json