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

# List Payment Methods

> List saved payment methods for a customer



## OpenAPI

````yaml /api-reference/openapi.en.json get /v1/customers/{customer_id}/payment-methods
openapi: 3.1.0
info:
  title: ZAFA PAY API
  description: Payment API platform integrating multiple PSPs
  version: 1.0.0
servers:
  - url: https://api.sandbox.zafapay.com
    description: Sandbox environment
  - url: https://api.zafapay.com
    description: Production environment
security:
  - bearerAuth: []
paths:
  /v1/customers/{customer_id}/payment-methods:
    get:
      tags:
        - Customers
      summary: List Payment Methods
      description: List saved payment methods for a customer
      operationId: listPaymentMethods
      parameters:
        - name: customer_id
          in: path
          required: true
          description: Customer ID
          schema:
            type: string
            example: cust_abc123
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentMethodListResponse'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Customer not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    PaymentMethodListResponse:
      type: object
      properties:
        customer_id:
          type: string
          description: Customer ID
          example: cust_abc123
        payment_methods:
          type: array
          description: List of saved payment methods
          items:
            $ref: '#/components/schemas/SavedPaymentMethod'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: Error type
              enum:
                - authentication_error
                - authorization_error
                - invalid_request_error
                - payment_error
                - rate_limit_error
                - api_error
              example: invalid_request_error
            code:
              type: string
              description: Error code
              example: validation_error
            message:
              type: string
              description: Error message
              example: Invalid request parameters
            param:
              type: string
              description: Parameter that caused the error
              example: amount
            details:
              type: array
              description: Validation error details
              items:
                type: object
                properties:
                  path:
                    type: array
                    items:
                      type: string
                  message:
                    type: string
            request_id:
              type: string
              description: Request ID
              example: req_abc123xyz789
    SavedPaymentMethod:
      type: object
      properties:
        id:
          type: string
          description: Payment method ID
          example: pmi_abc123
        type:
          type: string
          description: Payment method type
          example: card
        card:
          type: object
          description: Card details (only for card type)
          properties:
            brand:
              type: string
              description: Card brand
              example: visa
            last4:
              type: string
              description: Last 4 digits
              example: '4242'
            exp_month:
              type: integer
              description: Expiration month
              example: 12
            exp_year:
              type: integer
              description: Expiration year
              example: 2028
            cardholder_name:
              type: string
              description: Cardholder name
              example: John Doe
            country:
              type: string
              description: Card issuing country (ISO 3166-1 alpha-2)
              example: US
            funding:
              type: string
              description: Card funding type (credit, debit, prepaid)
              example: credit
        is_default:
          type: boolean
          description: Whether this is the default payment method
          example: true
        status:
          type: string
          enum:
            - active
            - blocked
            - suspended
            - expired
          description: Payment method status
          example: active
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
          example: '2024-01-15T10:30:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer authentication using access token

````