POST api/Brokerage/FinanceCalculator/QuoteEmail
Insert quote email in the database and send it to the specified email address
Request Information
URI Parameters
None.
Body Parameters
QuoteEmailViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | globally unique identifier |
Required |
|
| BrokerageId | globally unique identifier |
Required |
|
| Amount | decimal number |
Required |
|
| Name | string |
Required |
|
| string |
Required Max length: 100 |
||
| ConfirmEmail | string |
Required Max length: 100 |
|
| Phone | string |
Required |
|
| PostPreference | boolean |
None. |
|
| EmailPreference | boolean |
None. |
|
| SMSPreferences | boolean |
None. |
|
| TelephonePreferences | boolean |
None. |
|
| ApplyUrl | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"ProductId": "033d796b-7e34-4711-83ff-2ca30db06316",
"BrokerageId": "5b567c79-2173-464c-b1fd-00fb7fa60969",
"Amount": 3.0,
"Name": "sample string 4",
"Email": "sample string 5",
"ConfirmEmail": "sample string 6",
"Phone": "sample string 7",
"PostPreference": true,
"EmailPreference": true,
"SMSPreferences": true,
"TelephonePreferences": true,
"ApplyUrl": "sample string 12"
}
text/html
Sample:
{"ProductId":"033d796b-7e34-4711-83ff-2ca30db06316","BrokerageId":"5b567c79-2173-464c-b1fd-00fb7fa60969","Amount":3.0,"Name":"sample string 4","Email":"sample string 5","ConfirmEmail":"sample string 6","Phone":"sample string 7","PostPreference":true,"EmailPreference":true,"SMSPreferences":true,"TelephonePreferences":true,"ApplyUrl":"sample string 12"}
application/xml, text/xml
Sample:
<QuoteEmailViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmniPort.ViewModel"> <Amount>3</Amount> <ApplyUrl>sample string 12</ApplyUrl> <BrokerageId>5b567c79-2173-464c-b1fd-00fb7fa60969</BrokerageId> <ConfirmEmail>sample string 6</ConfirmEmail> <Email>sample string 5</Email> <EmailPreference>true</EmailPreference> <Name>sample string 4</Name> <Phone>sample string 7</Phone> <PostPreference>true</PostPreference> <ProductId>033d796b-7e34-4711-83ff-2ca30db06316</ProductId> <SMSPreferences>true</SMSPreferences> <TelephonePreferences>true</TelephonePreferences> </QuoteEmailViewModel>
Response Information
Resource Description
If ModelState.IsValid == false then returns BadRequest (An System.Web.Http.Results.InvalidModelStateResult with the specified model state.)
OkResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Request | HttpRequestMessage |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.