GET api/AccountDiscountCategorys/GetAccountDiscountCategorys/{companyId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
AccountDiscountCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| AccountDiscountCategoryId | integer |
None. |
|
| AccountDiscountCategoryDescription | string |
Required String length: inclusive between 0 and 80 |
|
| AccountDiscountCategoryPercentage | decimal number |
Required |
|
| CompanyId | integer |
None. |
|
| ObjectState | ObjectState |
None. |
Response Formats
application/json, text/json
Sample:
{
"accountDiscountCategoryId": 1,
"accountDiscountCategoryDescription": "sample string 2",
"accountDiscountCategoryPercentage": 3.0,
"companyId": 4,
"objectState": 0
}
application/xml, text/xml
Sample:
<AccountDiscountCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models"> <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState> <AccountDiscountCategoryDescription>sample string 2</AccountDiscountCategoryDescription> <AccountDiscountCategoryId>1</AccountDiscountCategoryId> <AccountDiscountCategoryPercentage>3</AccountDiscountCategoryPercentage> <CompanyId>4</CompanyId> </AccountDiscountCategory>