Skip to main content
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
        }
      ]
    }
  }
}
Get Accounting Statistics Retrieve detailed statistics for a specific accounting period or entity. Method: GET Path Parameters:
ParameterTypeDescription
idstringThe unique identifier for the accounting entity

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathāœ…Accounting entity ID

Query Parameters

ParameterTypeInRequiredDescription
includestringqueryāŒComma-separated list of related resources to include

Responses

āœ… 200 - Accounting statistics retrieved successfully

āš ļø 400 - undefined

āš ļø 401 - undefined

āš ļø 404 - undefined

āŒ 500 - undefined

Tags

Accounting

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

Accounting statistics retrieved successfully

success
boolean
Example:

true

data
object
⌘I