billing
Remove Payment Method
Changed onCancel the user's active subscription and remove the stored payment method.
This endpoint is retained for frontend compatibility, but its behavior is subscription-centric:
- Cancels the user's active Stripe subscription immediately
- Downgrades the user to the Hobby plan in Supabase
- Removes the stored card from the Stripe customer
Args: request: Active subscription payment method ID shown in the UI auth: Authenticated user context
Returns: Success status with cancellation message
delete/v1/billing/remove-payment-method
Request
- Base URLhttps://api.pioneer.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
endpoint added
- info