GET api/my/coupon/{id}

Get Coupon detail with the status either active or inactive

Request Information

Parameters

NameDescriptionAdditional information
id
Coupon Code

Define this parameter in the request URI.

Response Information

Coupon object

Response body formats

application/json, text/json

Sample:
{
  "CouponID": 1,
  "CouponCode": "sample string 2",
  "Description": "sample string 3",
  "DiscountAmount": 1.0,
  "DiscountPercent": 1.1,
  "StartDate": "2024-11-19T18:39:44.3001069+08:00",
  "EndDate": "2024-11-19T18:39:44.3001069+08:00",
  "Active": true,
  "Remarks": "sample string 6"
}

application/xml, text/xml

Sample:
<Coupon xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iProperty.Billing.Api.Models.MY">
  <Active>true</Active>
  <CouponCode>sample string 2</CouponCode>
  <CouponID>1</CouponID>
  <Description>sample string 3</Description>
  <DiscountAmount>1</DiscountAmount>
  <DiscountPercent>1.1</DiscountPercent>
  <EndDate>2024-11-19T18:39:44.3001069+08:00</EndDate>
  <Remarks>sample string 6</Remarks>
  <StartDate>2024-11-19T18:39:44.3001069+08:00</StartDate>
</Coupon>