Technology Partner WebhooksUnsubscribe (Delete) a Partner Webhook
Unsubscribe (Delete) a Partner Webhook
Make a DELETE call to the partner/webhooks/subscriptions/{topic_id} endpoint to unsubscribe your application from a specific topic type (topic_id) including:
1: Billing Tier Upgrade2: Bill Tier Downgrade3: Account Cancelled4: Account Disabled
Example DELETE Webhook Request
DELETE
https://api.cc.email/v3/partner/webhooks/subscriptions/{topic_id}OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://api.cc.email/v3/partner/webhooks/subscriptions/3")
.method("DELETE", body)
.addHeader("x-api-key", "40a0b12-342b-436d-97c3-000000000000")
.addHeader("Authorization", "{access_token}")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();Although technology partner endpoints cannot be tested using our API Reference Tester, response samples and schema are available to view for this endpoint.