Skip to main content
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
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/accounting/getcurrentdue', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

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

Current due amounts list retrieved successfully

message
string
Example:

"success"

data
object[]
totalCount
integer

Total number of records available

Example:

125

page
integer

Current page number

Example:

1

totalPages
integer

Total number of pages

Example:

13