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

# List payment methods for a customer

> Retrieves all payment methods associated with a specific customer. Returns an array of payment methods with masked card information.



## OpenAPI

````yaml /api-reference/orchestrator-openapi.json get /v2/customers/{customerId}/payment-methods
openapi: 3.0.0
info:
  title: Payment Orchestrator API
  description: API documentation for the Payment Orchestrator service
  version: 1.0.0
servers:
  - url: https://api.sandbox.cheqpay.mx/pos
    description: Sandbox environment
  - url: https://prod.cheqpay.mx/pos
    description: Production environment
security:
  - ApiKeyAuth: []
    MerchantIdAuth: []
tags:
  - name: Customer
    description: Customer management endpoints (v1)
  - name: Customer V2
    description: >-
      Customer management endpoints (v2) - merchant-scoped, no external ID
      required
  - name: Payment Order
    description: Payment order management endpoints
  - name: Checkout
    description: Payment checkout endpoints
  - name: Payment Method
    description: Payment method management endpoints
  - name: Subscription Plan
    description: Subscription plan management endpoints for recurring payments
  - name: Subscription
    description: Subscription management endpoints for recurring billing
  - name: Subscription Invoice
    description: Subscription invoice management endpoints
paths:
  /v2/customers/{customerId}/payment-methods:
    get:
      tags:
        - Payment Method
      summary: List payment methods for a customer
      description: >-
        Retrieves all payment methods associated with a specific customer.
        Returns an array of payment methods with masked card information.
      parameters:
        - name: customerId
          in: path
          required: true
          description: Customer ID
          schema:
            type: string
            example: 123e4567-e89b-12d3-a456-426614174000
      responses:
        '200':
          description: Payment methods retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PaymentMethodResponse'
        '401':
          description: Unauthorized - invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
components:
  schemas:
    PaymentMethodResponse:
      type: object
      required:
        - id
        - type
        - isDefault
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          description: Payment method ID
          example: 123e4567-e89b-12d3-a456-426614174000
        type:
          type: string
          description: Payment method type
          example: CARD
        isDefault:
          type: boolean
          description: Whether this is the default payment method
          example: false
        nickname:
          type: string
          description: Payment method nickname
          example: My Visa Card
        billingFirstName:
          type: string
          description: Billing first name
          example: John
        billingLastName:
          type: string
          description: Billing last name
          example: Doe
        billingPhoneNumber:
          type: string
          description: Billing phone number
          example: '+525512345678'
        billingEmail:
          type: string
          description: Billing email address
          example: john.doe@example.com
        billingAddressLine1:
          type: string
          description: Billing address line 1
          example: 123 Main St
        billingAddressLine2:
          type: string
          description: Billing address line 2
          example: Apt 4B
        billingCity:
          type: string
          description: Billing city
          example: Mexico City
        billingState:
          type: string
          description: Billing state
          example: CDMX
        billingPostalCode:
          type: string
          description: Billing postal code
          example: '12345'
        billingCountry:
          type: string
          description: Billing country code
          example: MX
        cardDetails:
          type: object
          nullable: true
          properties:
            last4:
              type: string
              description: Last 4 digits of card
              example: '1111'
            bin:
              type: string
              description: Bank Identification Number (first 6 digits)
              example: '411111'
            expMonth:
              type: integer
              description: Card expiry month
              example: 12
            expYear:
              type: integer
              description: Card expiry year (two digits)
              example: 25
            type:
              type: string
              description: Card type (credit/debit)
              example: credit
            brand:
              type: string
              description: Card brand
              example: VISA
            country:
              type: string
              description: Card issuing country
              example: US
            issuerBank:
              type: string
              description: Card issuer bank
              example: Chase Bank
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
          example: '2025-01-15T10:00:00.000Z'
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp
          example: '2025-01-15T10:00:00.000Z'
    UnauthorizedError:
      type: object
      description: Unauthorized error response
      properties:
        message:
          type: string
          description: Error message
          example: Invalid api key
      example:
        message: Invalid api key
    InternalError:
      type: object
      description: Error response
      properties:
        message:
          type: string
          description: Error message
          example: Error message
      example:
        message: Error message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication (required)
    MerchantIdAuth:
      type: apiKey
      in: header
      name: x-merchant-id
      description: Merchant ID for identifying the merchant (required)

````