GET api/ApplyCoupon?CouponID={CouponID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CouponID

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Coupon
NameDescriptionTypeAdditional information
Message

string

None.

TaxAmount

string

None.

ValidCoupon

boolean

None.

TotalAmount

string

None.

PackageValidity

string

None.

CouponID

integer

None.

DiscountTypeID

string

None.

Discount

string

None.

DiscountAmount

decimal number

None.

StatusMessge

string

None.

Status

boolean

None.

Duration

string

None.

CouponApplied

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Message": "sample string 1",
    "TaxAmount": "sample string 2",
    "ValidCoupon": true,
    "TotalAmount": "sample string 4",
    "PackageValidity": "sample string 5",
    "CouponID": 6,
    "DiscountTypeID": "sample string 7",
    "Discount": "sample string 8",
    "DiscountAmount": 9.1,
    "StatusMessge": "sample string 10",
    "Status": true,
    "Duration": "sample string 12",
    "CouponApplied": true
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCoupon xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalStudentServices.Models">
  <Coupon>
    <CouponApplied>true</CouponApplied>
    <CouponID>6</CouponID>
    <Discount>sample string 8</Discount>
    <DiscountAmount>9.1</DiscountAmount>
    <DiscountTypeID>sample string 7</DiscountTypeID>
    <Duration>sample string 12</Duration>
    <Message>sample string 1</Message>
    <PackageValidity>sample string 5</PackageValidity>
    <Status>true</Status>
    <StatusMessge>sample string 10</StatusMessge>
    <TaxAmount>sample string 2</TaxAmount>
    <TotalAmount>sample string 4</TotalAmount>
    <ValidCoupon>true</ValidCoupon>
  </Coupon>
  <Coupon>
    <CouponApplied>true</CouponApplied>
    <CouponID>6</CouponID>
    <Discount>sample string 8</Discount>
    <DiscountAmount>9.1</DiscountAmount>
    <DiscountTypeID>sample string 7</DiscountTypeID>
    <Duration>sample string 12</Duration>
    <Message>sample string 1</Message>
    <PackageValidity>sample string 5</PackageValidity>
    <Status>true</Status>
    <StatusMessge>sample string 10</StatusMessge>
    <TaxAmount>sample string 2</TaxAmount>
    <TotalAmount>sample string 4</TotalAmount>
    <ValidCoupon>true</ValidCoupon>
  </Coupon>
</ArrayOfCoupon>