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

# List payment links



## OpenAPI

````yaml /openapi/v1.yaml get /payment-links
openapi: 3.1.0
info:
  title: Payoes API
  version: 1.0.0
  description: >
    REST API for creating and managing Stellar payments, customers, checkout
    sessions,

    payment links, and invoices.


    ## Authentication


    Send your API key as a Bearer token. Sandbox keys use the `pk_test_` prefix
    and

    only access sandbox data. Live keys use `pk_live_` and only access
    production data.


    ## Environments


    Sandbox and production are fully isolated. Resources created in one
    environment

    are not visible from API keys scoped to the other.
servers:
  - url: https://payoes.com/api/v1
    description: Production host (replace with your deployment URL)
  - url: http://localhost:3000/api/v1
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Payments
    description: Direct payment intents with hosted Stellar checkout
  - name: Customers
    description: Payer profiles scoped to your organization and environment
  - name: Checkout sessions
    description: Hosted checkout flows with optional redirect URLs
  - name: Payment links
    description: Reusable shareable links that start checkout on each visit
  - name: Invoices
    description: Customer invoices with draft, finalize, and checkout lifecycle
paths:
  /payment-links:
    get:
      tags:
        - Payment links
      summary: List payment links
      operationId: listPaymentLinks
      responses:
        '200':
          description: Payment link list
          content:
            application/json:
              schema:
                type: object
                required:
                  - payment_links
                properties:
                  payment_links:
                    type: array
                    items:
                      $ref: '#/components/schemas/PaymentLink'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    PaymentLink:
      type: object
      required:
        - id
        - object
        - amount
        - settlement_asset
        - allowed_assets
        - active
        - url
        - environment
        - created_at
        - updated_at
      properties:
        id:
          type: string
          example: plink_abc123xyz
        object:
          type: string
          enum:
            - payment_link
        amount:
          type: string
        settlement_asset:
          $ref: '#/components/schemas/AssetRef'
        allowed_assets:
          type: array
          items:
            $ref: '#/components/schemas/AssetRef'
        description:
          type: string
          nullable: true
        active:
          type: boolean
        metadata:
          $ref: '#/components/schemas/StringMetadata'
        url:
          type: string
          format: uri
          description: Checkout entry URL (`/c/plink_...`)
        environment:
          $ref: '#/components/schemas/Environment'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    AssetRef:
      type: object
      required:
        - asset_code
      properties:
        asset_code:
          type: string
          description: Stellar asset code (1–12 alphanumeric characters, or XLM)
          example: USDC
        issuer_address:
          type: string
          nullable: true
          description: Issuer public key for credit assets. Null for XLM.
    StringMetadata:
      type: object
      additionalProperties:
        type: string
      nullable: true
    Environment:
      type: string
      enum:
        - sandbox
        - production
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key from the Payoes dashboard (`pk_test_...` or `pk_live_...`)

````