POST api/LoanApplication/AlternativeFinanceOffer

Complete alternative finance offer

Request Information

URI Parameters

None.

Body Parameters

CompleteAlternativeFinanceOfferModel
NameDescriptionTypeAdditional information
LoanApplicationId

globally unique identifier

None.

ReturnDocumentsForSign

ReturnDocumentsEnum

None.

CustomerResponse

CompleteFinanceOfferCustomerResponseEnum

None.

Request Formats

application/json, text/json

Sample:
{
  "LoanApplicationId": "ab49c13c-5147-4568-9541-a2dcde63ec89",
  "ReturnDocumentsForSign": 1,
  "CustomerResponse": 1
}

text/html

Sample:
{"LoanApplicationId":"ab49c13c-5147-4568-9541-a2dcde63ec89","ReturnDocumentsForSign":1,"CustomerResponse":1}

application/xml, text/xml

Sample:
<CompleteAlternativeFinanceOfferModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.APIRequests.CreditCheckRequestModels">
  <CustomerResponse>Accept</CustomerResponse>
  <LoanApplicationId>ab49c13c-5147-4568-9541-a2dcde63ec89</LoanApplicationId>
  <ReturnDocumentsForSign>NoDocuments</ReturnDocumentsForSign>
</CompleteAlternativeFinanceOfferModel>

Response Information

Resource Description

Possible error responses: 1. Invalid loan application id - {"LoanApplicationId": "4ac9648d-02e0-444c-b858-600baa85425c", "ErrorMessage": "The loanApplicationId parameter is not valid. Please provide a valid loanApplicationId parameter."} 2. Empty loan application id - {"LoanApplicationId": "", "ErrorMessage": "The loanApplicationId parameter is empty. Please provide a valid loanApplicationId parameter."} 3. Invalid user - {"LoanApplicationId": "", "ErrorMessage": "The retailer account status is Pending. This action can only be performed on a Live account, please contact your account manager for further assistance."}

UpdateCustomerBankDetailsResponse
NameDescriptionTypeAdditional information
LoanApplicationId

globally unique identifier

None.

CreditCheckId

globally unique identifier

None.

Status

string

None.

StatusNumber

integer

None.

Documents

Dictionary of string [key] and string [value]

None.

DocumentsFormat

DocumentFormatEnum

None.

SignDocumentsUrl

string

None.

LoanReferenceNumber

string

None.

CreditCheckStatus

string

None.

CreditCheckStatusNumber

integer

None.

Info

string

None.

UpperAmendValue

decimal number

None.

InitialFinanceOfferDetails

FinanceOfferDetails

None.

NewFinanceOfferDetails

FinanceOfferDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "LoanApplicationId": "202183a0-252e-4fb4-ae8e-c8bc21ef5f14",
  "CreditCheckId": "40d3f2d7-0fe5-415e-858f-55a14646d70c",
  "Status": "sample string 2",
  "StatusNumber": 3,
  "Documents": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "DocumentsFormat": 1,
  "SignDocumentsUrl": "sample string 4",
  "LoanReferenceNumber": "sample string 5",
  "CreditCheckStatus": "sample string 6",
  "CreditCheckStatusNumber": 7,
  "Info": "sample string 8",
  "UpperAmendValue": 1.0,
  "InitialFinanceOfferDetails": {
    "FirstPayment": 1.0,
    "MonthlyPayment": 2.0,
    "MonthlyInterestRate": 3.1,
    "APR": 4.1,
    "TotalInterestPayable": 5.0,
    "ProductCode": "sample string 6"
  },
  "NewFinanceOfferDetails": {
    "FirstPayment": 1.0,
    "MonthlyPayment": 2.0,
    "MonthlyInterestRate": 3.1,
    "APR": 4.1,
    "TotalInterestPayable": 5.0,
    "ProductCode": "sample string 6"
  }
}

text/html

Sample:
{"LoanApplicationId":"202183a0-252e-4fb4-ae8e-c8bc21ef5f14","CreditCheckId":"40d3f2d7-0fe5-415e-858f-55a14646d70c","Status":"sample string 2","StatusNumber":3,"Documents":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"DocumentsFormat":1,"SignDocumentsUrl":"sample string 4","LoanReferenceNumber":"sample string 5","CreditCheckStatus":"sample string 6","CreditCheckStatusNumber":7,"Info":"sample string 8","UpperAmendValue":1.0,"InitialFinanceOfferDetails":{"FirstPayment":1.0,"MonthlyPayment":2.0,"MonthlyInterestRate":3.1,"APR":4.1,"TotalInterestPayable":5.0,"ProductCode":"sample string 6"},"NewFinanceOfferDetails":{"FirstPayment":1.0,"MonthlyPayment":2.0,"MonthlyInterestRate":3.1,"APR":4.1,"TotalInterestPayable":5.0,"ProductCode":"sample string 6"}}

application/xml, text/xml

Sample:
<UpdateCustomerBankDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.APIResponses.CreditCheckResponses">
  <CreditCheckId>40d3f2d7-0fe5-415e-858f-55a14646d70c</CreditCheckId>
  <CreditCheckStatus>sample string 6</CreditCheckStatus>
  <CreditCheckStatusNumber>7</CreditCheckStatusNumber>
  <Documents xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Documents>
  <DocumentsFormat>PDF</DocumentsFormat>
  <Info>sample string 8</Info>
  <InitialFinanceOfferDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels">
    <d2p1:APR>4.1</d2p1:APR>
    <d2p1:FirstPayment>1</d2p1:FirstPayment>
    <d2p1:MonthlyInterestRate>3.1</d2p1:MonthlyInterestRate>
    <d2p1:MonthlyPayment>2</d2p1:MonthlyPayment>
    <d2p1:ProductCode>sample string 6</d2p1:ProductCode>
    <d2p1:TotalInterestPayable>5</d2p1:TotalInterestPayable>
  </InitialFinanceOfferDetails>
  <LoanApplicationId>202183a0-252e-4fb4-ae8e-c8bc21ef5f14</LoanApplicationId>
  <LoanReferenceNumber>sample string 5</LoanReferenceNumber>
  <NewFinanceOfferDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels">
    <d2p1:APR>4.1</d2p1:APR>
    <d2p1:FirstPayment>1</d2p1:FirstPayment>
    <d2p1:MonthlyInterestRate>3.1</d2p1:MonthlyInterestRate>
    <d2p1:MonthlyPayment>2</d2p1:MonthlyPayment>
    <d2p1:ProductCode>sample string 6</d2p1:ProductCode>
    <d2p1:TotalInterestPayable>5</d2p1:TotalInterestPayable>
  </NewFinanceOfferDetails>
  <SignDocumentsUrl>sample string 4</SignDocumentsUrl>
  <Status>sample string 2</Status>
  <StatusNumber>3</StatusNumber>
  <UpperAmendValue>1</UpperAmendValue>
</UpdateCustomerBankDetailsResponse>