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
QuoteEmailViewModelName | 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": "2f6ed13e-65bd-435c-9e0b-714f31043bc3", "BrokerageId": "c714c586-69eb-4908-b289-567fc6e18dde", "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":"2f6ed13e-65bd-435c-9e0b-714f31043bc3","BrokerageId":"c714c586-69eb-4908-b289-567fc6e18dde","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>c714c586-69eb-4908-b289-567fc6e18dde</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>2f6ed13e-65bd-435c-9e0b-714f31043bc3</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.)
OkResultName | Description | Type | Additional information |
---|---|---|---|
Request | HttpRequestMessage |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.