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

# Get an agent cart's current approval

> Returns whether the shopper has approved the cart and, if so, the approved terms. Contact details and payment credentials are never included. Requires an agent delegation credential with `checkout:write`.



## OpenAPI

````yaml /agents-api.json get /v1/agent/carts/{cart_id}/approval
openapi: 3.1.0
info:
  description: >-
    Multi-merchant checkout infrastructure (808labs). UAE/AED first on Stripe;
    Saudi/SAR follows separate certification. OpenAPI is canonical; customers
    can integrate without an SDK. Customer dashboard authentication uses
    verified OIDC; workspace access requires an invitation or explicitly enabled
    Sandbox self-registration; machine integrations use scoped API keys. Plans
    and usage are defined in the developer guide. Internal operator and provider
    callback contracts are excluded.
  title: Ignyt Agents API
  version: 0.1.0
servers:
  - url: https://sandbox.ignite-checkout.ai
    description: 'Planned Sandbox host: use assigned deployment URL until activated'
  - url: https://api.ignite-checkout.ai
    description: 'Planned Production host: separate approval and Live credentials required'
security: []
tags:
  - name: Grants and approval
    description: Partner-server calls that issue shopper grants and record exact approvals.
  - name: Agent identity
    description: The current delegation and its effective capabilities.
  - name: Discovery
    description: Merchants, products and variants the shopper may buy.
  - name: Checkout
    description: Read approval and start or follow delegated checkout.
  - name: Carts and quotes
    description: Shopper carts, lines, address, coupons and quotes.
  - name: Purchases
    description: The delegated shopper's purchase history.
paths:
  /v1/agent/carts/{cart_id}/approval:
    get:
      tags:
        - Checkout
      summary: Get an agent cart's current approval
      description: >-
        Returns whether the shopper has approved the cart and, if so, the
        approved terms. Contact details and payment credentials are never
        included. Requires an agent delegation credential with `checkout:write`.
      operationId: current_approval_v1_agent_carts__cart_id__approval_get
      parameters:
        - in: path
          name: cart_id
          required: true
          schema:
            title: Cart Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentApproval'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: Missing, expired or invalid credentials (`unauthorized`).
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            The credential is valid but lacks the required scope, role,
            environment or ownership for this resource (`forbidden` or a more
            specific code).
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            The resource does not exist or is not visible to this credential
            (`not_found`).
        '422':
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                      details:
                        anyOf:
                          - items:
                              properties:
                                loc:
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: integer
                                  type: array
                                msg:
                                  type: string
                                type:
                                  type: string
                              required:
                                - type
                                - loc
                                - msg
                              type: object
                            type: array
                          - type: object
                      message:
                        type: string
                      request_id:
                        type: string
                    required:
                      - code
                      - message
                      - details
                      - request_id
                    type: object
                required:
                  - error
                type: object
          description: Validation Error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            A plan allowance, rate limit or resource limit was reached. For
            `rate_limited` (a per-second ceiling) or the monthly API allowance
            (`plan_quota_exceeded`), wait for the `Retry-After` interval before
            retrying. A specific `*_rate_limited` code, such as
            `invitation_email_rate_limited`, is an hourly limit sent without
            `Retry-After`: retry later with bounded backoff. A resource limit
            described by the operation, such as active merchant requests or
            uploads, does not clear by waiting: complete or withdraw existing
            items first. Monthly allowance and cost limits never block servicing
            of accepted orders; per-second ceilings still apply to servicing
            routes.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying, sent only when the monthly API
                allowance is exhausted (`plan_quota_exceeded`) or a per-second
                rate limit (`rate_limited`) is reached; specific
                `*_rate_limited` codes omit it.
              schema:
                type: integer
      security:
        - AgentDelegation: []
components:
  schemas:
    CurrentApproval:
      description: >-
        No receipt is available until this delegation has usable or accepted
        consent.
      properties:
        approval:
          anyOf:
            - $ref: '#/components/schemas/ApprovalReceipt'
            - type: 'null'
          description: The approval terms, or `null` while awaiting approval.
        status:
          description: >-
            `awaiting_shopper_approval` until the partner records consent,
            `approved` while a usable approval exists, `accepted` once checkout
            has started.
          enum:
            - awaiting_shopper_approval
            - approved
            - accepted
          title: Status
          type: string
      required:
        - status
        - approval
      title: CurrentApproval
      type: object
    IgniteErrorEnvelope:
      description: Document the existing error handler without changing its serialization.
      properties:
        error:
          $ref: '#/components/schemas/IgniteErrorDetail'
      required:
        - error
      title: IgniteErrorEnvelope
      type: object
    ApprovalReceipt:
      description: >-
        Frozen consent terms safe for delegated clients; excludes
        contact/payment secrets.
      properties:
        cart_id:
          title: Cart Id
          type: string
        currency:
          description: ISO 4217 currency code.
          examples:
            - AED
          title: Currency
          type: string
        expires_at:
          description: Time after which checkout can no longer start from this approval.
          format: date-time
          title: Expires At
          type: string
        id:
          description: Approval identifier to pass to checkout.
          title: Id
          type: string
        partial_order_policy:
          description: Approved handling when only some merchants accept the order.
          enum:
            - allow_partial
            - all_or_cancel
          title: Partial Order Policy
          type: string
        quote_id:
          title: Quote Id
          type: string
        total_minor:
          description: >-
            Approved total in integer minor units of `currency` (10050 = AED
            100.50).
          examples:
            - 10050
          title: Total Minor
          type: integer
      required:
        - id
        - cart_id
        - quote_id
        - total_minor
        - currency
        - partial_order_policy
        - expires_at
      title: ApprovalReceipt
      type: object
    IgniteErrorDetail:
      description: Stable error fields; details remain open to each domain's JSON evidence.
      properties:
        code:
          title: Code
          type: string
        details:
          title: Details
        message:
          title: Message
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      required:
        - code
        - message
        - details
        - request_id
      title: IgniteErrorDetail
      type: object
  securitySchemes:
    AgentDelegation:
      description: Shopper-bound downstream credential; never an MCP OAuth token.
      scheme: bearer
      type: http

````

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