POST api/WebOrder/AccountInfo/Save?id={id}&hash={hash}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
Required |
|
hash | string |
Required |
Body Parameters
AccountInfoName | Description | Type | Additional information |
---|---|---|---|
Title | string |
None. |
|
FName | string |
None. |
|
LName | string |
None. |
|
Last4ssn | string |
None. |
|
InCollection | boolean |
None. |
|
EmailAddress | string |
None. |
|
Primary | Contact |
None. |
|
Alternative | Contact |
None. |
|
AuthorizedUsers | Collection of ServiceUser |
None. |
|
ServiceLocation | ServiceLocation |
None. |
|
IsComplete | boolean |
None. |
|
HasErrors | boolean |
None. |
|
Errors | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "title": "sample string 1", "fName": "sample string 2", "lName": "sample string 3", "last4ssn": "sample string 4", "inCollection": true, "emailAddress": "sample string 5", "primary": { "number": "sample string 1", "type": "sample string 2" }, "alternative": { "number": "sample string 1", "type": "sample string 2" }, "authorizedUsers": [ { "accountInfoId": 1, "title": "sample string 2", "firstName": "sample string 3", "lastName": "sample string 4" }, { "accountInfoId": 1, "title": "sample string 2", "firstName": "sample string 3", "lastName": "sample string 4" } ], "serviceLocation": 0, "isComplete": true, "hasErrors": true, "errors": [ "sample string 1", "sample string 2" ] }
text/html
Sample:
{"title":"sample string 1","fName":"sample string 2","lName":"sample string 3","last4ssn":"sample string 4","inCollection":true,"emailAddress":"sample string 5","primary":{"number":"sample string 1","type":"sample string 2"},"alternative":{"number":"sample string 1","type":"sample string 2"},"authorizedUsers":[{"accountInfoId":1,"title":"sample string 2","firstName":"sample string 3","lastName":"sample string 4"},{"accountInfoId":1,"title":"sample string 2","firstName":"sample string 3","lastName":"sample string 4"}],"serviceLocation":0,"isComplete":true,"hasErrors":true,"errors":["sample string 1","sample string 2"]}
application/xml, text/xml
Sample:
<AccountInfo 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> <Alternative> <Number>sample string 1</Number> <Type>sample string 2</Type> </Alternative> <AuthorizedUsers> <ServiceUser> <AccountInfoId>1</AccountInfoId> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <Title>sample string 2</Title> </ServiceUser> <ServiceUser> <AccountInfoId>1</AccountInfoId> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <Title>sample string 2</Title> </ServiceUser> </AuthorizedUsers> <EmailAddress>sample string 5</EmailAddress> <FName>sample string 2</FName> <InCollection>true</InCollection> <LName>sample string 3</LName> <Last4ssn>sample string 4</Last4ssn> <Primary> <Number>sample string 1</Number> <Type>sample string 2</Type> </Primary> <ServiceLocation>Own</ServiceLocation> <Title>sample string 1</Title> </AccountInfo>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
JsonResponseResultName | 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>