POST api/LMSService/AddProductsToStreamingCart
Request Information
URI Parameters
None.
Body Parameters
StreamingProductName | Description | Type | Additional information |
---|---|---|---|
PurchasedCourses | Collection of CompanyCourseDetails |
None. |
|
CompanyName | string |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
EmailId | string |
None. |
|
SalesAdminMOMId | string |
None. |
|
DiscountPercentage | integer |
None. |
|
OrderCode | string |
None. |
|
CAAdderss | Address |
None. |
|
LoggedInUserId | integer |
None. |
|
SalesForceId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "PurchasedCourses": [ { "CourseId": 1, "CourseName": "sample string 2", "OrderCourseName": "sample string 3", "CompanyCourseId": 4, "TotalSeats": 5, "AvailableSeatCount": 6, "SelectedSeatCount": 7, "KPProductSKU": "sample string 8", "LicensePoolId": 1, "LicensesPoolName": "sample string 9", "PerSeatPrice": 10.1, "DiscountedSeatPrice": 11.1, "IsPool": true, "IsCorrectSKU": true }, { "CourseId": 1, "CourseName": "sample string 2", "OrderCourseName": "sample string 3", "CompanyCourseId": 4, "TotalSeats": 5, "AvailableSeatCount": 6, "SelectedSeatCount": 7, "KPProductSKU": "sample string 8", "LicensePoolId": 1, "LicensesPoolName": "sample string 9", "PerSeatPrice": 10.1, "DiscountedSeatPrice": 11.1, "IsPool": true, "IsCorrectSKU": true } ], "CompanyName": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailId": "sample string 4", "SalesAdminMOMId": "sample string 5", "DiscountPercentage": 6, "OrderCode": "sample string 7", "CAAdderss": { "AddressId": 1, "Address1": "sample string 2", "Address2": "sample string 3", "City": "sample string 4", "State": "sample string 5", "Country": "sample string 6", "ZipCode": "sample string 7", "PhoneNumber": "sample string 8", "PersonId": 9, "LastModifiedDate": "sample string 10", "LastModifiedUserId": 11 }, "LoggedInUserId": 8, "SalesForceId": "sample string 9" }
application/xml, text/xml
Sample:
<StreamingProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kantola.WebSite.BusinessEntities"> <CAAdderss> <Address1>sample string 2</Address1> <Address2>sample string 3</Address2> <AddressId>1</AddressId> <City>sample string 4</City> <Country>sample string 6</Country> <LastModifiedDate>sample string 10</LastModifiedDate> <LastModifiedUserId>11</LastModifiedUserId> <PersonId>9</PersonId> <PhoneNumber>sample string 8</PhoneNumber> <State>sample string 5</State> <ZipCode>sample string 7</ZipCode> </CAAdderss> <CompanyName>sample string 1</CompanyName> <DiscountPercentage>6</DiscountPercentage> <EmailId>sample string 4</EmailId> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <LoggedInUserId>8</LoggedInUserId> <OrderCode>sample string 7</OrderCode> <PurchasedCourses> <CompanyCourseDetails> <AvailableSeatCount>6</AvailableSeatCount> <CompanyCourseId>4</CompanyCourseId> <CourseId>1</CourseId> <CourseName>sample string 2</CourseName> <DiscountedSeatPrice>11.1</DiscountedSeatPrice> <IsCorrectSKU>true</IsCorrectSKU> <IsPool>true</IsPool> <KPProductSKU>sample string 8</KPProductSKU> <LicensePoolId>1</LicensePoolId> <LicensesPoolName>sample string 9</LicensesPoolName> <OrderCourseName>sample string 3</OrderCourseName> <PerSeatPrice>10.1</PerSeatPrice> <SelectedSeatCount>7</SelectedSeatCount> <TotalSeats>5</TotalSeats> </CompanyCourseDetails> <CompanyCourseDetails> <AvailableSeatCount>6</AvailableSeatCount> <CompanyCourseId>4</CompanyCourseId> <CourseId>1</CourseId> <CourseName>sample string 2</CourseName> <DiscountedSeatPrice>11.1</DiscountedSeatPrice> <IsCorrectSKU>true</IsCorrectSKU> <IsPool>true</IsPool> <KPProductSKU>sample string 8</KPProductSKU> <LicensePoolId>1</LicensePoolId> <LicensesPoolName>sample string 9</LicensesPoolName> <OrderCourseName>sample string 3</OrderCourseName> <PerSeatPrice>10.1</PerSeatPrice> <SelectedSeatCount>7</SelectedSeatCount> <TotalSeats>5</TotalSeats> </CompanyCourseDetails> </PurchasedCourses> <SalesAdminMOMId>sample string 5</SalesAdminMOMId> <SalesForceId>sample string 9</SalesForceId> </StreamingProduct>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
APIResponseName | Description | Type | Additional information |
---|---|---|---|
Code | HttpStatusCode |
None. |
|
Status | string |
None. |
|
Data | string |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Code": 100, "Status": "sample string 1", "Data": "sample string 2", "Message": "sample string 3" }
application/xml, text/xml
Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kantola.WebSite.BusinessEntities"> <Code>Continue</Code> <Data>sample string 2</Data> <Message>sample string 3</Message> <Status>sample string 1</Status> </APIResponse>