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

Description

Trigger Tenant-Wide Accounting Recalculation Queue a recalculation job for all users in the tenant. This operation processes users in batches and is asynchronous. Returns immediately with a job ID for tracking progress. Method: POST Authorization:
  • Required role: owner only
Query Parameters:

Code Examples

Authorizations

Authorization
string
header
required

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

Query Parameters

batchSize
integer
default:100

Number of users to process per batch

Required range: 1 <= x <= 500

Response

Tenant accounting recalculation queued successfully

message
string
Example:

"Tenant accounting update queued successfully"

jobId
string

BullMQ job ID for tracking

Example:

"job-uuid-456"

tenantId
integer

The tenant ID being recalculated

Example:

123

status
enum<string>
Available options:
queued
Example:

"queued"

info
object