POST v1/PurchaseCoupons

Documentation for 'Post'.

Request Information

Parameters

NameDescriptionAdditional information
purchaseCoupon
Documentation for 'purchaseCoupon'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
Click to beautify!
{
  "purchaseId": 1,
  "couponCode": "sample string 2",
  "skipCouponValidation": true
}

application/xml, text/xml

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

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,
  "couponCode": "sample string 2",
  "id": 3,
  "uri": "sample string 4"
}

application/xml, text/xml

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