v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Get Subscription Details

Retrieves the subscription details of a customer to different channels - SMS, email and WeChat. The status will be OPTIN for subscribed and OPTOUT for unsubscribed.

get/customers/{customerId}/subscriptions

Path parameters

customerIdinteger required

Unique ID of the customer to fetch subscription details.

Headers

X-CAP-API-OAUTH-TOKENstring

Response

200

campaignIdinteger
communicationIdinteger

Example response

{
  "subscriptions": [
    {
      "channel": "EMAIL",
      "priority": "TRANS",
      "type": "OPTIN"
    }
  ]
}