POST public/Plan/ApplyDiscount
Request Information
URI Parameters
None.
Body Parameters
ApplyDiscountName | Description | Type | Additional information |
---|---|---|---|
PlanId | integer |
None. |
|
PlanType | PlanType |
None. |
|
PromotionCode | string |
None. |
|
ValidPromotionCode | boolean |
None. |
|
DiscountedAmount | decimal number |
None. |
|
ActualAmount | decimal number |
None. |
|
Discount | decimal number |
None. |
|
CommitmentTerm | integer |
None. |
|
ApplicableDiscount | string |
None. |
|
PromotionType | string |
None. |
|
Date | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "PlanId": 1, "PlanType": 0, "PromotionCode": "sample string 2", "ValidPromotionCode": true, "DiscountedAmount": 4.0, "ActualAmount": 5.0, "Discount": 6.0, "CommitmentTerm": 7, "ApplicableDiscount": "sample string 8", "PromotionType": "sample string 9", "Date": "2025/04/03 19:22:07" }
application/xml, text/xml
Sample:
<ApplyDiscount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Account.DTO.Library.Plan"> <ActualAmount>5</ActualAmount> <ApplicableDiscount>sample string 8</ApplicableDiscount> <CommitmentTerm>7</CommitmentTerm> <Date>2025-04-03T19:22:07.9329585+00:00</Date> <Discount>6</Discount> <DiscountedAmount>4</DiscountedAmount> <PlanId>1</PlanId> <PlanType>Metered</PlanType> <PromotionCode>sample string 2</PromotionCode> <PromotionType>sample string 9</PromotionType> <ValidPromotionCode>true</ValidPromotionCode> </ApplyDiscount>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ITypedResponseOfApplyDiscountName | Description | Type | Additional information |
---|---|---|---|
Result | ApplyDiscount |
None. |
|
Category | string |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.