Skip to main content
POST
Trigger User Accounting Recalculation
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Trigger User Accounting Recalculation Queue a recalculation job for a specific user’s accounting data. This operation is asynchronous and returns immediately with a job ID for tracking. Method: POST Authorization:
  • Required role: admin or higher
Path Parameters: Query Parameters:

Code Examples

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

TenantUser ID

Query Parameters

forceRefresh
boolean
default:false

Force refresh even if data is recent

Response

User accounting recalculation queued successfully

message
string
Example:

"User accounting update queued successfully"

jobId
string

BullMQ job ID for tracking

Example:

"job-uuid-123"

userId
string<uuid>

The TenantUser ID being recalculated

Example:

"123e4567-e89b-12d3-a456-426614174000"

status
enum<string>
Available options:
queued
Example:

"queued"