Retrieve the Payment Methods of a Customer

Changed on

Use secret API key to retrieve the Payment Method of Customer

get/v1/customers/{id}/payment_methods

Request

  • Base URL
    https://api.paymongo.com
  • URL
    https://api.paymongo.com/v1/customers/{id}/payment_methods
  • Auth
    HTTP basic

Path parameters

idstring required

ID of a Customer

Response

200

has_moreboolean

Example response

{
  "data": [
    {
      "id": "cus_pm_2vzMHJhPdBAqnnZqGrCiHfE9",
      "type": "customer_payment_method",
      "attributes": {
        "payment_method_id": "pm_HuhitULt2giYQQsEXmqAg1ik",
        "payment_method_type": "card",
        "session_type": "on_session",
        "created_at": 1657187430,
        "updated_at": 1657187430
      }
    }
  ]
}

Changes

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      api operation id list_customers_id_payment_methods removed and replaced with retrieve-customer-payment-method

    • info

      the endpoint scheme security BasicAuth was removed from the API

    • info

      api tag Customer Payment Methods (v1) removed

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      the response's property default value 0 was added for the status

    • info

      the response's property default value true was added for the status

    • info

      the response's property default value true was added for the status

    • info

      the response's property default value 0 was added for the status