GET api/payment/model/{quoteNumber}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
quoteNumber | string |
Required |
Body Parameters
None.
Response Information
Resource Description
PaymentViewModelName | Description | Type | Additional information |
---|---|---|---|
QuoteNumber | string |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
EmailAddress | string |
None. |
|
PhoneNumber | string |
None. |
|
ChargedPremium | decimal number |
None. |
|
PaymentId | integer |
None. |
|
LocationAddress | AddressViewModel |
None. |
|
MailingAddress | AddressViewModel |
None. |
|
BillingAddress | AddressViewModel |
None. |
|
MailingIsSameAsLocationAddress | boolean |
None. |
|
BillingIsSameAsMailingAddress | boolean |
None. |
|
Countries | Collection of Country |
None. |
|
EligibleForAutoPay | boolean |
None. |
|
EnrollInAutoPay | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "QuoteNumber": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "EmailAddress": "sample string 4", "PhoneNumber": "sample string 5", "ChargedPremium": 6.0, "PaymentId": 7, "LocationAddress": { "$type": "CoverSmart.Models.AddressViewModel, CoverSmart", "StreetAddress": "sample string 1", "StreetAddress2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "ZipCode": "sample string 5", "CountryId": "sample string 6" }, "MailingAddress": { "$type": "CoverSmart.Models.AddressViewModel, CoverSmart", "StreetAddress": "sample string 1", "StreetAddress2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "ZipCode": "sample string 5", "CountryId": "sample string 6" }, "BillingAddress": { "$type": "CoverSmart.Models.AddressViewModel, CoverSmart", "StreetAddress": "sample string 1", "StreetAddress2": "sample string 2", "City": "sample string 3", "State": "sample string 4", "ZipCode": "sample string 5", "CountryId": "sample string 6" }, "MailingIsSameAsLocationAddress": true, "BillingIsSameAsMailingAddress": true, "Countries": [ { "$type": "USLI.PolicyManagement.Core.Country, USLI.PolicyManagement.Core", "Id": 1, "AreaId": 1, "AddressFormat": 0, "PostalCodeFormat": 0, "Name": "sample string 2", "Code": "sample string 3" }, { "$type": "USLI.PolicyManagement.Core.Country, USLI.PolicyManagement.Core", "Id": 1, "AreaId": 1, "AddressFormat": 0, "PostalCodeFormat": 0, "Name": "sample string 2", "Code": "sample string 3" } ], "EligibleForAutoPay": true, "EnrollInAutoPay": true }
application/xml, text/xml
Sample:
<PaymentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CoverSmart.Models"> <BillingAddress> <City>sample string 3</City> <CountryId>sample string 6</CountryId> <State>sample string 4</State> <StreetAddress>sample string 1</StreetAddress> <StreetAddress2>sample string 2</StreetAddress2> <ZipCode>sample string 5</ZipCode> </BillingAddress> <BillingIsSameAsMailingAddress>true</BillingIsSameAsMailingAddress> <ChargedPremium>6</ChargedPremium> <Countries xmlns:d2p1="http://schemas.datacontract.org/2004/07/USLI.PolicyManagement.Core"> <d2p1:Country> <d2p1:AreaId>1</d2p1:AreaId> <d2p1:Code>sample string 3</d2p1:Code> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:AddressFormat>Unknown</d2p1:AddressFormat> <d2p1:Id>1</d2p1:Id> <d2p1:PostalCodeFormat>Unknown</d2p1:PostalCodeFormat> </d2p1:Country> <d2p1:Country> <d2p1:AreaId>1</d2p1:AreaId> <d2p1:Code>sample string 3</d2p1:Code> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:AddressFormat>Unknown</d2p1:AddressFormat> <d2p1:Id>1</d2p1:Id> <d2p1:PostalCodeFormat>Unknown</d2p1:PostalCodeFormat> </d2p1:Country> </Countries> <EligibleForAutoPay>true</EligibleForAutoPay> <EmailAddress>sample string 4</EmailAddress> <EnrollInAutoPay>true</EnrollInAutoPay> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <LocationAddress> <City>sample string 3</City> <CountryId>sample string 6</CountryId> <State>sample string 4</State> <StreetAddress>sample string 1</StreetAddress> <StreetAddress2>sample string 2</StreetAddress2> <ZipCode>sample string 5</ZipCode> </LocationAddress> <MailingAddress> <City>sample string 3</City> <CountryId>sample string 6</CountryId> <State>sample string 4</State> <StreetAddress>sample string 1</StreetAddress> <StreetAddress2>sample string 2</StreetAddress2> <ZipCode>sample string 5</ZipCode> </MailingAddress> <MailingIsSameAsLocationAddress>true</MailingIsSameAsLocationAddress> <PaymentId>7</PaymentId> <PhoneNumber>sample string 5</PhoneNumber> <QuoteNumber>sample string 1</QuoteNumber> </PaymentViewModel>