POST api/quotes/commissionbreakdown
Gets a commission breakdown. Tiers may be left blank to obtain full suite. If values are supplied but none are valid, a representative calculation will be used.
Request Information
URI Parameters
None.
Body Parameters
ERP.Domain.Common.Quote.CommissionRequestName | Description | Type | Additional information |
---|---|---|---|
Terms | ERP.Domain.Common.Quote.CommissionTerms |
None. |
|
DealerBand | ERP.Domain.Common.Quote.Commission.DealerBand |
None. |
|
Tiers | Collection of ERP.Domain.Common.Quote.Commission.LenderTier |
None. |
Request Formats
application/json, text/json
Sample:
{ "terms": { "apr": 1.1, "flatRatePercent": 2.1, "totalRepayments": 3, "loanAmount": 4.0 }, "dealerBand": "Standard", "tiers": [ { "lenderId": 1, "tier": 2 }, { "lenderId": 1, "tier": 2 } ] }
application/xml, text/xml
Sample:
<CommissionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Domain.Common.Quote"> <DealerBand>Standard</DealerBand> <Terms> <APR>1.1</APR> <FlatRatePercent>2.1</FlatRatePercent> <LoanAmount>4</LoanAmount> <TotalRepayments>3</TotalRepayments> </Terms> <Tiers xmlns:d2p1="http://schemas.datacontract.org/2004/07/ERP.Domain.Common.Quote.Commission"> <d2p1:LenderTier> <d2p1:LenderId>1</d2p1:LenderId> <d2p1:Tier>2</d2p1:Tier> </d2p1:LenderTier> <d2p1:LenderTier> <d2p1:LenderId>1</d2p1:LenderId> <d2p1:Tier>2</d2p1:Tier> </d2p1:LenderTier> </Tiers> </CommissionRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of ERP.Domain.Common.Quote.Commission.LenderCommissionResultName | Description | Type | Additional information |
---|---|---|---|
LenderTier | ERP.Domain.Common.Quote.Commission.LenderTier |
None. |
|
TotalValue | decimal number |
None. |
|
DealerCut | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "lenderTier": { "lenderId": 1, "tier": 2 }, "totalValue": 1.0, "dealerCut": 1.0 }, { "lenderTier": { "lenderId": 1, "tier": 2 }, "totalValue": 1.0, "dealerCut": 1.0 } ]
application/xml, text/xml
Sample:
<ArrayOfLenderCommissionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Domain.Common.Quote.Commission"> <LenderCommissionResult> <DealerCut>1</DealerCut> <LenderTier> <LenderId>1</LenderId> <Tier>2</Tier> </LenderTier> <TotalValue>1</TotalValue> </LenderCommissionResult> <LenderCommissionResult> <DealerCut>1</DealerCut> <LenderTier> <LenderId>1</LenderId> <Tier>2</Tier> </LenderTier> <TotalValue>1</TotalValue> </LenderCommissionResult> </ArrayOfLenderCommissionResult>