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

# Retrieve Customer Details

> This endpoint retrieves detailed information about a specific customer. It includes customer metadata, total orders, and lifetime revenue. Ensure the customer belongs to the store via `x-store-id`.

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

- **Responses:**
  - `200`: Customer details returned successfully.
  - `401`: Unauthorized if `x-store-id` is not provided.
  - `404`: Customer not found.



## OpenAPI

````yaml /api-reference/blink-api.json get /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}:
    get:
      tags:
        - Customers
      summary: Retrieve Customer Details
      description: >-
        This endpoint retrieves detailed information about a specific customer.
        It includes customer metadata, total orders, and lifetime revenue.
        Ensure the customer belongs to the store via `x-store-id`.


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

        - **Responses:**
          - `200`: Customer details returned successfully.
          - `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.
      responses:
        '200':
          description: Customer details retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDetails'
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: Customer not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    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

````