GET
/
accounting
/
getcurrentdue
Get Current Due Amount
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/accounting/getcurrentdue \
  --header 'Authorization: Bearer <token>'
{
"message": "success",
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"tenantUserId": "456e7890-e89b-12d3-a456-426614174001",
"userId": "789e0123-e89b-12d3-a456-426614174002",
"fullName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"country": "US",
"gross": 2500.75,
"net": 2250.68,
"paid": 1500,
"due": 750.68,
"lastCalculatedAt": "2024-08-11T10:30:00Z",
"calculationMethod": "cached",
"hasPendingPaymentRequest": false,
"hasPaymentSettings": true
}
],
"totalCount": 125,
"page": 1,
"totalPages": 13
}

Authorizations

Authorization
string
header
required

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

Query Parameters

q
string

Search query to filter users by name or nickname

page
integer
default:1

Page number for pagination

Required range: x >= 1
size
integer
default:10

Number of items per page

Required range: 1 <= x <= 100
sort
enum<string>
default:due

Field to sort by

Available options:
gross,
net,
paid,
due,
lastCalculatedAt
order
enum<string>
default:DESC

Sort order

Available options:
ASC,
DESC

Response

200
application/json

Current due amounts list retrieved successfully

The response is of type object.