Skip to main content

Endpoint

GET https://api.ugc.inc/billing/requests

Overview

Retrieve all billing requests (replacements and refunds) for your account. Returns requests across all organizations linked to your billing record.

Request

No request body required. Authentication via profile-scoped Bearer token.

Response

data
array
Array of billing request objects
curl https://api.ugc.inc/billing/requests \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "ok": true,
  "code": 200,
  "message": "Success",
  "data": [
    {
      "id": "req_123",
      "org_id": "org_123",
      "account_id": "acc_123",
      "type": "replacement",
      "status": "approved",
      "reason": "Account was banned",
      "created_at": "2025-01-15T10:00:00.000Z",
      "resolved_at": "2025-01-15T10:00:00.000Z"
    },
    {
      "id": "req_124",
      "org_id": "org_123",
      "account_id": "acc_456",
      "type": "refund",
      "status": "pending",
      "reason": "Not satisfied",
      "created_at": "2025-01-20T10:00:00.000Z",
      "resolved_at": null
    }
  ]
}