POST v1/PurchaseDiscounts

Documentation for 'Post'.

Request Information

Parameters

NameDescriptionAdditional information
purchase
Documentation for 'purchase'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
Click to beautify!
{
  "purchaseId": 1,
  "discountType": "sample string 2",
  "amount": 3.0
}

application/xml, text/xml

Sample:
Click to beautify!
<PurchaseDiscount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Dto.Post">
  <Amount>3</Amount>
  <DiscountType>sample string 2</DiscountType>
  <PurchaseId>1</PurchaseId>
</PurchaseDiscount>

application/x-www-form-urlencoded

Sample:
Click to beautify!

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
Click to beautify!
{
  "purchaseId": 1,
  "discountType": "sample string 2",
  "amount": 3.0,
  "id": 4,
  "uri": "sample string 5"
}

application/xml, text/xml

Sample:
Click to beautify!
<PurchaseDiscount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Dto.Get">
  <Id>4</Id>
  <Uri>sample string 5</Uri>
  <Amount>3</Amount>
  <DiscountType>sample string 2</DiscountType>
  <PurchaseId>1</PurchaseId>
</PurchaseDiscount>