v1

latestOpenAPI 3.1.0AGPLv32026-07-26168262527.5 KB
payment_methods

List all customer payment methods

This endpoint retrieves all payment methods of a Customer.

get/customers/{external_customer_id}/payment_methods

Path parameters

external_customer_idstring required
Example:5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba

The customer external unique identifier (provided by your own application)

Query parameters

pageinteger
Example:1

Page number.

per_pageinteger
Example:20

Number of records per page.

Response

List of customer's payment methods

Example response

{
  "payment_methods": [
    {
      "lago_id": "4cf085a7-c196-4f07-a543-97c50ec6e8b2",
      "is_default": true,
      "payment_provider_code": "stripe_prod",
      "payment_provider_name": "Stripe",
      "payment_provider_type": "stripe",
      "provider_method_id": "pm_1N8ZQX2eZvKYlo2CkL9Y8XYZ",
      "created_at": "2025-01-21T00:10:29Z"
    }
  ],
  "meta": {
    "current_page": 2,
    "next_page": 3,
    "prev_page": 1,
    "total_pages": 4,
    "total_count": 70
  }
}