POST api/MyAccount/ValidateExtensionPromocode
Request Information
URI Parameters
None.
Body Parameters
ExtensionRequestBase| Name | Description | Type | Additional information |
|---|---|---|---|
| RegistrationId | integer |
None. |
|
| StudentProductId | integer |
None. |
|
| SubscriptionExtensionId | integer |
None. |
|
| StudentId | integer |
None. |
|
| IsCorpReferral | boolean |
None. |
|
| IsTaxExempted | boolean |
None. |
|
| CorporateId | integer |
None. |
|
| OfferedPackageId | integer |
None. |
|
| IsPayableByCorporate | boolean |
None. |
|
| ExtensionFee | decimal number |
None. |
|
| ExtensionFeeWithoutFeeAdj | decimal number |
None. |
|
| MonthlySubscription | integer |
None. |
|
| Tax | AvalaraTaxInfo |
None. |
|
| ExtensionStudentSubscriptionId | integer |
None. |
|
| ActivatedDate | date |
None. |
|
| EndDate | date |
None. |
|
| StartDate | date |
None. |
|
| AdditionalCharge | decimal number |
None. |
|
| SpecialDiscount | decimal number |
None. |
|
| CorpAdditionDiscount | decimal number |
None. |
|
| CurrentSubscriptionEndDate | date |
None. |
|
| CurrentSubscriptionId | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedByType | string |
None. |
|
| StudentSubscriptionExtensionLogId | integer |
None. |
|
| PaymentId | integer |
None. |
|
| TransactionId | string |
None. |
|
| TransactionMessage | string |
None. |
|
| OrderId | integer |
None. |
|
| FeeAdj | Collection of StudentsFeeAdjustments |
None. |
|
| FeeAdjSum | decimal number |
None. |
|
| SubmitType | string |
None. |
|
| MailContent | string |
None. |
|
| PayByStudent | boolean |
None. |
|
| IsPaymentSuccess | boolean |
None. |
|
| IsIgnoreAVS | boolean |
None. |
|
| DurationInterval | string |
None. |
|
| DurationNumber | integer |
None. |
|
| IsChangeCurrentSubscription | boolean |
None. |
|
| IsVerifyReActivationType | boolean |
None. |
|
| PromocodeId | integer |
None. |
|
| Promocode | string |
None. |
|
| IsRemovePromoCode | boolean |
None. |
|
| IsCorporateExtension | boolean |
None. |
|
| MonthsToExtend | integer |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
StudentExtensionPromocodeDiscount| Name | Description | Type | Additional information |
|---|---|---|---|
| PromocodeId | integer |
None. |
|
| PromoCode | string |
None. |
|
| DiscountAmount | decimal number |
None. |
|
| StudentExtensionDiscountId | integer |
None. |
|
| ExtensionId | integer |
None. |
|
| subscriptionExtension | SubscriptionExtension |
None. |
|
| IsPercentage | boolean |
None. |
|
| IsPromoCodeValue | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"PromocodeId": 1,
"PromoCode": "sample string 2",
"DiscountAmount": 3.0,
"StudentExtensionDiscountId": 4,
"ExtensionId": 5,
"subscriptionExtension": {
"ExtensionPlanId": 1,
"ExtensionName": "sample string 2",
"MonthlyCourseAccess": 3,
"Amount": 4.1,
"Status": true,
"IsUsed": true,
"TaxAmount": 7.0,
"ErrorResponse": "sample string 8",
"DeliveryMode": "sample string 9",
"EffectiveFrom": "2026-04-02T23:46:07.1061321-04:00",
"DurationInterval": "sample string 11",
"DurationNumber": 12,
"ExtensionDays": 13,
"ExtensionDuration": "sample string 14",
"CourseRemainingDays": 15,
"IsPromoCodeApplicable": true
},
"IsPercentage": true,
"IsPromoCodeValue": 7.1
}