> ## 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 Information

> This endpoint updates the customer's name, email, or status. Only specified fields are updated. Ensure store ownership using the `x-store-id` header.

- **Parameters:**
  - `id` (string, path, required): The ID of the customer.

- **Request Body:**
  - Optional fields to update: `name`, `email`, `status`

- **Responses:**
  - `200`: Customer information updated successfully.
  - `400`: No updatable fields provided.
  - `401`: Unauthorized if `x-store-id` is not provided.
  - `404`: Customer not found.



## OpenAPI

````yaml /api-reference/blink-api.json 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:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /customers/{id}:
    patch:
      tags:
        - Customers
      summary: Update Customer Information
      description: >-
        This endpoint updates the customer's name, email, or status. Only
        specified fields are updated. Ensure store ownership using the
        `x-store-id` header.


        - **Parameters:**
          - `id` (string, path, required): The ID of the customer.

        - **Request Body:**
          - Optional fields to update: `name`, `email`, `status`

        - **Responses:**
          - `200`: Customer information updated successfully.
          - `400`: No updatable fields provided.
          - `401`: Unauthorized if `x-store-id` is not provided.
          - `404`: Customer not found.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the customer.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCustomerRequest'
      responses:
        '200':
          description: Customer information updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDetails'
        '400':
          description: Bad Request - No updatable fields provided.
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: Customer not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    UpdateCustomerRequest:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
        status:
          type: string
    CustomerDetails:
      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
        orders:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              status:
                type: string
              amount:
                type: number
              created_at:
                type: string
                format: date-time
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````