GET api/CashAdvance/getAllByID/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of CashAdvanceDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| CashAdvanceID | integer |
None. |
|
| CashAdvancesTypeID | integer |
None. |
|
| CashAdvancesTypeEnglish | string |
None. |
|
| CashAdvancesTypeArabic | string |
None. |
|
| SystemUserID | integer |
None. |
|
| StaffID | integer |
None. |
|
| StaffName | string |
None. |
|
| SystemUser | string |
None. |
|
| CashAdvanceValue | decimal number |
None. |
|
| NumberOfMonths | integer |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| MonthlyPayment | decimal number |
None. |
|
| Note | string |
None. |
|
| IsDeleted | boolean |
None. |
|
| CreationDate | date |
None. |
|
| ModifiedDate | date |
None. |
|
| lstDiscounts | Collection of DiscountsDTO |
None. |
|
| TotalSalary | decimal number |
None. |
|
| RequestID | integer |
None. |
|
| RequestTypeID | integer |
None. |
|
| RequestStatusID | integer |
None. |
|
| StatusEnglish | string |
None. |
|
| StatusArabic | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"CashAdvanceID": 1,
"CashAdvancesTypeID": 2,
"CashAdvancesTypeEnglish": "sample string 3",
"CashAdvancesTypeArabic": "sample string 4",
"SystemUserID": 5,
"StaffID": 6,
"StaffName": "sample string 7",
"SystemUser": "sample string 8",
"CashAdvanceValue": 9.0,
"NumberOfMonths": 10,
"StartDate": "2025-10-27T18:35:14.6477953-04:00",
"EndDate": "2025-10-27T18:35:14.6477953-04:00",
"MonthlyPayment": 13.0,
"Note": "sample string 14",
"IsDeleted": true,
"CreationDate": "2025-10-27T18:35:14.6477953-04:00",
"ModifiedDate": "2025-10-27T18:35:14.6477953-04:00",
"lstDiscounts": [
{
"DiscountID": 1,
"DiscountTypeID": 2,
"SystemUserID": 3,
"StaffID": 4,
"CashAdvanceID": 1,
"StaffName": "sample string 5",
"SystemUser": "sample string 6",
"DiscountType": "sample string 7",
"DiscountTypeEnglish": "sample string 8",
"DiscountTypeArabic": "sample string 9",
"DiscountValue": 10.0,
"Note": "sample string 11",
"PermissionType": 1,
"IsDeleted": true,
"DelaysDate": "2025-10-27T18:35:14.6477953-04:00",
"CreationDate": "2025-10-27T18:35:14.6477953-04:00",
"ModifiedDate": "2025-10-27T18:35:14.6477953-04:00",
"IsActive": true,
"Year": 16,
"Month": 17,
"Type": 18
},
{
"DiscountID": 1,
"DiscountTypeID": 2,
"SystemUserID": 3,
"StaffID": 4,
"CashAdvanceID": 1,
"StaffName": "sample string 5",
"SystemUser": "sample string 6",
"DiscountType": "sample string 7",
"DiscountTypeEnglish": "sample string 8",
"DiscountTypeArabic": "sample string 9",
"DiscountValue": 10.0,
"Note": "sample string 11",
"PermissionType": 1,
"IsDeleted": true,
"DelaysDate": "2025-10-27T18:35:14.6477953-04:00",
"CreationDate": "2025-10-27T18:35:14.6477953-04:00",
"ModifiedDate": "2025-10-27T18:35:14.6477953-04:00",
"IsActive": true,
"Year": 16,
"Month": 17,
"Type": 18
}
],
"TotalSalary": 18.0,
"RequestID": 19,
"RequestTypeID": 20,
"RequestStatusID": 21,
"StatusEnglish": "sample string 22",
"StatusArabic": "sample string 23"
},
{
"CashAdvanceID": 1,
"CashAdvancesTypeID": 2,
"CashAdvancesTypeEnglish": "sample string 3",
"CashAdvancesTypeArabic": "sample string 4",
"SystemUserID": 5,
"StaffID": 6,
"StaffName": "sample string 7",
"SystemUser": "sample string 8",
"CashAdvanceValue": 9.0,
"NumberOfMonths": 10,
"StartDate": "2025-10-27T18:35:14.6477953-04:00",
"EndDate": "2025-10-27T18:35:14.6477953-04:00",
"MonthlyPayment": 13.0,
"Note": "sample string 14",
"IsDeleted": true,
"CreationDate": "2025-10-27T18:35:14.6477953-04:00",
"ModifiedDate": "2025-10-27T18:35:14.6477953-04:00",
"lstDiscounts": [
{
"DiscountID": 1,
"DiscountTypeID": 2,
"SystemUserID": 3,
"StaffID": 4,
"CashAdvanceID": 1,
"StaffName": "sample string 5",
"SystemUser": "sample string 6",
"DiscountType": "sample string 7",
"DiscountTypeEnglish": "sample string 8",
"DiscountTypeArabic": "sample string 9",
"DiscountValue": 10.0,
"Note": "sample string 11",
"PermissionType": 1,
"IsDeleted": true,
"DelaysDate": "2025-10-27T18:35:14.6477953-04:00",
"CreationDate": "2025-10-27T18:35:14.6477953-04:00",
"ModifiedDate": "2025-10-27T18:35:14.6477953-04:00",
"IsActive": true,
"Year": 16,
"Month": 17,
"Type": 18
},
{
"DiscountID": 1,
"DiscountTypeID": 2,
"SystemUserID": 3,
"StaffID": 4,
"CashAdvanceID": 1,
"StaffName": "sample string 5",
"SystemUser": "sample string 6",
"DiscountType": "sample string 7",
"DiscountTypeEnglish": "sample string 8",
"DiscountTypeArabic": "sample string 9",
"DiscountValue": 10.0,
"Note": "sample string 11",
"PermissionType": 1,
"IsDeleted": true,
"DelaysDate": "2025-10-27T18:35:14.6477953-04:00",
"CreationDate": "2025-10-27T18:35:14.6477953-04:00",
"ModifiedDate": "2025-10-27T18:35:14.6477953-04:00",
"IsActive": true,
"Year": 16,
"Month": 17,
"Type": 18
}
],
"TotalSalary": 18.0,
"RequestID": 19,
"RequestTypeID": 20,
"RequestStatusID": 21,
"StatusEnglish": "sample string 22",
"StatusArabic": "sample string 23"
}
]
application/xml, text/xml
Sample:
<ArrayOfCashAdvanceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR.Objects.DTOs">
<CashAdvanceDTO>
<CashAdvanceID>1</CashAdvanceID>
<CashAdvanceValue>9</CashAdvanceValue>
<CashAdvancesTypeArabic>sample string 4</CashAdvancesTypeArabic>
<CashAdvancesTypeEnglish>sample string 3</CashAdvancesTypeEnglish>
<CashAdvancesTypeID>2</CashAdvancesTypeID>
<CreationDate>2025-10-27T18:35:14.6477953-04:00</CreationDate>
<EndDate>2025-10-27T18:35:14.6477953-04:00</EndDate>
<IsDeleted>true</IsDeleted>
<ModifiedDate>2025-10-27T18:35:14.6477953-04:00</ModifiedDate>
<MonthlyPayment>13</MonthlyPayment>
<Note>sample string 14</Note>
<NumberOfMonths>10</NumberOfMonths>
<RequestID>19</RequestID>
<RequestStatusID>21</RequestStatusID>
<RequestTypeID>20</RequestTypeID>
<StaffID>6</StaffID>
<StaffName>sample string 7</StaffName>
<StartDate>2025-10-27T18:35:14.6477953-04:00</StartDate>
<StatusArabic>sample string 23</StatusArabic>
<StatusEnglish>sample string 22</StatusEnglish>
<SystemUser>sample string 8</SystemUser>
<SystemUserID>5</SystemUserID>
<TotalSalary>18</TotalSalary>
<lstDiscounts>
<DiscountsDTO>
<CashAdvanceID>1</CashAdvanceID>
<CreationDate>2025-10-27T18:35:14.6477953-04:00</CreationDate>
<DelaysDate>2025-10-27T18:35:14.6477953-04:00</DelaysDate>
<DiscountID>1</DiscountID>
<DiscountType>sample string 7</DiscountType>
<DiscountTypeArabic>sample string 9</DiscountTypeArabic>
<DiscountTypeEnglish>sample string 8</DiscountTypeEnglish>
<DiscountTypeID>2</DiscountTypeID>
<DiscountValue>10</DiscountValue>
<IsActive>true</IsActive>
<IsDeleted>true</IsDeleted>
<ModifiedDate>2025-10-27T18:35:14.6477953-04:00</ModifiedDate>
<Month>17</Month>
<Note>sample string 11</Note>
<PermissionType>1</PermissionType>
<StaffID>4</StaffID>
<StaffName>sample string 5</StaffName>
<SystemUser>sample string 6</SystemUser>
<SystemUserID>3</SystemUserID>
<Type>18</Type>
<Year>16</Year>
</DiscountsDTO>
<DiscountsDTO>
<CashAdvanceID>1</CashAdvanceID>
<CreationDate>2025-10-27T18:35:14.6477953-04:00</CreationDate>
<DelaysDate>2025-10-27T18:35:14.6477953-04:00</DelaysDate>
<DiscountID>1</DiscountID>
<DiscountType>sample string 7</DiscountType>
<DiscountTypeArabic>sample string 9</DiscountTypeArabic>
<DiscountTypeEnglish>sample string 8</DiscountTypeEnglish>
<DiscountTypeID>2</DiscountTypeID>
<DiscountValue>10</DiscountValue>
<IsActive>true</IsActive>
<IsDeleted>true</IsDeleted>
<ModifiedDate>2025-10-27T18:35:14.6477953-04:00</ModifiedDate>
<Month>17</Month>
<Note>sample string 11</Note>
<PermissionType>1</PermissionType>
<StaffID>4</StaffID>
<StaffName>sample string 5</StaffName>
<SystemUser>sample string 6</SystemUser>
<SystemUserID>3</SystemUserID>
<Type>18</Type>
<Year>16</Year>
</DiscountsDTO>
</lstDiscounts>
</CashAdvanceDTO>
<CashAdvanceDTO>
<CashAdvanceID>1</CashAdvanceID>
<CashAdvanceValue>9</CashAdvanceValue>
<CashAdvancesTypeArabic>sample string 4</CashAdvancesTypeArabic>
<CashAdvancesTypeEnglish>sample string 3</CashAdvancesTypeEnglish>
<CashAdvancesTypeID>2</CashAdvancesTypeID>
<CreationDate>2025-10-27T18:35:14.6477953-04:00</CreationDate>
<EndDate>2025-10-27T18:35:14.6477953-04:00</EndDate>
<IsDeleted>true</IsDeleted>
<ModifiedDate>2025-10-27T18:35:14.6477953-04:00</ModifiedDate>
<MonthlyPayment>13</MonthlyPayment>
<Note>sample string 14</Note>
<NumberOfMonths>10</NumberOfMonths>
<RequestID>19</RequestID>
<RequestStatusID>21</RequestStatusID>
<RequestTypeID>20</RequestTypeID>
<StaffID>6</StaffID>
<StaffName>sample string 7</StaffName>
<StartDate>2025-10-27T18:35:14.6477953-04:00</StartDate>
<StatusArabic>sample string 23</StatusArabic>
<StatusEnglish>sample string 22</StatusEnglish>
<SystemUser>sample string 8</SystemUser>
<SystemUserID>5</SystemUserID>
<TotalSalary>18</TotalSalary>
<lstDiscounts>
<DiscountsDTO>
<CashAdvanceID>1</CashAdvanceID>
<CreationDate>2025-10-27T18:35:14.6477953-04:00</CreationDate>
<DelaysDate>2025-10-27T18:35:14.6477953-04:00</DelaysDate>
<DiscountID>1</DiscountID>
<DiscountType>sample string 7</DiscountType>
<DiscountTypeArabic>sample string 9</DiscountTypeArabic>
<DiscountTypeEnglish>sample string 8</DiscountTypeEnglish>
<DiscountTypeID>2</DiscountTypeID>
<DiscountValue>10</DiscountValue>
<IsActive>true</IsActive>
<IsDeleted>true</IsDeleted>
<ModifiedDate>2025-10-27T18:35:14.6477953-04:00</ModifiedDate>
<Month>17</Month>
<Note>sample string 11</Note>
<PermissionType>1</PermissionType>
<StaffID>4</StaffID>
<StaffName>sample string 5</StaffName>
<SystemUser>sample string 6</SystemUser>
<SystemUserID>3</SystemUserID>
<Type>18</Type>
<Year>16</Year>
</DiscountsDTO>
<DiscountsDTO>
<CashAdvanceID>1</CashAdvanceID>
<CreationDate>2025-10-27T18:35:14.6477953-04:00</CreationDate>
<DelaysDate>2025-10-27T18:35:14.6477953-04:00</DelaysDate>
<DiscountID>1</DiscountID>
<DiscountType>sample string 7</DiscountType>
<DiscountTypeArabic>sample string 9</DiscountTypeArabic>
<DiscountTypeEnglish>sample string 8</DiscountTypeEnglish>
<DiscountTypeID>2</DiscountTypeID>
<DiscountValue>10</DiscountValue>
<IsActive>true</IsActive>
<IsDeleted>true</IsDeleted>
<ModifiedDate>2025-10-27T18:35:14.6477953-04:00</ModifiedDate>
<Month>17</Month>
<Note>sample string 11</Note>
<PermissionType>1</PermissionType>
<StaffID>4</StaffID>
<StaffName>sample string 5</StaffName>
<SystemUser>sample string 6</SystemUser>
<SystemUserID>3</SystemUserID>
<Type>18</Type>
<Year>16</Year>
</DiscountsDTO>
</lstDiscounts>
</CashAdvanceDTO>
</ArrayOfCashAdvanceDTO>