GET api/Discounts/getByID/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

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:21:25.5565407-04:00",
  "CreationDate": "2025-10-27T18:21:25.5565407-04:00",
  "ModifiedDate": "2025-10-27T18:21:25.5565407-04:00",
  "IsActive": true,
  "Year": 16,
  "Month": 17,
  "Type": 18
}

application/xml, text/xml

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