List all customer payment methods
Changed onThis endpoint retrieves all payment methods of a customer.
Request
- Base URLhttps://api.getlago.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The customer external unique identifier (provided by your own application)
Query parameters
Page number. Defaults to 1. A value that is not a positive integer, such as 0, returns the first page.
Number of records per page. Defaults to 100. The maximum is 200, unless another maximum is configured for your organization. A value above the maximum returns a 422 error with value_is_out_of_range on per_page. A value that is not a positive integer, such as 0, returns the default number of records.
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
}
}Changes
- breaking
the response property
//became nullable for the status - warning
added the new
undefinedenum value to the//response property for the response status - info
the response property
//became required for the status - info
the response property
//became required for the status
- breaking