curl --request GET \
--url https://api.royalti.io/accounting/refreshstats \
--header 'Authorization: Bearer <token>'{
"message": "Stats and accounting refresh queued successfully",
"flowId": "flow-uuid-789",
"tenantId": 123,
"status": "queued",
"info": {
"triggeredBy": "manual",
"executionOrder": "Product Stats → Asset Stats → Artist Stats → Accounting",
"deduplication": "enabled",
"delay": "0ms"
}
}Refresh Stats and Accounting Pipeline
curl --request GET \
--url https://api.royalti.io/accounting/refreshstats \
--header 'Authorization: Bearer <token>'{
"message": "Stats and accounting refresh queued successfully",
"flowId": "flow-uuid-789",
"tenantId": 123,
"status": "queued",
"info": {
"triggeredBy": "manual",
"executionOrder": "Product Stats → Asset Stats → Artist Stats → Accounting",
"deduplication": "enabled",
"delay": "0ms"
}
}const response = await fetch('https://api.royalti.io/accounting/refreshstats', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Stats and accounting refresh queued successfully
"Stats and accounting refresh queued successfully"
BullMQ flow ID for tracking the pipeline
"flow-uuid-789"
The tenant ID for which refresh was queued
123
queued "queued"
Show child attributes