curl --request GET \
--url https://api.royalti.io/accounting/queue/status \
--header 'Authorization: Bearer <token>'{
"jobId": "job-uuid-123",
"state": "active",
"progress": 45.5,
"data": {
"triggeredBy": "manual",
"timestamp": "2023-11-07T05:31:56Z",
"userCount": 100
},
"timestamps": {
"created": 123,
"processed": 123,
"finished": 123
}
}Get Accounting Queue Status
curl --request GET \
--url https://api.royalti.io/accounting/queue/status \
--header 'Authorization: Bearer <token>'{
"jobId": "job-uuid-123",
"state": "active",
"progress": 45.5,
"data": {
"triggeredBy": "manual",
"timestamp": "2023-11-07T05:31:56Z",
"userCount": 100
},
"timestamps": {
"created": 123,
"processed": 123,
"finished": 123
}
}| Parameter | Type | Description |
|---|---|---|
| jobId | string | Specific job ID to check (optional) |
const response = await fetch('https://api.royalti.io/accounting/queue/status', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Specific job ID to check status for
Queue status retrieved successfully