Skip to main content

Endpoint

POST https://api.ugc.inc/billing/request-refund

Overview

Request a refund for an account. All refund requests require manual admin review.

Request Body

account_id
string
required
ID of the account for the refund request
reason
string
Reason for requesting a refund

Response

data
object
curl -X POST https://api.ugc.inc/billing/request-refund \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"account_id": "acc_123", "reason": "Not satisfied with service"}'
{
  "ok": true,
  "code": 200,
  "message": "Success",
  "data": {
    "message": "Refund request submitted for review",
    "request": {
      "id": "req_125",
      "org_id": "org_123",
      "account_id": "acc_123",
      "type": "refund",
      "status": "pending",
      "reason": "Not satisfied with service",
      "created_at": "2025-01-15T10:00:00.000Z",
      "resolved_at": null
    }
  }
}