POST api/WebOrder/ServiceSelectionInfo/Save?id={id}&hash={hash}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
|
| hash | string |
Required |
Body Parameters
ServiceSelectionInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| OfferId | integer |
None. |
|
| SvOfferId | integer |
None. |
|
| OfferDisplayName | string |
None. |
|
| BasePrice | decimal number |
None. |
|
| CampaignCode | string |
None. |
|
| CampaignCodeDiscount | decimal number |
None. |
|
| ServiceTypes | Collection of ServiceType |
None. |
|
| ContractDetails | ContractServiceDetails |
None. |
|
| OfferSpeed | integer |
None. |
|
| IsEbbEligible | boolean |
None. |
|
| HasAcpDisclosure | boolean |
None. |
|
| IsComplete | boolean |
None. |
|
| HasErrors | boolean |
None. |
|
| Errors | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"offerId": 1,
"svOfferId": 1,
"offerDisplayName": "sample string 2",
"basePrice": 3.0,
"campaignCode": "sample string 4",
"campaignCodeDiscount": 5.0,
"serviceTypes": [
{
"name": "sample string 1",
"displayName": "sample string 2",
"isSelected": true,
"imgUrl": "sample string 4"
},
{
"name": "sample string 1",
"displayName": "sample string 2",
"isSelected": true,
"imgUrl": "sample string 4"
}
],
"contractDetails": {
"contract_code": "sample string 1",
"contract_name": "sample string 2",
"contract_fee": 3.1,
"regular_fee": 4.1,
"contract_month": 5,
"early_termination_fee": 6.1,
"etf_reduced_by_fee_monthly": 7,
"contract_template": "sample string 8",
"hsd_promotion_code": "sample string 9",
"hsd_promotion": "sample string 10",
"enable_bundle_discount": true,
"phone_promotion_code": "sample string 12",
"phone_promotion": "sample string 13",
"video_promotion_code": "sample string 14",
"video_promotion": "sample string 15",
"contract_status": "sample string 16",
"hsd_product": "sample string 17",
"video_product": "sample string 18",
"phone_product": "sample string 19",
"operating_center": "sample string 20",
"sales_reason": "sample string 21",
"top_level_offer_name": "sample string 22"
},
"offerSpeed": 1,
"isEbbEligible": true,
"hasAcpDisclosure": true,
"isComplete": true,
"hasErrors": true,
"errors": [
"sample string 1",
"sample string 2"
]
}
text/html
Sample:
{"offerId":1,"svOfferId":1,"offerDisplayName":"sample string 2","basePrice":3.0,"campaignCode":"sample string 4","campaignCodeDiscount":5.0,"serviceTypes":[{"name":"sample string 1","displayName":"sample string 2","isSelected":true,"imgUrl":"sample string 4"},{"name":"sample string 1","displayName":"sample string 2","isSelected":true,"imgUrl":"sample string 4"}],"contractDetails":{"contract_code":"sample string 1","contract_name":"sample string 2","contract_fee":3.1,"regular_fee":4.1,"contract_month":5,"early_termination_fee":6.1,"etf_reduced_by_fee_monthly":7,"contract_template":"sample string 8","hsd_promotion_code":"sample string 9","hsd_promotion":"sample string 10","enable_bundle_discount":true,"phone_promotion_code":"sample string 12","phone_promotion":"sample string 13","video_promotion_code":"sample string 14","video_promotion":"sample string 15","contract_status":"sample string 16","hsd_product":"sample string 17","video_product":"sample string 18","phone_product":"sample string 19","operating_center":"sample string 20","sales_reason":"sample string 21","top_level_offer_name":"sample string 22"},"offerSpeed":1,"isEbbEligible":true,"hasAcpDisclosure":true,"isComplete":true,"hasErrors":true,"errors":["sample string 1","sample string 2"]}
application/xml, text/xml
Sample:
<ServiceSelectionInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WWW.CableOne.ShoppingCartBusinessEntities">
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<HasErrors>true</HasErrors>
<IsComplete>true</IsComplete>
<BasePrice>3</BasePrice>
<CampaignCode>sample string 4</CampaignCode>
<CampaignCodeDiscount>5</CampaignCodeDiscount>
<ContractDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/WWW.CableOne.ShoppingCartBusinessEntities.BussinessEntities.Contracts">
<d2p1:contract_code>sample string 1</d2p1:contract_code>
<d2p1:contract_fee>3.1</d2p1:contract_fee>
<d2p1:contract_month>5</d2p1:contract_month>
<d2p1:contract_name>sample string 2</d2p1:contract_name>
<d2p1:contract_status>sample string 16</d2p1:contract_status>
<d2p1:contract_template>sample string 8</d2p1:contract_template>
<d2p1:early_termination_fee>6.1</d2p1:early_termination_fee>
<d2p1:enable_bundle_discount>true</d2p1:enable_bundle_discount>
<d2p1:etf_reduced_by_fee_monthly>7</d2p1:etf_reduced_by_fee_monthly>
<d2p1:hsd_product>sample string 17</d2p1:hsd_product>
<d2p1:hsd_promotion>sample string 10</d2p1:hsd_promotion>
<d2p1:hsd_promotion_code>sample string 9</d2p1:hsd_promotion_code>
<d2p1:operating_center>sample string 20</d2p1:operating_center>
<d2p1:phone_product>sample string 19</d2p1:phone_product>
<d2p1:phone_promotion>sample string 13</d2p1:phone_promotion>
<d2p1:phone_promotion_code>sample string 12</d2p1:phone_promotion_code>
<d2p1:regular_fee>4.1</d2p1:regular_fee>
<d2p1:sales_reason>sample string 21</d2p1:sales_reason>
<d2p1:top_level_offer_name>sample string 22</d2p1:top_level_offer_name>
<d2p1:video_product>sample string 18</d2p1:video_product>
<d2p1:video_promotion>sample string 15</d2p1:video_promotion>
<d2p1:video_promotion_code>sample string 14</d2p1:video_promotion_code>
</ContractDetails>
<HasAcpDisclosure>true</HasAcpDisclosure>
<IsEbbEligible>true</IsEbbEligible>
<OfferDisplayName>sample string 2</OfferDisplayName>
<OfferId>1</OfferId>
<OfferSpeed>1</OfferSpeed>
<ServiceTypes>
<ServiceType>
<DisplayName>sample string 2</DisplayName>
<ImgUrl>sample string 4</ImgUrl>
<IsSelected>true</IsSelected>
<Name>sample string 1</Name>
</ServiceType>
<ServiceType>
<DisplayName>sample string 2</DisplayName>
<ImgUrl>sample string 4</ImgUrl>
<IsSelected>true</IsSelected>
<Name>sample string 1</Name>
</ServiceType>
</ServiceTypes>
<SvOfferId>1</SvOfferId>
</ServiceSelectionInfo>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
JsonResponseResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| ContentEncoding | Encoding |
None. |
|
| ContentType | string |
None. |
|
| Data | Object |
None. |
|
| JsonRequestBehavior | JsonRequestBehavior |
None. |
|
| MaxJsonLength | integer |
None. |
|
| RecursionLimit | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"contentEncoding": null,
"contentType": "sample string 3",
"data": {},
"jsonRequestBehavior": 0,
"maxJsonLength": 1,
"recursionLimit": 1
}
text/html
Sample:
{"success":true,"message":"sample string 2","contentEncoding":null,"contentType":"sample string 3","data":{},"jsonRequestBehavior":0,"maxJsonLength":1,"recursionLimit":1}
application/xml, text/xml
Sample:
<JsonResponseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WWW.CableOne.ShoppingCartUtilities"> <ContentEncoding xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Text" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc" /> <ContentType xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 3</ContentType> <Data xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc" /> <JsonRequestBehavior xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">AllowGet</JsonRequestBehavior> <MaxJsonLength xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">1</MaxJsonLength> <RecursionLimit xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">1</RecursionLimit> <Message>sample string 2</Message> <Success>true</Success> </JsonResponseResult>