curl --request GET \
--url https://api.royalti.io/accounting/refresh \
--header 'Authorization: Bearer <token>'{
"message": "success",
"processedCount": 125,
"totalUsers": 125
}Refresh Accounting Data
curl --request GET \
--url https://api.royalti.io/accounting/refresh \
--header 'Authorization: Bearer <token>'{
"message": "success",
"processedCount": 125,
"totalUsers": 125
}const response = await fetch('https://api.royalti.io/accounting/refresh', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"