Subscription Management

Get Customer Subscriptions

Usage: GET /data/customer/subscriptions/id/{customer id}

Example: GET /data/customer/subscriptions/id/24476

Returns the subscription records for the specified Customer.

Example JSON Response Data

[
{"conversationId":940,"effectiveDate":1370320760000,"status":5}
]


The status field will have one of the following values:

  • 1 -- Terminated (opted out)

  • 2 -- Opt-In in progress

  • 3 -- Opt-out in progress

  • 4 -- Double Opt-in in progress

  • 5 -- Active

  • 103 -- Suspended (inactive) while opt-in in progress

  • 105 -- Suspended (inactive)

Subscribe Customer to Conversation

Usage: PUT /data/customer/subscribe/id/{customer_id}/conversation_id/{conversation_id}

Example: PUT /data/customer/subscribe/id/24476/conversation_id/940

Subscribes the specified Customer to the specified Conversation and returns the empty string.

Unsubscribe Customer to Conversation

Usage: PUT /data/customer/unsubscribe/id/{customer_id}/conversation_id/{conversation_id}

Example: PUT /data/customer/unsubscribe/id/24476/conversation_id/940

Unsubscribes the specified Customer to the specified Conversation and returns the empty string.

Example JSON Response Data