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

# Update customer details

> Updates a customer's details such as name, email, or status. Use this endpoint to modify customer records in the database.



## OpenAPI

````yaml patch /customers/{id}
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security: []
paths:
  /customers/{id}:
    patch:
      tags:
        - Customers
      summary: Update customer details
      description: >-
        Updates a customer's details such as name, email, or status. Use this
        endpoint to modify customer records in the database.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerUpdateRequest'
      responses:
        '200':
          description: Customer details updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDetailResponse'
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
components:
  schemas:
    CustomerUpdateRequest:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
        status:
          type: string
    CustomerDetailResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
            store_id:
              type: string
            name:
              type: string
            email:
              type: string
            status:
              type: string
            total_orders:
              type: integer
            lifetime_revenue:
              type: number
            metadata:
              type: object
            created_at:
              type: string
              format: date-time

````