GET discount/{Id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
NopDiscountEx| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| discount_percentage | decimal number |
None. |
|
| customer_role_id | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"discount_percentage": 3.1,
"customer_role_id": 4
}
application/xml, text/xml
Sample:
<NopDiscountEx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EliteWeb.NopCommerce.Common"> <customer_role_id>4</customer_role_id> <discount_percentage>3.1</discount_percentage> <id>1</id> <name>sample string 2</name> </NopDiscountEx>