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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Excluir cliente

> Exclui ou anonimiza um cliente e aciona a exclusão nos provedores de pagamento associados

Você pode excluir um cliente por meio desta requisição de API. Além de excluir ou anonimizar o cliente na Yuno, esta requisição também aciona o processo de exclusão nos provedores de pagamento com os quais o cliente interagiu.


## OpenAPI

````yaml openapi/pt-br/customers/delete-customer.json DELETE /customers/{customer_id}
openapi: 3.1.0
info:
  title: customer-api
  version: 1.0.2
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /customers/{customer_id}:
    delete:
      operationId: delete-customer
      parameters:
        - in: header
          name: x-account-code
          schema:
            type: string
          description: >-
            O account_id encontrado no Dashboard da Yuno (UUID | MAX 36; MIN
            36).
          required: true
        - in: path
          name: customer_id
          schema:
            type: string
          required: true
      responses:
        '202':
          description: Aceito (o corpo está vazio)
        '400':
          description: Cliente não encontrado
          content:
            application/json:
              examples:
                Customer Not Found:
                  value:
                    code: CUSTOMER_NOT_FOUND
                    messages:
                      - Customer not found.
                  summary: Customer Not Found
                Bad Request:
                  summary: Bad Request
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not found
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: public-api-key
      x-default: <Your public-api-key>
    sec1:
      type: apiKey
      in: header
      name: private-secret-key
      x-default: <Your private-secret-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.