> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finosu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Communications

> Cancels all pending communications for a customer including tasks, scheduled calls, scheduled emails, scheduled SMS, and all active schedules

## Overview

This endpoint cancels all pending communications for a customer, including:

* **Tasks**: All PENDING and SKIPPED tasks
* **Scheduled Calls**: All pending scheduled calls
* **Scheduled Emails**: All pending scheduled emails
* **Scheduled SMS**: All pending scheduled SMS messages
* **Call Schedules**: All active loan call schedules
* **Email Schedules**: All active loan email schedules
* **SMS Schedules**: All active loan SMS schedules

## Use Cases

* Stop all outreach to a customer who has requested no contact
* Cancel communications when a customer's account is closed
* Clear all pending communications before setting up a new schedule

## Response

The response includes counts for each type of cancelled item, allowing you to verify what was cancelled.


## OpenAPI

````yaml POST /customers/{id}/cancel-communications
openapi: 3.1.0
info:
  title: Finosu API
  description: Finosu API
  license:
    name: MIT
  version: 1.0.0
servers: []
security:
  - apiKeyAuth: []
paths:
  /customers/{id}/cancel-communications:
    post:
      description: >-
        Cancels all pending communications for a customer including tasks,
        scheduled calls, scheduled emails, scheduled SMS, and all active
        schedules
      parameters:
        - name: id
          in: path
          description: ID of customer whose communications should be canceled
          required: true
          schema:
            type: string
      responses:
        '200':
          description: All communications canceled for customer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelCommunicationsResponse'
        '404':
          description: Customer not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CancelCommunicationsResponse:
      type: object
      required:
        - id
        - cancelledTasks
        - cancelledCalls
        - cancelledEmails
        - cancelledSms
        - cancelledCallSchedules
        - cancelledEmailSchedules
        - cancelledSmsSchedules
        - totalCancelled
      properties:
        id:
          description: Customer ID (reference_id)
          type: string
        cancelledTasks:
          description: Number of tasks cancelled
          type: integer
          example: 5
        cancelledCalls:
          description: Number of scheduled calls cancelled
          type: integer
          example: 3
        cancelledEmails:
          description: Number of scheduled emails cancelled
          type: integer
          example: 2
        cancelledSms:
          description: Number of scheduled SMS cancelled
          type: integer
          example: 1
        cancelledCallSchedules:
          description: Number of call schedules cancelled
          type: integer
          example: 1
        cancelledEmailSchedules:
          description: Number of email schedules cancelled
          type: integer
          example: 1
        cancelledSmsSchedules:
          description: Number of SMS schedules cancelled
          type: integer
          example: 0
        totalCancelled:
          description: Total number of items cancelled
          type: integer
          example: 13
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````