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


Updates a collection of discounts from a specific Product

Request Information

URI Parameters

NameDescriptionTypeAdditional information
catalogid

CatalogID

integer

Required

Body Parameters

A Json or XML object containing the new discount

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.

Request 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>

Sample Request


Please click here to download the C# Rest API Client project from GitHub.
not yet available
not yet available

Response Information

application/json, text/json

Sample:
[
  {
    "Key":"DiscountID",
    "Value":"1234",
    "Status":"200",
    "Message":"updated successfully",
  }
]
							

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.