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

# Delete a customer

> Soft-deletes a customer. Only customers belonging to the authenticated company can be deleted.



## OpenAPI

````yaml /api-reference/openapi.json delete /api/v1/customers/{id}
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/customers/{id}:
    delete:
      tags:
        - Customers
      summary: Delete a customer
      description: >-
        Soft-deletes a customer. Only customers belonging to the authenticated
        company can be deleted.
      operationId: b806c72a61256d87805e3d0c504a5f24
      parameters:
        - $ref: '#/components/parameters/XClientId'
        - name: id
          in: path
          required: true
          schema:
            type: integer
            example: 1
      responses:
        '204':
          description: Customer deleted
        '401':
          description: Unauthorized — Invalid API Key
        '404':
          description: Customer not found
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````