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

# List Customer Audit

> Per-customer audit feed — paginated `audit_events` rows where the
customer is the actor OR the target. Login-failed events that
didn't resolve a customer (e.g. wrong-email attempts) won't appear
here; those are visible only via a future merchant-wide audit
view.



## OpenAPI

````yaml /api-reference/openapi.json get /api/dashboard/customers/{customer_id}/audit
openapi: 3.1.0
info:
  title: Agentic Commerce API
  description: |2-

        Agentic Commerce API - E-commerce Backend

        ## APIs

        ### Dashboard API (`/api/dashboard`)
        Authenticated endpoints for merchant management:
        - Products, Variants, Options
        - Inventory management
        - Orders and fulfillment
        - Customers
        - Collections

        ### Storefront API (`/api/storefront`)
        Public endpoints for client websites:
        - Product catalog
        - Collections
        - Cart management
        - Checkout

        ### Sync API (`/api/sync`)
        Integration endpoints for zunkiree-search:
        - Product sync
        - Availability checks
        - Order creation from AI widget
        
  version: 1.0.0
servers: []
security: []
paths:
  /api/dashboard/customers/{customer_id}/audit:
    get:
      tags:
        - Dashboard
        - Customers
      summary: List Customer Audit
      description: |-
        Per-customer audit feed — paginated `audit_events` rows where the
        customer is the actor OR the target. Login-failed events that
        didn't resolve a customer (e.g. wrong-email attempts) won't appear
        here; those are visible only via a future merchant-wide audit
        view.
      operationId: list_customer_audit_api_dashboard_customers__customer_id__audit_get
      parameters:
        - name: customer_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Customer Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
        - name: X-Stella-Merchant-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Stella-Merchant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerAuditListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CustomerAuditListResponse:
      properties:
        events:
          items:
            $ref: '#/components/schemas/CustomerAuditEventResponse'
          type: array
          title: Events
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - events
        - total
        - limit
        - offset
      title: CustomerAuditListResponse
      description: Paginated audit feed.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CustomerAuditEventResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        actor_type:
          type: string
          title: Actor Type
        actor_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Actor Id
        action:
          type: string
          title: Action
        target_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Target Type
        target_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Target Id
        payload:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Payload
        ip:
          anyOf:
            - type: string
            - type: 'null'
          title: Ip
        user_agent:
          anyOf:
            - type: string
            - type: 'null'
          title: User Agent
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - actor_type
        - actor_id
        - action
        - target_type
        - target_id
        - payload
        - ip
        - user_agent
        - created_at
      title: CustomerAuditEventResponse
      description: |-
        A row from `audit_events` filtered to a single customer (either
        as actor OR as target). Used by the per-customer audit feed in
        the dashboard.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````