v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Update association details

Lets you update group customer details.

put/bulk

Query parameters

source'FACEBOOK' | 'WEB_ENGAGE' | 'WECHAT' | 'INSTORE' | 'MARTJACK' | 'TMALL' | 'TAOBAO' | 'JD' | 'ECOMMERCE' | 'WEBSITE' | 'LINE' | 'ALL'
accountIdstring

Headers

X-CAP-API-OAUTH-TOKENstring

Request body

RAW_BODYstring json

Response

200

segmentsobject
referralCodestring
errorsobject[]

Example response

[
  {
    "profiles": [
      {
        "firstName": "Tom",
        "lastName": "Sawyer",
        "attribution": {
          "createDate": "2021-08-03T17:05:38+05:30",
          "modifiedDate": "2021-08-03T17:05:38+05:30"
        },
        "identifiers": [
          {
            "type": "unionId",
            "value": "unionId_915905000000"
          }
        ],
        "commChannels": [
          {
            "type": "email",
            "value": "tom.sawyer@capillarytech.com",
            "primary": true,
            "verified": true
          }
        ],
        "source": "WECHAT",
        "accountId": "WECHAT-CM",
        "autoUpdateTime": "2021-08-03T17:05:38+05:30",
        "identifiersAll": [
          {
            "type": "unionId",
            "value": "unionId_915905000000"
          }
        ]
      }
    ],
    "loyaltyInfo": {
      "loyaltyType": "loyalty"
    },
    "associationDetails": {
      "hierarchyCode": "code-association2",
      "roleCode": "FA",
      "parentCustomer": {
        "profiles": [
          {
            "firstName": "Jim",
            "lastName": "Solace",
            "attribution": {
              "createDate": "2021-08-03T17:05:38+05:30",
              "modifiedDate": "2021-08-03T17:05:38+05:30"
            },
            "identifiers": [
              {
                "type": "cuid",
                "value": "cuid_919905000000"
              }
            ],
            "commChannels": [
              {
                "type": "mobile",
                "value": "919905000000",
                "primary": true,
                "verified": true
              }
            ],
            "source": "WECHAT",
            "accountId": "WECHAT-CM",
            "autoUpdateTime": "2021-08-03T17:05:38+05:30",
            "identifiersAll": [
              {
                "type": "cuid",
                "value": "cuid_919905000000"
              }
            ]
          }
        ],
        "extendedFields": {
          "city": "city_6878387",
          "gender": "Male"
        }
      },
      "fleetCompany": {
        "externalId": "ex917471000000"
      },
      "new": true
    },
    "extendedFields": {
      "city": "city_6878387",
      "gender": "Male"
    }
  }
]