POST api/WebOrder/ContractsInfo/Save?id={id}&hash={hash}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
|
| hash | string |
Required |
Body Parameters
ContractsInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ContractId | integer |
None. |
|
| ContractCode | string |
None. |
|
| ContractName | string |
None. |
|
| ContractMonth | string |
None. |
|
| ContractTemplate | string |
None. |
|
| ContractFee | decimal number |
None. |
|
| RegularFee | decimal number |
None. |
|
| EarlyTerminationFee | decimal number |
None. |
|
| EtfReducedByFeeMonthly | decimal number |
None. |
|
| ContractStatus | string |
None. |
|
| ErrorMessage | string |
None. |
|
| EnableBundleDiscount | boolean |
None. |
|
| HsdPromotion | string |
None. |
|
| HsdPromotionCode | string |
None. |
|
| PhonePromotion | string |
None. |
|
| PhonePromotionCode | string |
None. |
|
| VideoPromotion | string |
None. |
|
| VideoPromotionCode | string |
None. |
|
| HsdProduct | string |
None. |
|
| VideoProduct | string |
None. |
|
| PhoneProduct | string |
None. |
|
| OperatingCenter | string |
None. |
|
| SalesReason | string |
None. |
|
| TopLevelOfferName | string |
None. |
|
| IsComplete | boolean |
None. |
|
| HasErrors | boolean |
None. |
|
| Errors | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"contractId": 2,
"contractCode": "sample string 3",
"contractName": "sample string 4",
"contractMonth": "sample string 5",
"contractTemplate": "sample string 6",
"contractFee": 7.0,
"regularFee": 8.0,
"earlyTerminationFee": 9.0,
"etfReducedByFeeMonthly": 10.0,
"contractStatus": "sample string 11",
"errorMessage": "sample string 12",
"enableBundleDiscount": true,
"hsdPromotion": "sample string 14",
"hsdPromotionCode": "sample string 15",
"phonePromotion": "sample string 16",
"phonePromotionCode": "sample string 17",
"videoPromotion": "sample string 18",
"videoPromotionCode": "sample string 19",
"hsdProduct": "sample string 20",
"videoProduct": "sample string 21",
"phoneProduct": "sample string 22",
"operatingCenter": "sample string 23",
"salesReason": "sample string 24",
"topLevelOfferName": "sample string 25",
"isComplete": true,
"hasErrors": true,
"errors": [
"sample string 1",
"sample string 2"
]
}
text/html
Sample:
{"id":1,"contractId":2,"contractCode":"sample string 3","contractName":"sample string 4","contractMonth":"sample string 5","contractTemplate":"sample string 6","contractFee":7.0,"regularFee":8.0,"earlyTerminationFee":9.0,"etfReducedByFeeMonthly":10.0,"contractStatus":"sample string 11","errorMessage":"sample string 12","enableBundleDiscount":true,"hsdPromotion":"sample string 14","hsdPromotionCode":"sample string 15","phonePromotion":"sample string 16","phonePromotionCode":"sample string 17","videoPromotion":"sample string 18","videoPromotionCode":"sample string 19","hsdProduct":"sample string 20","videoProduct":"sample string 21","phoneProduct":"sample string 22","operatingCenter":"sample string 23","salesReason":"sample string 24","topLevelOfferName":"sample string 25","isComplete":true,"hasErrors":true,"errors":["sample string 1","sample string 2"]}
application/xml, text/xml
Sample:
<ContractsInfo 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>
<ContractCode>sample string 3</ContractCode>
<ContractFee>7</ContractFee>
<ContractId>2</ContractId>
<ContractMonth>sample string 5</ContractMonth>
<ContractName>sample string 4</ContractName>
<ContractStatus>sample string 11</ContractStatus>
<ContractTemplate>sample string 6</ContractTemplate>
<EarlyTerminationFee>9</EarlyTerminationFee>
<EnableBundleDiscount>true</EnableBundleDiscount>
<ErrorMessage>sample string 12</ErrorMessage>
<EtfReducedByFeeMonthly>10</EtfReducedByFeeMonthly>
<HsdProduct>sample string 20</HsdProduct>
<HsdPromotion>sample string 14</HsdPromotion>
<HsdPromotionCode>sample string 15</HsdPromotionCode>
<Id>1</Id>
<OperatingCenter>sample string 23</OperatingCenter>
<PhoneProduct>sample string 22</PhoneProduct>
<PhonePromotion>sample string 16</PhonePromotion>
<PhonePromotionCode>sample string 17</PhonePromotionCode>
<RegularFee>8</RegularFee>
<SalesReason>sample string 24</SalesReason>
<TopLevelOfferName>sample string 25</TopLevelOfferName>
<VideoProduct>sample string 21</VideoProduct>
<VideoPromotion>sample string 18</VideoPromotion>
<VideoPromotionCode>sample string 19</VideoPromotionCode>
</ContractsInfo>
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>