Endpoint
POST https://api.ugc.inc/billing/portal
Overview
Generate a Stripe billing portal session URL. The portal allows users to manage payment methods, view invoices, and update billing information.
Request Body
URL to redirect to after the portal session. Defaults to https://app.ugc.inc.
Response
Stripe billing portal URL. Redirect the user to this URL.
curl -X POST https://api.ugc.inc/billing/portal \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_url": "https://myapp.com/settings"}'
{
"ok": true,
"code": 200,
"message": "Success",
"data": {
"url": "https://billing.stripe.com/p/session/..."
}
}