> ## Documentation Index
> Fetch the complete documentation index at: https://alyte.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1buyerpurchases action



## OpenAPI

````yaml https://app.alytegen.com/openapi.public.json post /v1/buyer/purchases/{id}/action
openapi: 3.1.0
info:
  title: Alyte API
  description: >-
    Secure agentic checkout for live-events ticketing. REST is the canonical
    surface; MCP/A2A are adapters over the same orchestrator.
  version: 1.0.0
servers:
  - url: /
    description: this instance
security:
  - bearerAuth: []
tags:
  - name: catalog
    description: Shop / event / tier discovery
  - name: ticketing
    description: 'The purchase spine: quote → reserve → confirm'
  - name: payments
    description: One-shot authorize + result reads
  - name: acp
    description: Agentic Commerce Protocol — checkout sessions (OpenAI ACP conformance)
  - name: vic
    description: >-
      Visa Intelligent Commerce — mandate-governed purchase-initiate (the VIC
      mandate is the spend authority)
  - name: signed-mandate
    description: >-
      Network signed-mandate (VIC / Mastercard Agent Pay shape) — a detached
      network signature over the mandate artefact is verified with real crypto
      before the spend authority is granted
  - name: ap2
    description: Legacy AP2 purchase — unsupported pending verified checkout authorization
  - name: buyer
    description: >-
      Buyer surface — magic-link identity, bring/create agents, card capture
      (PSP iframe), and mandates whose scope is locked server-side to the shop
      the session is for
  - name: discovery
    description: >-
      PUBLIC discovery (no auth) — the opt-in shop window + the ACP product
      feed. Only shops that flipped `discoverable` appear; everything else 404s.
  - name: protocols
    description: Protocol adapters (MCP / A2A) over the same orchestrator as REST
  - name: integration
    description: >-
      Server-to-server merchant integration (API token) — e.g. minting buyer
      sessions for users the MERCHANT'S own auth has already verified
paths:
  /v1/buyer/purchases/{id}/action:
    post:
      tags:
        - buyer
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 128
          in: path
          name: id
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  properties: {}
                - type: object
                  properties:
                    browserInfo:
                      type: object
                      properties:
                        language:
                          type: string
                          minLength: 1
                          maxLength: 64
                        colorDepth:
                          type: integer
                          minimum: 1
                          maximum: 64
                        screenHeight:
                          type: integer
                          minimum: 1
                          maximum: 65535
                        screenWidth:
                          type: integer
                          minimum: 1
                          maximum: 65535
                        timeZoneOffset:
                          type: integer
                          minimum: -1440
                          maximum: 1440
                        javaEnabled:
                          type: boolean
                        javaScriptEnabled:
                          type: boolean
                          enum:
                            - true
                      required:
                        - language
                        - colorDepth
                        - screenHeight
                        - screenWidth
                        - timeZoneOffset
                        - javaEnabled
                        - javaScriptEnabled
                  required:
                    - browserInfo
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - purchaseId
                  - status
                properties:
                  provider:
                    type: string
                    enum:
                      - stripe
                      - adyen
                  purchaseId:
                    type: string
                  chargeMinor:
                    type: integer
                  currency:
                    type: string
                  status:
                    type: string
                    enum:
                      - pending
                      - sca_required
                      - settled
                      - refused
                      - cancelled
                      - expired
                  authenticationRetry:
                    type: boolean
                  challenge:
                    type: object
                    additionalProperties: false
                    required:
                      - expiresAt
                    properties:
                      expiresAt:
                        type: string
                  result:
                    type: object
                    additionalProperties: false
                    required:
                      - intentId
                      - status
                      - pspId
                    properties:
                      intentId:
                        type: string
                      status:
                        type: string
                      pspId:
                        type: string
                      pspTransactionId:
                        type: string
                      paymentState:
                        type: string
                      holdStatus:
                        type: string
                      authentication:
                        type: object
                        additionalProperties: false
                        required:
                          - provider
                          - result
                          - observedAt
                        properties:
                          provider:
                            type: string
                          paymentIntentId:
                            type: string
                          pspReference:
                            type: string
                          chargeId:
                            type: string
                          result:
                            type: string
                          flow:
                            type: string
                          version:
                            type: string
                          eci:
                            type: string
                          transactionId:
                            type: string
                          observedAt:
                            type: string
                  action:
                    type: object
                    additionalProperties: false
                    properties:
                      provider:
                        type: string
                        enum:
                          - stripe
                          - adyen
                      publishableKey:
                        type: string
                      clientSecret:
                        type: string
                      clientKey:
                        type: string
                      environment:
                        type: string
                        enum:
                          - test
                      countryCode:
                        type: string
                      actionToken:
                        type: string
                      action:
                        type: object
                        additionalProperties: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.