payment_methods
Delete a payment method
Changed onThis endpoint deletes a specific payment method for a customer.
delete/customers/{external_customer_id}/payment_methods/{lago_id}
Request
- Base URLhttps://api.getlago.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Payment method deleted
Example response
{
"payment_method": {
"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"
}
}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