Total Resellers Credit API

Retrieve the total sum of credit across all reseller accounts

Resellers

Total Resellers Credit API

Get the aggregate sum of credit balances across all reseller accounts. Monitor the total credit distribution in your reseller network.

Aggregate Total

Sum of all credits.

Financial Insight

Network credit health.

Quick Metric

Single value response.


Endpoint Overview

QUERY/graphql

Retrieve the total sum of credit available across all reseller accounts in the system.

Authentication:Bearer Token
Required scopes:admin

GraphQL Query

query totalResellersCredit {
  totalResellersCredit
}

HTTP Request:

curl -X POST https://api.orbnet.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "query": "query totalResellersCredit { totalResellersCredit }"
  }'

Response

200Total Credit Retrieved Successfully
{
  "data": {
    "totalResellersCredit": 125750.50
  }
}
401Unauthorized
{
  "errors": [
    {
      "message": "Admin authentication required",
      "path": ["totalResellersCredit"],
      "extensions": {
        "code": "UNAUTHORIZED"
      }
    }
  ],
  "data": null
}

Response Fields

totalResellersCreditFloat!

The sum of all credit balances across all reseller accounts.


Use Cases

Dashboard Widget

Display total network credit.

Financial Reports

Include in business analytics.

Liability Tracking

Monitor outstanding credits.

Trend Analysis

Track credit changes over time.



Credit Liability

Total reseller credit represents the sum of prepaid credits in your system. This is a key financial metric for understanding your credit liability to resellers.

View Credit Distribution

See how credits are distributed across individual resellers.

Reseller Credits