ByteHR API Documentation
1. Get All Reimbursements Of Request
GET /api/requests/reimbursement
Fetches a list of available reimbursements of Request.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| currentPage | integer | No | Page number for pagination. Default is 1. |
| limit | integer | No | Number of records per page. Default is 10 and maximum is 100. |
| startDate | Date | Yes | The starting date of the range for which the records are to be retrieved. This date defines the earliest point in time from which data should be included. The format should be YYYY-MM-DD. |
| endDate | Date | Yes | The ending date of the range for which the records are to be retrieved. This date defines the latest point in time up to which data should be included. The format should be YYYY-MM-DD. |
Responses
200 OK
Successful retrieval reimbursements of Request.
Content type: application/json
{
"currentPage": "int",
"limit": "int",
"total": "int",
"data": [
{
"paymentName": "string",
"amount": "int",
"date": "datetime",
"branchName": "string",
"branchNameThai": "string",
"companyName": "string",
"companyNameThai": "string",
"department": "string",
"employeeID": "string",
"employeeName": "string",
"employeeNameThai": "string",
"employeeType": "string",
"position": "string",
"systemID": "string",
"requestID": "string",
"status": "string",
"submittedOn": "datetime",
}
]
}
401 Unauthorized
User authentication failed or missing API Key.
{
"StatusCode": 401,
"Message": "Unauthorized client!",
"Data": null
}
429 Too Many Requests
The request client error response status code indicates the client has sent too many requests in a given amount of time.
{
"StatusCode": 429,
"Message": "Rate limit exceeded. Try again later!",
"Data": null
}
Test API
No response yet...