Skip to main content

Set Default Payment Method

PUT 

/api/billing/stripe/payment-methods/:lead_id/:payment_method_id/default

Set a payment method as the default for the customer.

Updates the customer's default payment method in Stripe. This will be used for future subscription charges. Validates that:

  1. Lead exists on current tenant
  2. Payment method belongs to the specified lead

Args: lead_id: Lead ID for validation (path parameter) payment_method_id: The database UUID of the payment method to set as default (path parameter)

Returns: Success confirmation

Raises: 404: Lead or payment method not found 400: Unauthorized access or validation error

Request

Responses

Successful Response