POST api/{version}/PurchaseAddons/SaveStudentCartItem

save student addon item to cart

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

SaveStudentCartItems
NameDescriptionTypeAdditional information
lstStudentCartItems

Gets or sets the list of student cart items

Collection of StudentCartItems

None.

StudentId

Gets or sets the student id

integer

None.

StudentProductId

Gets or sets the student productid

integer

None.

RegistrationId

Gets or sets the registrationid

integer

None.

isTileCombo

Gets or sets whether it is tile page or not

boolean

None.

IsProductAddedFromSuggestion

Gets or sets the product is added from suggestion

boolean

None.

RemoveProductIdAfterSuggestion

Gets or sets the product id that will be replaced after suggestion

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "lstStudentCartItems": [
    {
      "StudentCartItemId": 1,
      "StudentId": 2,
      "ProductType": "sample string 3",
      "PeriodId": 4,
      "CourseId": 5,
      "CenterId": 6,
      "CourseRepeatTypeId": 7,
      "ComboPeriodId": 8,
      "ComboCourseId": 9,
      "ComboCenterId": 10,
      "ComboCourseRepeatTypeId": 11,
      "PrimaryCenterRegistrationId": 12,
      "IsComboRegistration": true,
      "StudentOrderId": 14,
      "ProductId": 15,
      "PurchasedStudentProductId": 16,
      "IsFreeProduct": true,
      "IsPurchased": true,
      "AddedOn": "2026-04-02T23:45:17.8671199-04:00",
      "PurchasedOn": "2026-04-02T23:45:17.8671199-04:00",
      "RemoveFromCart": true,
      "FromPage": "sample string 22",
      "CorporateId": 23,
      "CorporateCode": "sample string 24",
      "IsCorporateCodeApplied": true,
      "IsCorporateOffered": true,
      "DeliveryMode": "sample string 27",
      "OfferedPackageId": 28,
      "CartId": "sample string 29",
      "IsDefaultOffered": true
    },
    {
      "StudentCartItemId": 1,
      "StudentId": 2,
      "ProductType": "sample string 3",
      "PeriodId": 4,
      "CourseId": 5,
      "CenterId": 6,
      "CourseRepeatTypeId": 7,
      "ComboPeriodId": 8,
      "ComboCourseId": 9,
      "ComboCenterId": 10,
      "ComboCourseRepeatTypeId": 11,
      "PrimaryCenterRegistrationId": 12,
      "IsComboRegistration": true,
      "StudentOrderId": 14,
      "ProductId": 15,
      "PurchasedStudentProductId": 16,
      "IsFreeProduct": true,
      "IsPurchased": true,
      "AddedOn": "2026-04-02T23:45:17.8671199-04:00",
      "PurchasedOn": "2026-04-02T23:45:17.8671199-04:00",
      "RemoveFromCart": true,
      "FromPage": "sample string 22",
      "CorporateId": 23,
      "CorporateCode": "sample string 24",
      "IsCorporateCodeApplied": true,
      "IsCorporateOffered": true,
      "DeliveryMode": "sample string 27",
      "OfferedPackageId": 28,
      "CartId": "sample string 29",
      "IsDefaultOffered": true
    }
  ],
  "StudentId": 1,
  "StudentProductId": 2,
  "RegistrationId": 3,
  "isTileCombo": true,
  "IsProductAddedFromSuggestion": true,
  "RemoveProductIdAfterSuggestion": 6
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveStudentCartItems'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>