GET discount
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of 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
},
{
"id": 1,
"name": "sample string 2",
"discount_percentage": 3.1,
"customer_role_id": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfNopDiscountEx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EliteWeb.NopCommerce.Common">
<NopDiscountEx>
<customer_role_id>4</customer_role_id>
<discount_percentage>3.1</discount_percentage>
<id>1</id>
<name>sample string 2</name>
</NopDiscountEx>
<NopDiscountEx>
<customer_role_id>4</customer_role_id>
<discount_percentage>3.1</discount_percentage>
<id>1</id>
<name>sample string 2</name>
</NopDiscountEx>
</ArrayOfNopDiscountEx>