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

# Post Approve

> Customer approves the consent request.

Idempotent: re-approving by the SAME customer returns 200; any
other state (denied, claimed, expired, or different customer)
returns 409.



## OpenAPI

````yaml /api-reference/openapi.json post /api/storefront/customer/me/agent-consent/{user_code}/approve
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/storefront/customer/me/agent-consent/{user_code}/approve:
    post:
      tags:
        - Storefront
        - Storefront Agent Consent
      summary: Post Approve
      description: |-
        Customer approves the consent request.

        Idempotent: re-approving by the SAME customer returns 200; any
        other state (denied, claimed, expired, or different customer)
        returns 409.
      operationId: >-
        post_approve_api_storefront_customer_me_agent_consent__user_code__approve_post
      parameters:
        - name: user_code
          in: path
          required: true
          schema:
            type: string
            title: User Code
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-Site-ID
          in: header
          required: true
          schema:
            type: string
            title: X-Site-Id
        - name: X-Stella-Token
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Stella-Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentConsentDecisionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentConsentDecisionResponse:
      properties:
        code_id:
          type: string
          format: uuid
          title: Code Id
        status:
          type: string
          title: Status
      type: object
      required:
        - code_id
        - status
      title: AgentConsentDecisionResponse
      description: Customer-side approve/deny acknowledgement.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````