POST api/Discounts/getAllByID

Request Information

URI Parameters

None.

Body Parameters

tbl_Discounts
NameDescriptionTypeAdditional information
DiscountID

integer

None.

SystemUserID

integer

None.

CashAdvanceID

integer

None.

StaffID

integer

None.

DiscountTypeID

integer

None.

DiscountType

string

None.

DiscountValue

decimal number

None.

Year

integer

None.

Month

integer

None.

Note

string

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

DelaysDate

date

None.

CreationDate

date

None.

ModifiedDate

date

None.

PermissionType

integer

None.

tbl_DiscountTypes

tbl_DiscountTypes

None.

tbl_Staffs

tbl_Staffs

None.

tbl_SystemUsers

tbl_SystemUsers

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of DiscountsDTO
NameDescriptionTypeAdditional information
DiscountID

integer

None.

DiscountTypeID

integer

None.

SystemUserID

integer

None.

StaffID

integer

None.

CashAdvanceID

integer

None.

StaffName

string

None.

SystemUser

string

None.

DiscountType

string

None.

DiscountTypeEnglish

string

None.

DiscountTypeArabic

string

None.

DiscountValue

decimal number

None.

Note

string

None.

PermissionType

integer

None.

IsDeleted

boolean

None.

DelaysDate

date

None.

CreationDate

date

None.

ModifiedDate

date

None.

IsActive

boolean

None.

Year

integer

None.

Month

integer

None.

Type

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "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:15:28.3980806-04:00",
    "CreationDate": "2025-10-27T18:15:28.3980806-04:00",
    "ModifiedDate": "2025-10-27T18:15:28.3980806-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:15:28.3980806-04:00",
    "CreationDate": "2025-10-27T18:15:28.3980806-04:00",
    "ModifiedDate": "2025-10-27T18:15:28.3980806-04:00",
    "IsActive": true,
    "Year": 16,
    "Month": 17,
    "Type": 18
  }
]

application/xml, text/xml

Sample:
<ArrayOfDiscountsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR.Objects.DTOs">
  <DiscountsDTO>
    <CashAdvanceID>1</CashAdvanceID>
    <CreationDate>2025-10-27T18:15:28.3980806-04:00</CreationDate>
    <DelaysDate>2025-10-27T18:15:28.3980806-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:15:28.3980806-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:15:28.3980806-04:00</CreationDate>
    <DelaysDate>2025-10-27T18:15:28.3980806-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:15:28.3980806-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>
</ArrayOfDiscountsDTO>