# Deactivate customer

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/customer/deactivate/{customerId}:
    put:
      summary: Deactivate customer
      deprecated: false
      description: ''
      operationId: deactivateCustomerByCustomerIdUsingPUT
      tags:
        - >-
          Account Receivable/APIs - Account Receivable /Customer
          Management/Customer Apis
        - Customer Apis
      parameters:
        - name: customerId
          in: path
          description: customerId
          required: true
          example: ''
          schema:
            type: string
            pattern: ^KC[A-Z0-9]{14}$
        - name: parentCompanyId
          in: query
          description: parentCompanyId
          required: false
          schema:
            type: string
            pattern: ^CEK[A-Z0-9]{7}$
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationResponse%C2%ABstring%C2%BB'
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: >-
        Account Receivable/APIs - Account Receivable /Customer
        Management/Customer Apis
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-18880672-run
components:
  schemas:
    ApplicationResponse«string»:
      type: object
      properties:
        errorResponse:
          $ref: '#/components/schemas/ErrorResponse'
        payload:
          type: string
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
      title: ApplicationResponse«string»
      x-apidog-orders:
        - errorResponse
        - payload
        - response_code
        - response_message
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ErrorResponse:
      type: object
      properties:
        apiSubErrors:
          type: array
          items:
            $ref: '#/components/schemas/ApiSubError'
        errorMessage:
          type: string
        errorType:
          type: string
          enum:
            - CLIENT_REQUEST_ABORT
            - CLIENT_REQUEST_ERROR
            - INVALID_ACCESS
            - RECORD_NOT_FOUND
            - SYSTEM_ERROR
            - UNAUTHORIZED
            - UNKNOWN_ERROR
            - UNPROCESSABLE_REQUEST
            - VALIDATION_ERROR
        requestId:
          type: string
        timestamp:
          type: string
          examples:
            - yyyy-MM-dd HH:mm:ss
      title: ErrorResponse
      x-apidog-orders:
        - apiSubErrors
        - errorMessage
        - errorType
        - requestId
        - timestamp
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApiSubError:
      type: object
      title: ApiSubError
      x-apidog-orders: []
      properties: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
