GET 3dCartWebAPI/v1/Products/{catalogid}/Discount
Get the discounts from a specific Product
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
catalogid |
Catalog ID |
integer |
Default value is 0 |
limit |
Maximum number of items that can be returned |
integer |
Default value is 0 |
offset |
Starting point for the return data |
integer |
Default value is 0 |
Body Parameters
None.
Sample Request |
|
Response Information
Resource Description
Collection of DiscountName | Description | Type | Additional information |
---|---|---|---|
DiscountID |
Primary key, auto-incremented. database reference = pricing.id |
integer |
None. |
DiscountPriceLevel |
database reference = pricing.price_level |
integer |
None. |
DiscountLowbound |
database reference = pricing.lowbound |
decimal number |
None. |
DiscountUpbound |
database reference = pricing.upbound |
decimal number |
None. |
DiscountPrice |
database reference = pricing.price |
decimal number |
None. |
DiscountPercentage |
database reference = pricing.percentage |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "DiscountID": 1, "DiscountPriceLevel": 1, "DiscountLowbound": 1.1, "DiscountUpbound": 1.1, "DiscountPrice": 1.1, "DiscountPercentage": true }, { "DiscountID": 1, "DiscountPriceLevel": 1, "DiscountLowbound": 1.1, "DiscountUpbound": 1.1, "DiscountPrice": 1.1, "DiscountPercentage": true } ]
application/xml, text/xml
Sample:
<ArrayOfDiscount xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Discount> <DiscountID>1</DiscountID> <DiscountPriceLevel>1</DiscountPriceLevel> <DiscountLowbound>1.1</DiscountLowbound> <DiscountUpbound>1.1</DiscountUpbound> <DiscountPrice>1.1</DiscountPrice> <DiscountPercentage>true</DiscountPercentage> </Discount> <Discount> <DiscountID>1</DiscountID> <DiscountPriceLevel>1</DiscountPriceLevel> <DiscountLowbound>1.1</DiscountLowbound> <DiscountUpbound>1.1</DiscountUpbound> <DiscountPrice>1.1</DiscountPrice> <DiscountPercentage>true</DiscountPercentage> </Discount> </ArrayOfDiscount>