POST api/ApplyOnline/SubmitMortgage
Request Information
URI Parameters
None.
Body Parameters
MortgageModel| Name | Description | Type | Additional information |
|---|---|---|---|
| applyID | string |
None. |
|
| applyType | ApplyTypes |
None. |
|
| banks | Collection of MortgageBank |
None. |
|
| languageType | CmsLanguage |
None. |
Request Formats
application/json, text/json
Sample:
{
"applyID": "sample string 1",
"applyType": 0,
"banks": [
"ChinaBank",
"ChinaBank"
],
"languageType": 0
}
text/xml
Sample:
<MortgageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CentaMortgageWebAPI.Models">
<ApplyID>sample string 1</ApplyID>
<ApplyType>Mortgage</ApplyType>
<Banks>
<MortgageBank>ChinaBank</MortgageBank>
<MortgageBank>ChinaBank</MortgageBank>
</Banks>
<LanguageType>TC</LanguageType>
</MortgageModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MortgageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ChinaBankRedirectUrl | string |
None. |
|
| ResponseCode | ResponseCode |
None. |
|
| AlertMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ChinaBankRedirectUrl": "sample string 1",
"ResponseCode": 1,
"AlertMessage": "sample string 2"
}
text/xml
Sample:
<MortgageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CentaMortgageWebAPI.Models"> <AlertMessage>sample string 2</AlertMessage> <ResponseCode>Success</ResponseCode> <ChinaBankRedirectUrl>sample string 1</ChinaBankRedirectUrl> </MortgageResponse>