Delink Customer

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

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 .

Prerequisites

  • Authentication: Basic or OAuth credentials
  • Default access group

Resource information

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

API endpoint example

https://eu.api.capillarytech.com/v2/partnerProgram/deLinkCustomer

Request body parameters

ParameterDatatypeDescription
deLinkCustomersarrayList of customers to be delinked
customerobjectCustomer details
- mobileintegerCustomer's mobile number
deLinkFromPartnerProgramsarrayList of partner programs to delink from
- partnerProgramNamestringName of the partner program where it will be linked from.
{
  "deLinkCustomers": [
    {
      "customer": {
        "mobile": 919800000000
      },
      "deLinkFromPartnerPrograms": [
        {
          "partnerProgramName": "1stProgram"
        },
        {
          "partnerProgramName": "p3e1"
        }
      ]
    }
  ]
}

Response Parameter

ParameterDescription
customersPartnerUpdatesList of customers with partner program updates
customerList of customer details
idUnique identifier for the customer.
mobileCustomer's unique mobile number
emailCustomer's unique email
externalIdCustomer's unique external ID
statusStatus of the customer retrieval
- messageMessage regarding customer retrieval
- codeStatus code
partnerProgramUpdatesList of partner program updates
partnerProgramNameName of the partner program
updateTypeType of update (e.g., UPGRADE)
updateStatusList of update status
- statusStatus of the update
- messageMessage regarding the update
- codeStatus code
warningsList of warnings (if any)
{
  "customersPartnerUpdates": [
    {
      "customer": {
        "id": 382741349,
        "mobile": "916215000000",
        "email": "[email protected]",
        "externalId": "X916215000000",
        "status": {
          "status": true,
          "message": "Customer successfully retrieved",
          "code": 1000
        }
      },
      "partnerProgramUpdates": [
        {
          "partnerProgramName": "1stProgram",
          "updateType": "UPGRADE",
          "updateStatus": {
            "status": true,
            "message": "Success",
            "code": 200
          }
        }
      ]
    }
  ],
  "warnings": []
}
Language
Authorization
Basic
base64
:
URL
Click Try It! to start a request and see the response here!