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

> Fetches a paginated list of orders associated with a specific customer. The `x-store-id` header authenticates the store making the request. Useful for tracking a customer's purchase history with order details including the product and variant information.

- **Parameters:**
  - `id` (string, path, required): The ID of the customer.
  - Query parameters for pagination: `limit` (integer), `page` (integer), `offset` (integer)

- **Responses:**
  - `200`: A paginated list of the customer's orders.
  - `401`: Unauthorized if `x-store-id` is not provided.
  - `404`: Customer not found if the customer ID does not exist.



## OpenAPI

````yaml /api-reference/blink-api.json get /customers/{id}/orders
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}/orders:
    get:
      tags:
        - Customers
      summary: Retrieve Customer Orders
      description: >-
        Fetches a paginated list of orders associated with a specific customer.
        The `x-store-id` header authenticates the store making the request.
        Useful for tracking a customer's purchase history with order details
        including the product and variant information.


        - **Parameters:**
          - `id` (string, path, required): The ID of the customer.
          - Query parameters for pagination: `limit` (integer), `page` (integer), `offset` (integer)

        - **Responses:**
          - `200`: A paginated list of the customer's orders.
          - `401`: Unauthorized if `x-store-id` is not provided.
          - `404`: Customer not found if the customer ID does not exist.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the customer.
        - name: limit
          in: query
          schema:
            type: integer
          description: Number of items per page.
        - name: page
          in: query
          schema:
            type: integer
          description: Page number to retrieve.
      responses:
        '200':
          description: Customer orders retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerOrdersList'
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: Customer not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    CustomerOrdersList:
      type: object
      properties:
        meta:
          type: object
          properties:
            total:
              type: integer
            page:
              type: integer
            limit:
              type: integer
            has_more:
              type: boolean
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              status:
                type: string
              amount:
                type: number
              net_amount:
                type: number
              tax_amount:
                type: number
              product_id:
                type: string
              variant_id:
                type: string
              customer_country:
                type: string
              created_at:
                type: string
                format: date-time
              product:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````