POST api/DiscountGroup/UpdateCustomerProductsDiscount
Request Information
URI Parameters
None.
Body Parameters
CustomerProductsDiscountModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
ProductID | integer |
Required |
|
Product | string |
None. |
|
CustomerID | integer |
Required |
|
Customer | string |
None. |
|
bShowForShop | boolean |
None. |
|
nMaxShopQuantity | integer |
None. |
|
nDailyQuota | integer |
None. |
|
nMonthlyQuota | integer |
None. |
|
fMinDiscPrec | decimal number |
None. |
|
fMaxDiscPerc | decimal number |
None. |
|
CreatedByUserID | integer |
None. |
|
CreatedAt | date |
None. |
|
UpdatedAt | date |
None. |
|
IsActive | boolean |
None. |
|
ActiveDiscountTypeID | integer |
None. |
|
ActiveDiscountType | string |
None. |
|
UpdatePermission | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "ProductID": 1, "Product": "sample string 2", "CustomerID": 1, "Customer": "sample string 3", "bShowForShop": true, "nMaxShopQuantity": 1, "nDailyQuota": 1, "nMonthlyQuota": 1, "fMinDiscPrec": 1.0, "fMaxDiscPerc": 1.0, "CreatedByUserID": 1, "CreatedAt": "2025-01-22T20:59:50.1589636-06:00", "UpdatedAt": "2025-01-22T20:59:50.1589636-06:00", "IsActive": true, "ActiveDiscountTypeID": 1, "ActiveDiscountType": "sample string 4", "UpdatePermission": "sample string 5" }
application/xml, text/xml
Sample:
<CustomerProductsDiscountModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <ActiveDiscountType>sample string 4</ActiveDiscountType> <ActiveDiscountTypeID>1</ActiveDiscountTypeID> <CreatedAt>2025-01-22T20:59:50.1589636-06:00</CreatedAt> <CreatedByUserID>1</CreatedByUserID> <Customer>sample string 3</Customer> <CustomerID>1</CustomerID> <ID>1</ID> <IsActive>true</IsActive> <Product>sample string 2</Product> <ProductID>1</ProductID> <UpdatePermission>sample string 5</UpdatePermission> <UpdatedAt>2025-01-22T20:59:50.1589636-06:00</UpdatedAt> <bShowForShop>true</bShowForShop> <fMaxDiscPerc>1</fMaxDiscPerc> <fMinDiscPrec>1</fMinDiscPrec> <nDailyQuota>1</nDailyQuota> <nMaxShopQuantity>1</nMaxShopQuantity> <nMonthlyQuota>1</nMonthlyQuota> </CustomerProductsDiscountModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseDetailName | Description | Type | Additional information |
---|---|---|---|
ResponseCode | integer |
None. |
|
ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResponseCode": 1, "ResponseText": "sample string 2" }
application/xml, text/xml
Sample:
<ResponseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <ResponseCode>1</ResponseCode> <ResponseText>sample string 2</ResponseText> </ResponseDetail>