POST DealSheet/calculate
Return calculated payments for a given EntityID.
Request Information
URI Parameters
None.
Body Parameters
CalculateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| entityId |
GUID that uniquely identifies the Entity |
globally unique identifier |
None. |
| trimId |
User's account password |
integer |
None. |
| calculationType |
Calculation Type |
integer |
None. |
| stockNo |
Stock number |
string |
None. |
| token |
API access token |
globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{
"entityId": "6876085f-dcd2-45de-a0bc-3c7002c64663",
"trimId": 2,
"calculationType": 3,
"stockNo": "sample string 4",
"token": "a3009bd0-b3e2-411b-96ac-f90c313c468d"
}
application/xml, text/xml
Sample:
<CalculateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.DealSheet"> <token xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models">a3009bd0-b3e2-411b-96ac-f90c313c468d</token> <calculationType>3</calculationType> <entityId>6876085f-dcd2-45de-a0bc-3c7002c64663</entityId> <stockNo>sample string 4</stockNo> <trimId>2</trimId> </CalculateRequest>
Response Information
Resource Description
PaymentsList| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
API result code |
integer |
None. |
| error |
API error message |
string |
None. |
| Price | integer |
None. |
|
| Payments | Collection of Payment |
None. |
|
| APIVersion |
API Version |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Price": 1,
"Payments": [
{
"SaleTypeID": 1,
"TermID": 2,
"Rate": 3.1,
"Pmt": 4,
"Diff": 5,
"IsOverAllowance": true,
"IsAlert": true,
"IsFlexAlert": true
},
{
"SaleTypeID": 1,
"TermID": 2,
"Rate": 3.1,
"Pmt": 4,
"Diff": 5,
"IsOverAllowance": true,
"IsAlert": true,
"IsFlexAlert": true
}
],
"APIVersion": 2,
"code": 200,
"error": "sample string 1"
}
application/xml, text/xml
Sample:
<PaymentsList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.Mobile">
<APIVersion xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">2</APIVersion>
<error xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">sample string 1</error>
<Payments>
<Payment>
<Diff>5</Diff>
<IsAlert>true</IsAlert>
<IsFlexAlert>true</IsFlexAlert>
<IsOverAllowance>true</IsOverAllowance>
<Pmt>4</Pmt>
<Rate>3.1</Rate>
<SaleTypeID>1</SaleTypeID>
<TermID>2</TermID>
</Payment>
<Payment>
<Diff>5</Diff>
<IsAlert>true</IsAlert>
<IsFlexAlert>true</IsFlexAlert>
<IsOverAllowance>true</IsOverAllowance>
<Pmt>4</Pmt>
<Rate>3.1</Rate>
<SaleTypeID>1</SaleTypeID>
<TermID>2</TermID>
</Payment>
</Payments>
<Price>1</Price>
</PaymentsList>