curl https://api.ugc.inc/billing \
-H "Authorization: Bearer YOUR_API_KEY"
{
"ok": true,
"code": 200,
"message": "Success",
"data": {
"billing_id": "bill_123",
"subscription": {
"status": "active",
"cancel_at_period_end": false,
"current_period_start": "2025-01-01T00:00:00.000Z",
"current_period_end": "2025-02-01T00:00:00.000Z",
"slots": {
"basic": 5,
"premium": 2
}
},
"orgs": [
{
"id": "org_123",
"name": "My Organization"
}
]
}
}
Get billing information including subscription details and linked organizations
GET https://api.ugc.inc/billing
Show Response properties
Show Subscription properties
active, canceled, past_due)curl https://api.ugc.inc/billing \
-H "Authorization: Bearer YOUR_API_KEY"
{
"ok": true,
"code": 200,
"message": "Success",
"data": {
"billing_id": "bill_123",
"subscription": {
"status": "active",
"cancel_at_period_end": false,
"current_period_start": "2025-01-01T00:00:00.000Z",
"current_period_end": "2025-02-01T00:00:00.000Z",
"slots": {
"basic": 5,
"premium": 2
}
},
"orgs": [
{
"id": "org_123",
"name": "My Organization"
}
]
}
}