---
title: "List Payment Methods of Customer"
source_url: https://docs.rapyd.net/en/list-payment-methods-of-customer.html
lang: en
---

# List Payment Methods of Customer

List all the payment methods of a customer.

### Parameters

### Request Path Parameters

- customer
- ID of the customer. String starting with **cus_**.

### Request Query Parameters

- - category
  - Category (as opposed to **type**) of payment method to find.
- - ending_before
  - The ID of the payment method created after the last payment method you want to retrieve.
- - limit
  - The maximum number of payment methods to return. Range: 1-100.

    10
- - starting_after
  - The ID of the payment method created before the first payment method you want to retrieve.
- - type
  - The type of payment method to find.

### Request Header Parameters

- - access_key
  - Unique access key provided by Rapyd for each authorized user.

    See [Developers](https://docs.rapyd.net/en/developers.md "Developers").
- - Content-Type
  - Indicates that the data appears in JSON format. Set to **application/json**.
- - salt
  - Random string. Recommended length: 8-16 characters.
- - signature
  - Signature calculated for each request individually.

    See [Request Signatures](https://docs.rapyd.net/en/request-signatures.md "Request Signatures").
- - timestamp
  - Timestamp for the request, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time") (seconds).

### Response Parameters

- - account_last4
  - Last four digits of the bank account number or [IBAN (International Bank Account Number)](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_iban "International Bank Account Number").

- - account_name_inquiry
  - Data about the account name inquiry (ANI).

    - - account_name_inquiry_result
      - Result of the account name inquiry. One of the following values:

        - **match** - Indicates that the name provided in the request fully matched the issuing bank's records.
        - **partial match** - Indicates that the name provided in the request partially matched the issuing bank's records.
        - **no match** - Indicates that the name provided in the request did not match the issuing bank's records.
        - **not performed** - Indicates that the account name inquiry was not performed.
        - **not supported** - Indicates that the payment method does not support account name inquiries.
    - - account_name_inquiry_details
      - Indicates the degree that the name provided in the request matched the issuing bank's records.

        - - first_name
          - Indicates the result of matching the cardholder's given name. One of the following values:

            - **match** - Indicates that the first name provided in the request fully matched the first name in the issuing bank's records.
            - **partial match** - Indicates that the first name provided in the request partially matched the first name in the issuing bank's records.
            - **no match** - Indicates that first the name provided in the request did not match the first name in the issuing bank's records.
        - - middle_name
          - indicates the result of matching the cardholder's middle name. One of the following values:

            - **match** - Indicates that the middle name provided in the request fully matched the middle name in the issuing bank's records.
            - **partial match** - Indicates that the middle name provided in the request partially middle the first name in the issuing bank's records.
            - **no match** - Indicates that the middle name provided in the request did not match the middle name in the issuing bank's records.
        - - last_name
          - indicates the result of matching the cardholder's family name. One of the following values:

            - **match** - Indicates that the last name provided in the request fully matched the family name in the issuing bank's records.
            - **partial match** - Indicates that the last name provided in the request partially matched the family name in the issuing bank's records.
            - **no match** - Indicates that the last name provided in the request did not match the family name in the issuing bank's records.
- - account_number
  - Bank account number.
- - acs_check
  - Results of the [Access Control Server (ACS)](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_acs "Access Control Server") check. Possible values:

    - **pass**
    - **fail**
    - **unavailable**
    - **unchecked**

    Relevant to cards.
- - address
  - Describes a physical address. For details about the fields of the 'address' object, see [Create Address](https://docs.rapyd.net/en/create-address.md "Create Address").
- - bic_swift
  - BIC or SWIFT code.
- - bin_details
  - Bank identification details. Includes the following fields:

    - - bin_number
      - BIN number of the bank.
    - - brand
      - The brand of the card. For example, **Visa**.
    - - country
      - Country of the bank that issued the card.
    - - issuer
      - Business name of the bank that issued the card.
    - - level
      - Type of card as categorized by the issuer.
    - - type
      - The type of the card:

        - **credit**
        - **debit**
        - **prepaid**
- - category
  - Category of payment method. One of the following:

    - **bank_redirect**
    - **bank_transfer**
    - **card**
    - **card_redirect**
    - **cash**
    - **ewallet**
    - **ewallet_redirect**
- - company_name
  - Name of the customer's company.
- - complete_payment_url
  - URL where the customer is redirected when payment is successful, after returning from an external page such as a 3DS page. Does not support localhost URLs.
- - cvv_check
  - Verification of the card’s CVV. Valid values:

    - **pass**
    - **fail**
    - **unavailable**
    - **unchecked**
- - error_payment_url
  - URL where the customer is redirected when payment is not successful, after returning from an external page, such as a 3DS page. Does not support localhost URLs.
- - expiration_month
  - Month of expiration.

    Relevant to cards.
- - expiration_year
  - Year of expiration.

    Relevant to cards.
- - fingerprint_token
  - Hash of the card number, expiration date and CVV.

    Relevant to cards.
- - first_name
  - Customer's first name.
- - full_name
  - Full name of the cardholder, as submitted for account name inquiry (ANI).

    - - first_name
      - The cardholder's given name.
    - - middle_name
      - The cardholder's middle name.
    - - last_name
      - The cardholder's family name.
- - id
  - ID of the payment method. String starting with **card_** or **other_**.
- - image
  - A URL to the image of the icon for the type of payment method.
- - is_default
  - Indicates that the added payment method will become the customer's default payment method. If it is the only payment method of the customer then it will automatically become the default payment method even if this parameter is set to **false**.
- - language
  - Determines the default language of the hosted page. For a list of values, see [List Supported Languages](https://docs.rapyd.net/en/list-supported-languages.md "List Supported Languages").

    - When this parameter is null, the language of the user's browser is used.
    - If the language of the user's browser cannot be determined, the default language is English.
- - last4
  - Last four digits of the card or IBAN (International Bank Account Number).
- - metadata
  - A JSON object defined by the client. See [Metadata](https://docs.rapyd.net/en/metadata.md "Metadata").
- - name
  - Full name of the customer.
- - network_reference_id
  - Identifier for use in a recurring card payment.
- - next_action
  - Indicates the next action for completing the payment. One of the following values:

    - **3d_verification** - The next action is 3DS authentication. Relevant only to card payments.
    - **pending_capture** - The next action is pending the capture of the amount. Relevant only to card payments when the amount is not zero.
    - **pending_confirmation** - The next action is pending the confirmation for the payment. Relevant to all payment methods excluding card payment.
    - **pending_offline_capture** - The next action is pending an offline capture, where the payment settles to a **closed** (**CLO**) status via the clearing process. A payment in this state can be successfully refunded, **but cannot be canceled**. Currently, relevant only to Shva Arena card payments.
    - **not_applicable** - The payment has completed or the next action is not relevant.
- - payment_purpose
  - Purpose of the transfer, as reported by the payer's bank.
- - proof_of_authorization
  - Proof of authorization for the bank transfer.
- - redirect_url
  - URL of the hosted page that is shown to the customer.
- - routing_number
  - Routing number for the bank transfer.
- - supporting_documentation
  - Reserved.
- - type
  - Name of the payment method type. For example, **us_mastercard_card**.

    To get a list of payment methods for a country, use [List Payment Methods by Country](https://docs.rapyd.net/en/list-payment-methods-by-country.md "List Payment Methods by Country").
- - webhook_url
  - Reserved.

### Code Samples

- - .NET

    - ```csharp
      using System;

      namespace RapydApiRequestSample
      {
          class Program
          {
              static void Main(string[] args)
              {
                  try
                  {
                      string customerId = "cus_217f61d6757465a9716666ccf4d3ec73";

                      string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/customers/{customerId}/payment_methods");

                      Console.WriteLine(result);
                  }
                  catch (Exception e)
                  {
                      Console.WriteLine("Error completing request: " + e.Message);
                  }
              }
          }
      }
      ```
- - JavaScript

    - ```javascript
      const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest;

      async function main() {
        try {
          const result = await makeRequest(
            'GET',
            '/v1/customers/cus_217f61d6757465a9716666ccf4d3ec73/payment_methods'
          );

          console.log(result);
        } catch (error) {
          console.error('Error completing request', error);
        }
      }
      ```
- - PHP

    - ```php
      <?php
      $path = $_SERVER['DOCUMENT_ROOT'];
      $path .= "/<path-to-your-utility-file>/utilities.php";
      include($path);
      try {
          $object = make_request('get', "/v1/customers/cus_217f61d6757465a9716666ccf4d3ec73/payment_methods");
          var_dump($object);
      } catch (Exception $e) {
          echo "Error: $e";
      }
      ?>
      ```
- - Python

    - ```python
      from pprint import pprint

      from utilities import make_request

      # List Payment Methods of Customer
      result = make_request(method='get', path='/v1/customers/cus_217f61d6757465a9716666ccf4d3ec73/payment_methods')
      pprint(result)
      ```

- /v1/customers/:customer/payment_methods

- List Payment Methods of Customer
- ```curl
  curl -X get 'https://sandboxapi.rapyd.net/v1/customers/cus_4e25112ac20e144ad073a614dc46934b/payment_methods' \
  -H 'access_key: your-access-key-here' \
  -H 'Content-Type: application/json' \
  -H 'idempotency: your-idempotency-parameter-here' \
  -H 'salt: your-random-string-here' \
  -H 'signature: your-calculated-signature-here' \
  -H 'timestamp: your-unix-timestamp-here'
  ```
- ```json
  {
      "status": {
          "error_code": "",
          "status": "SUCCESS",
          "message": "",
          "response_code": "",
          "operation_id": "66a08dc0-6e95-42f7-8d96-cab18c152943"
      },
      "data": [
          {
              "id": "other_330f2c3586e670b72aab45f5c12195c0",
              "type": "in_jiomoney_ewallet",
              "category": "ewallet_redirect",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/in_jiomoney_ewallet.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable"
          },
          {
              "id": "other_9a1fa177940e16c09f161cfa55ec108a",
              "type": "sg_grabpay_ewallet",
              "category": "ewallet",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/sg_grabpay_ewallet.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable",
              "bic_swift": "",
              "account_last4": ""
          },
          {
              "id": "other_0bfa8ede2535263dab8da20a384d5c2f",
              "type": "pe_banco_ripley_cash",
              "category": "cash",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/pe_banco_ripley_cash.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable"
          },
          {
              "id": "other_9162cf0e8ba033a39833b89b289b2581",
              "type": "kr_localcards_redirect_card",
              "category": "card_redirect",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/kr_localcards_redirect_card.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable"
          },
          {
              "id": "other_618d6e098d0ea74fd73ad9e91930df6d",
              "type": "at_sofort_bank",
              "category": "bank_redirect",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/at_sofort_bank.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable",
              "bic_swift": "",
              "account_last4": ""
          },
          {
              "id": "card_b9548d9b53a565b2315fecdc6c87f158",
              "type": "gb_visa_card",
              "category": "card",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/gb_visa_card.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable",
              "name": "John Doe",
              "last4": "1111",
              "acs_check": "unchecked",
              "cvv_check": "unchecked",
              "bin_details": {
                  "type": "DEBIT",
                  "brand": "VISA",
                  "level": "CLASSIC",
                  "issuer": "CONOTOXIA SP. Z O.O",
                  "country": "PL",
                  "bin_number": "411111"
              },
              "expiration_year": "35",
              "expiration_month": "12",
              "fingerprint_token": "ocfp_e599f990674473ce6283b245e9ad2467",
              "network_reference_id": "507150",
              "payment_account_reference": "V0015Y3DOIFQF1G6MJ2QGQ89VYTK1"
          },
          {
              "id": "other_e4cd3a4bdcc26ab661420b306d2224ab",
              "type": "mx_spei_bank",
              "category": "bank_transfer",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/mx_spei_bank.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable",
              "bic_swift": "",
              "account_last4": ""
          },
          {
              "id": "other_307e27cfa36b5e2cb5c2c1f395e4c012",
              "type": "at_sofort_bank",
              "category": "bank_redirect",
              "metadata": {},
              "image": "https://iconslib.rapyd.net/checkout/at_sofort_bank.png",
              "webhook_url": "",
              "supporting_documentation": "",
              "next_action": "not_applicable",
              "bic_swift": "",
              "account_last4": ""
          }
      ]
  }
  ```
