GET 3dCartWebAPI/v1/Products/{catalogid}/Discount


Get the discounts from a specific Product

Request Information

URI Parameters

NameDescriptionTypeAdditional 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 Discount
NameDescriptionTypeAdditional 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

integer

None.

DiscountUpbound

database reference = pricing.upbound

integer

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,
    "DiscountUpbound": 1,
    "DiscountPrice": 1.1,
    "DiscountPercentage": true
  },
  {
    "DiscountID": 1,
    "DiscountPriceLevel": 1,
    "DiscountLowbound": 1,
    "DiscountUpbound": 1,
    "DiscountPrice": 1.1,
    "DiscountPercentage": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfDiscount xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Discount>
    <DiscountID>1</DiscountID>
    <DiscountPriceLevel>1</DiscountPriceLevel>
    <DiscountLowbound>1</DiscountLowbound>
    <DiscountUpbound>1</DiscountUpbound>
    <DiscountPrice>1.1</DiscountPrice>
    <DiscountPercentage>true</DiscountPercentage>
  </Discount>
  <Discount>
    <DiscountID>1</DiscountID>
    <DiscountPriceLevel>1</DiscountPriceLevel>
    <DiscountLowbound>1</DiscountLowbound>
    <DiscountUpbound>1</DiscountUpbound>
    <DiscountPrice>1.1</DiscountPrice>
    <DiscountPercentage>true</DiscountPercentage>
  </Discount>
</ArrayOfDiscount>