Skip to main content

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

return_url
string
URL to redirect to after the portal session. Defaults to https://app.ugc.inc.

Response

data
object
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/..."
  }
}