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

# List payment intents

> List payment intents visible to the authenticated affiliate, optionally filtered by status or company.

Lists payment intents visible to the authenticated affiliate. Use the optional filters to narrow to a single company or payment state.

When you pass a `companyId` filter, the API verifies that the company belongs to the authenticated affiliate. Requests that reference a company outside the affiliate's scope return `403 Forbidden`.


## OpenAPI

````yaml GET /public/payment-intents
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, partner incorporation, indirect tax,
    compliance, and corporate operations.
  license:
    name: NONE
    url: NONE
  version: 1.0.0
servers:
  - url: https://api.prod.commenda.io/api/v1
    description: Commenda platform APIs, including Partner Incorporation and Commenda OS.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /public/payment-intents:
    get:
      summary: List payment intents for an affiliate
      description: >-
        List payment intents visible to the authenticated affiliate, optionally
        filtered by status or company.
      operationId: listAffiliatePaymentIntents
      parameters:
        - name: status
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/AffiliatePaymentIntentStatus'
        - name: companyId
          in: query
          required: false
          schema:
            type: integer
          description: Filter payment intents to a single company.
      responses:
        '200':
          description: Payment intents retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateListPaymentIntentsResponse'
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
        '401':
          description: Missing or invalid affiliate API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
      security:
        - xApiKeyAuth: []
      servers:
        - url: https://api.prod.commenda.io/api/v1
components:
  schemas:
    AffiliatePaymentIntentStatus:
      type: string
      enum:
        - PENDING
        - COLLECTED
    AffiliateListPaymentIntentsResponse:
      type: object
      required:
        - paymentIntents
      properties:
        paymentIntents:
          type: array
          items:
            $ref: '#/components/schemas/AffiliatePaymentIntent'
    AffiliatePublicError:
      type: object
      required:
        - statusCode
        - message
        - error
      properties:
        statusCode:
          type: integer
          example: 403
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: Company does not belong to this affiliate firm
        error:
          type: string
          example: Forbidden
    AffiliatePaymentIntent:
      type: object
      required:
        - paymentIntentId
        - serviceRequestURL
      properties:
        paymentIntentId:
          type: string
          example: pi_123
        serviceRequestURL:
          type: string
          nullable: true
          description: App URL for the linked service request, if one exists.
          example: https://app.commenda.io/service-request/sr_123
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    xApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````