POST api/ApplyOnline/SubmitMortgage

Request Information

URI Parameters

None.

Body Parameters

MortgageModel
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MortgageModel'.

Response Information

Resource Description

MortgageResponse
NameDescriptionTypeAdditional 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>