GET
/
accounting
/
{id}
/
stats
Get Accounting Statistics
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/accounting/{id}/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "totalRevenue": 123,
    "totalExpenses": 123,
    "netIncome": 123,
    "currency": "USD",
    "lastUpdated": "2023-11-07T05:31:56Z",
    "transactions": {
      "totalAmount": 123,
      "currency": "<string>",
      "count": 123,
      "byType": [
        {
          "type": "<string>",
          "amount": 123,
          "count": 123
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Accounting entity ID

Query Parameters

include
string

Comma-separated list of related resources to include

Response

200
application/json

Accounting statistics retrieved successfully

The response is of type object.