Endpoint
Overview
Request a refund for an account. All refund requests require manual admin review.Request Body
ID of the account for the refund request
Reason for requesting a refund
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
}
}
}
Request a refund for an account
POST https://api.ugc.inc/billing/request-refund
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
}
}
}