> ## 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.

# 決済方法一覧

> 顧客の保存済み決済方法を一覧取得します



## OpenAPI

````yaml /api-reference/openapi.ja.json get /v1/customers/{customer_id}/payment-methods
openapi: 3.1.0
info:
  title: ZAFA PAY API
  description: 複数のPSPを統合した決済APIプラットフォーム
  version: 1.0.0
servers:
  - url: https://api.sandbox.zafapay.com
    description: Sandbox環境
  - url: https://api.zafapay.com
    description: 本番環境
security:
  - bearerAuth: []
paths:
  /v1/customers/{customer_id}/payment-methods:
    get:
      tags:
        - Customers
      summary: 決済方法一覧
      description: 顧客の保存済み決済方法を一覧取得します
      operationId: listPaymentMethods
      parameters:
        - name: customer_id
          in: path
          required: true
          description: 顧客ID
          schema:
            type: string
            example: cust_abc123
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentMethodListResponse'
        '401':
          description: 認証エラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: 顧客が見つからない
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    PaymentMethodListResponse:
      type: object
      properties:
        customer_id:
          type: string
          description: 顧客ID
          example: cust_abc123
        payment_methods:
          type: array
          description: 保存済み決済方法のリスト
          items:
            $ref: '#/components/schemas/SavedPaymentMethod'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: エラーの種類
              enum:
                - authentication_error
                - authorization_error
                - invalid_request_error
                - payment_error
                - rate_limit_error
                - api_error
              example: invalid_request_error
            code:
              type: string
              description: エラーコード
              example: validation_error
            message:
              type: string
              description: エラーメッセージ
              example: Invalid request parameters
            param:
              type: string
              description: エラーの原因となったパラメータ名
              example: amount
            details:
              type: array
              description: バリデーションエラーの詳細
              items:
                type: object
                properties:
                  path:
                    type: array
                    items:
                      type: string
                  message:
                    type: string
            request_id:
              type: string
              description: リクエストID
              example: req_abc123xyz789
    SavedPaymentMethod:
      type: object
      properties:
        id:
          type: string
          description: 決済方法ID
          example: pmi_abc123
        type:
          type: string
          description: 決済方法タイプ
          example: card
        card:
          type: object
          description: カード詳細（cardタイプの場合のみ）
          properties:
            brand:
              type: string
              description: カードブランド
              example: visa
            last4:
              type: string
              description: 下4桁
              example: '4242'
            exp_month:
              type: integer
              description: 有効期限（月）
              example: 12
            exp_year:
              type: integer
              description: 有効期限（年）
              example: 2028
            cardholder_name:
              type: string
              description: カード名義人
              example: TARO YAMADA
            country:
              type: string
              description: カード発行国（ISO 3166-1 alpha-2）
              example: JP
            funding:
              type: string
              description: カードの資金源タイプ（credit, debit, prepaid）
              example: credit
        is_default:
          type: boolean
          description: デフォルトの決済方法かどうか
          example: true
        status:
          type: string
          enum:
            - active
            - blocked
            - suspended
            - expired
          description: 決済方法のステータス
          example: active
        created_at:
          type: string
          format: date-time
          description: 作成日時
          example: '2024-01-15T10:30:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: アクセストークンを使用したBearer認証

````