{
"total_amount": "1280.00",
"total_records": "6",
"collection": [
{
"id": 992,
"description": "some daily allowance",
"user_name": "John Smith",
"state": "accounted",
"date": "2023-08-03",
"cost_center_names": "",
"approved_by": "42",
"user_id": 819,
"cost_center_ids": [],
"cost_center_external_ids": [],
"sent_at": "2023-08-17",
"created_by": "John Smith",
"updated_at": "2023-08-17",
"paid_at": "2023-08-17",
"batch_reference_number": "RF225474853987121",
"start_time": "2023-08-01T09:00:00.000Z",
"end_time": "2023-08-03T09:00:00.000Z",
"countries": "Finland",
"total_cost": "64.50",
"debit_account_code": "7880"
}
]
}
| Param name | Description |
|---|---|
|
page
optional |
Page number. Validations:
|
|
per_page
optional |
Number of records per page. Default: 25. Validations:
|
|
q
optional |
Query to filter daily allowances by description or amount, e.g.: “Helsinki”, “12.40”. Validations:
|
|
date_range
optional |
Date range to filter daily allowances by. Format: “DD/MM/YYYY - DD/MM/YYYY”, e.g. “01/09/2023 - 04/09/2023”. Validations:
|
|
user_id
optional |
User ID to filter daily allowances by. Validations:
|
|
cost_center_id
optional |
Cost center ID to filter daily allowances by. Validations:
|
|
state
optional |
State to filter daily allowances by. Validations:
|
|
updated_at_range
optional |
Date range when daily allowances were last updated to filter by. Format: “DD/MM/YYYY - DD/MM/YYYY”, e.g. “01/09/2023 - 04/09/2023”. Validations:
|
|
sort
optional |
Parameter to sort daily allowances by. Sorted by updated date in descending order by default. Validations:
|
|
order
optional |
Sort daily allowances by sort param in ascending or descending order. Default: asc. Validations:
|
|
extended
optional |
Pass Validations:
|
OK
| Param name | Description |
|---|---|
|
total_amount
required |
Total amount for daily allowances matching filtering criteria, e.g. “154.25”. Validations:
|
|
total_records
required |
Total number of daily allowances matching filtering criteria, e.g. “5”. Validations:
|
|
collection
required |
List of daily allowances. Validations:
|