POST api/Retailer/CreditCheck
Create a new credit check
Request Information
URI Parameters
None.
Body Parameters
CreditCheckRequestModelName | Description | Type | Additional information |
---|---|---|---|
FinanceDetails |
This model should be used to populate all the finance details requested by the system to create a Credit Check. |
FinanceDetailsModel |
None. |
CustomerDetails | CustomerInfoModel |
None. |
|
EmploymentDetails | EmploymentInfoModel |
None. |
|
BankDetails | BankDetailsModel |
None. |
|
SuppressCustomerEmails | boolean |
None. |
|
IpAddress | string |
None. |
|
Source | string |
None. |
|
MarketingPreferences | MarketingPreferencesModel |
None. |
|
AcceptAllTermsAndConditions | boolean |
None. |
|
CustomerRedirectURL | string |
None. |
|
ReturnDocumentsForSign |
This model should be used to specify whether you want the documents or just the signing link or neither. |
ReturnDocumentsEnum |
None. |
Request Formats
application/json, text/json
{ "FinanceDetails": { "RateCardProductId": "948479dc-e8b5-4b75-afc2-71e0385e20a9", "RateCardProductCode": "sample string 1", "DescriptionOfGoods": "sample string 2", "RetailersReference": "sample string 3", "Price": 1.0, "Deposit": 1.0 }, "CustomerDetails": { "MiddleName": "sample string 1", "MaidenName": "sample string 2", "BlackBoxString": "sample string 3", "TitleId": "19ecf5a0-6a17-43af-8ef0-be357b3b831f", "GenderId": "096fb7fa-ad38-49ab-b85d-ddeee97443c6", "MaritalStatusId": "e325526b-ccb3-4523-8d99-1b04f5309383", "ResidentialStatusId": "e785edd9-326c-414a-9594-092afc172d0f", "NumberOfDependants": 1, "Vulnerability": true, "CurrentAddress": { "YearsAtAddressId": "4e85afa6-b417-4983-a9f3-fd0d123f2a7b", "PostCode": "sample string 1", "City": "sample string 2", "Flat": "sample string 3", "HouseNumber": "sample string 4", "HouseName": "sample string 5", "Street": "sample string 6" }, "PreviousAddress1": { "YearsAtAddressId": "4e85afa6-b417-4983-a9f3-fd0d123f2a7b", "PostCode": "sample string 1", "City": "sample string 2", "Flat": "sample string 3", "HouseNumber": "sample string 4", "HouseName": "sample string 5", "Street": "sample string 6" }, "PreviousAddress2": { "YearsAtAddressId": "4e85afa6-b417-4983-a9f3-fd0d123f2a7b", "PostCode": "sample string 1", "City": "sample string 2", "Flat": "sample string 3", "HouseNumber": "sample string 4", "HouseName": "sample string 5", "Street": "sample string 6" }, "GoodsDeliveryAddress": { "YearsAtAddressId": "4e85afa6-b417-4983-a9f3-fd0d123f2a7b", "PostCode": "sample string 1", "City": "sample string 2", "Flat": "sample string 3", "HouseNumber": "sample string 4", "HouseName": "sample string 5", "Street": "sample string 6" }, "CustomerEmail": "sample string 5", "FirstName": "sample string 6", "LastName": "sample string 7", "Telephone": "sample string 8", "MobileNumber": "sample string 9", "DateOfBirth": "2025-05-12T10:23:21.4351871+01:00", "MonthlyRentAmount": 1.0, "GoodsDeliveryAddressIsTheSameAsCurrentAddress": true }, "EmploymentDetails": { "EmploymentStatusId": "a188f17d-7273-4362-94ef-e0c4af5e9e56", "YearsSelfEmployedId": "ffcfdb6f-42e0-4cc3-afe8-5cc59c52b647", "YearsWithEmployerId": "58cc8d73-f979-46bb-9739-6fa432720486", "SourceOfIncomeId": "43e9c7a9-3bce-4f63-9f0b-d8e74c00e5a8", "TypeOfBusiness": "sample string 1", "BusinessName": "sample string 2", "MainOccupation": "sample string 3", "EmployerName": "sample string 4", "GrossAnnualIncome": 1.0, "HouseholdAnnualIncome": 1 }, "BankDetails": { "BankAccountNumber": "sample string 1", "BankSortCode": "sample string 2" }, "SuppressCustomerEmails": true, "IpAddress": "sample string 2", "Source": "sample string 3", "MarketingPreferences": { "ReceiveInformationViaPost": true, "ReceiveInformationViaEmail": true, "ReceiveInformationViaSMS": true, "ReceiveInformationViaPhone": true, "AgreePersonalDetailsToBeDisclosed": true }, "AcceptAllTermsAndConditions": true, "CustomerRedirectURL": "sample string 4", "ReturnDocumentsForSign": 1 }
text/html
{"FinanceDetails":{"RateCardProductId":"948479dc-e8b5-4b75-afc2-71e0385e20a9","RateCardProductCode":"sample string 1","DescriptionOfGoods":"sample string 2","RetailersReference":"sample string 3","Price":1.0,"Deposit":1.0},"CustomerDetails":{"MiddleName":"sample string 1","MaidenName":"sample string 2","BlackBoxString":"sample string 3","TitleId":"19ecf5a0-6a17-43af-8ef0-be357b3b831f","GenderId":"096fb7fa-ad38-49ab-b85d-ddeee97443c6","MaritalStatusId":"e325526b-ccb3-4523-8d99-1b04f5309383","ResidentialStatusId":"e785edd9-326c-414a-9594-092afc172d0f","NumberOfDependants":1,"Vulnerability":true,"CurrentAddress":{"YearsAtAddressId":"4e85afa6-b417-4983-a9f3-fd0d123f2a7b","PostCode":"sample string 1","City":"sample string 2","Flat":"sample string 3","HouseNumber":"sample string 4","HouseName":"sample string 5","Street":"sample string 6"},"PreviousAddress1":{"YearsAtAddressId":"4e85afa6-b417-4983-a9f3-fd0d123f2a7b","PostCode":"sample string 1","City":"sample string 2","Flat":"sample string 3","HouseNumber":"sample string 4","HouseName":"sample string 5","Street":"sample string 6"},"PreviousAddress2":{"YearsAtAddressId":"4e85afa6-b417-4983-a9f3-fd0d123f2a7b","PostCode":"sample string 1","City":"sample string 2","Flat":"sample string 3","HouseNumber":"sample string 4","HouseName":"sample string 5","Street":"sample string 6"},"GoodsDeliveryAddress":{"YearsAtAddressId":"4e85afa6-b417-4983-a9f3-fd0d123f2a7b","PostCode":"sample string 1","City":"sample string 2","Flat":"sample string 3","HouseNumber":"sample string 4","HouseName":"sample string 5","Street":"sample string 6"},"CustomerEmail":"sample string 5","FirstName":"sample string 6","LastName":"sample string 7","Telephone":"sample string 8","MobileNumber":"sample string 9","DateOfBirth":"2025-05-12T10:23:21.4351871+01:00","MonthlyRentAmount":1.0,"GoodsDeliveryAddressIsTheSameAsCurrentAddress":true},"EmploymentDetails":{"EmploymentStatusId":"a188f17d-7273-4362-94ef-e0c4af5e9e56","YearsSelfEmployedId":"ffcfdb6f-42e0-4cc3-afe8-5cc59c52b647","YearsWithEmployerId":"58cc8d73-f979-46bb-9739-6fa432720486","SourceOfIncomeId":"43e9c7a9-3bce-4f63-9f0b-d8e74c00e5a8","TypeOfBusiness":"sample string 1","BusinessName":"sample string 2","MainOccupation":"sample string 3","EmployerName":"sample string 4","GrossAnnualIncome":1.0,"HouseholdAnnualIncome":1},"BankDetails":{"BankAccountNumber":"sample string 1","BankSortCode":"sample string 2"},"SuppressCustomerEmails":true,"IpAddress":"sample string 2","Source":"sample string 3","MarketingPreferences":{"ReceiveInformationViaPost":true,"ReceiveInformationViaEmail":true,"ReceiveInformationViaSMS":true,"ReceiveInformationViaPhone":true,"AgreePersonalDetailsToBeDisclosed":true},"AcceptAllTermsAndConditions":true,"CustomerRedirectURL":"sample string 4","ReturnDocumentsForSign":1}
application/xml, text/xml
<CreditCheckRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.APIRequests.CreditCheckRequestModels"> <AcceptAllTermsAndConditions xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels">true</AcceptAllTermsAndConditions> <CustomerRedirectURL xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels">sample string 4</CustomerRedirectURL> <MarketingPreferences xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels"> <AgreePersonalDetailsToBeDisclosed>true</AgreePersonalDetailsToBeDisclosed> <ReceiveInformationViaEmail>true</ReceiveInformationViaEmail> <ReceiveInformationViaPhone>true</ReceiveInformationViaPhone> <ReceiveInformationViaPost>true</ReceiveInformationViaPost> <ReceiveInformationViaSMS>true</ReceiveInformationViaSMS> </MarketingPreferences> <ReturnDocumentsForSign xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels">NoDocuments</ReturnDocumentsForSign> <BankDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels"> <d2p1:BankAccountNumber>sample string 1</d2p1:BankAccountNumber> <d2p1:BankSortCode>sample string 2</d2p1:BankSortCode> </BankDetails> <CustomerDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels"> <d2p1:CustomerEmail>sample string 5</d2p1:CustomerEmail> <d2p1:DateOfBirth>2025-05-12T10:23:21.4351871+01:00</d2p1:DateOfBirth> <d2p1:FirstName>sample string 6</d2p1:FirstName> <d2p1:GoodsDeliveryAddressIsTheSameAsCurrentAddress>true</d2p1:GoodsDeliveryAddressIsTheSameAsCurrentAddress> <d2p1:LastName>sample string 7</d2p1:LastName> <d2p1:MobileNumber>sample string 9</d2p1:MobileNumber> <d2p1:MonthlyRentAmount>1</d2p1:MonthlyRentAmount> <d2p1:Telephone>sample string 8</d2p1:Telephone> <d2p1:BlackBoxString>sample string 3</d2p1:BlackBoxString> <d2p1:CurrentAddress> <d2p1:City>sample string 2</d2p1:City> <d2p1:Flat>sample string 3</d2p1:Flat> <d2p1:HouseName>sample string 5</d2p1:HouseName> <d2p1:HouseNumber>sample string 4</d2p1:HouseNumber> <d2p1:PostCode>sample string 1</d2p1:PostCode> <d2p1:Street>sample string 6</d2p1:Street> <d2p1:YearsAtAddressId>4e85afa6-b417-4983-a9f3-fd0d123f2a7b</d2p1:YearsAtAddressId> </d2p1:CurrentAddress> <d2p1:GenderId>096fb7fa-ad38-49ab-b85d-ddeee97443c6</d2p1:GenderId> <d2p1:GoodsDeliveryAddress> <d2p1:City>sample string 2</d2p1:City> <d2p1:Flat>sample string 3</d2p1:Flat> <d2p1:HouseName>sample string 5</d2p1:HouseName> <d2p1:HouseNumber>sample string 4</d2p1:HouseNumber> <d2p1:PostCode>sample string 1</d2p1:PostCode> <d2p1:Street>sample string 6</d2p1:Street> <d2p1:YearsAtAddressId>4e85afa6-b417-4983-a9f3-fd0d123f2a7b</d2p1:YearsAtAddressId> </d2p1:GoodsDeliveryAddress> <d2p1:MaidenName>sample string 2</d2p1:MaidenName> <d2p1:MaritalStatusId>e325526b-ccb3-4523-8d99-1b04f5309383</d2p1:MaritalStatusId> <d2p1:MiddleName>sample string 1</d2p1:MiddleName> <d2p1:NumberOfDependants>1</d2p1:NumberOfDependants> <d2p1:PreviousAddress1> <d2p1:City>sample string 2</d2p1:City> <d2p1:Flat>sample string 3</d2p1:Flat> <d2p1:HouseName>sample string 5</d2p1:HouseName> <d2p1:HouseNumber>sample string 4</d2p1:HouseNumber> <d2p1:PostCode>sample string 1</d2p1:PostCode> <d2p1:Street>sample string 6</d2p1:Street> <d2p1:YearsAtAddressId>4e85afa6-b417-4983-a9f3-fd0d123f2a7b</d2p1:YearsAtAddressId> </d2p1:PreviousAddress1> <d2p1:PreviousAddress2> <d2p1:City>sample string 2</d2p1:City> <d2p1:Flat>sample string 3</d2p1:Flat> <d2p1:HouseName>sample string 5</d2p1:HouseName> <d2p1:HouseNumber>sample string 4</d2p1:HouseNumber> <d2p1:PostCode>sample string 1</d2p1:PostCode> <d2p1:Street>sample string 6</d2p1:Street> <d2p1:YearsAtAddressId>4e85afa6-b417-4983-a9f3-fd0d123f2a7b</d2p1:YearsAtAddressId> </d2p1:PreviousAddress2> <d2p1:ResidentialStatusId>e785edd9-326c-414a-9594-092afc172d0f</d2p1:ResidentialStatusId> <d2p1:TitleId>19ecf5a0-6a17-43af-8ef0-be357b3b831f</d2p1:TitleId> <d2p1:Vulnerability>true</d2p1:Vulnerability> </CustomerDetails> <EmploymentDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels"> <d2p1:BusinessName>sample string 2</d2p1:BusinessName> <d2p1:EmployerName>sample string 4</d2p1:EmployerName> <d2p1:GrossAnnualIncome>1</d2p1:GrossAnnualIncome> <d2p1:HouseholdAnnualIncome>1</d2p1:HouseholdAnnualIncome> <d2p1:MainOccupation>sample string 3</d2p1:MainOccupation> <d2p1:TypeOfBusiness>sample string 1</d2p1:TypeOfBusiness> <d2p1:EmploymentStatusId>a188f17d-7273-4362-94ef-e0c4af5e9e56</d2p1:EmploymentStatusId> <d2p1:SourceOfIncomeId>43e9c7a9-3bce-4f63-9f0b-d8e74c00e5a8</d2p1:SourceOfIncomeId> <d2p1:YearsSelfEmployedId>ffcfdb6f-42e0-4cc3-afe8-5cc59c52b647</d2p1:YearsSelfEmployedId> <d2p1:YearsWithEmployerId>58cc8d73-f979-46bb-9739-6fa432720486</d2p1:YearsWithEmployerId> </EmploymentDetails> <FinanceDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.CommonModels"> <d2p1:Deposit>1</d2p1:Deposit> <d2p1:DescriptionOfGoods>sample string 2</d2p1:DescriptionOfGoods> <d2p1:Price>1</d2p1:Price> <d2p1:RetailersReference>sample string 3</d2p1:RetailersReference> <d2p1:RateCardProductCode>sample string 1</d2p1:RateCardProductCode> <d2p1:RateCardProductId>948479dc-e8b5-4b75-afc2-71e0385e20a9</d2p1:RateCardProductId> </FinanceDetails> <IpAddress>sample string 2</IpAddress> <Source>sample string 3</Source> <SuppressCustomerEmails>true</SuppressCustomerEmails> </CreditCheckRequestModel>
Response Information
Resource Description
If the credit check is with status declined there will be no returned documents. Guaranteed Application Results: Each email below leads to different credit check status.For successful testing, the logged retailer user need to have the "TestResultsProduct" in his/her available products.This product must use the "TestResultsCreditPolicty" in order for the API to make decisions based on the different email addresses.The test product can be applied to a retailer by an OCRF user.This product must be chosen when a new credit check is created. For 'accepted' status use ocapital.test1@gmail.com as customer email address. For 'referred' status use ocapital.test2 @gmail.com as customer email address. For 'declined' status use ocapital.test3 @gmail.com as customer email address. Possible error responses: 1. Invalid input fields - {"errors": {"invalidFieldName": ["Error message containing more details about the failure."], "invalidFieldName2": ["Error message containing more details about the failure."]}} 2. Error on validation bank details /Experian/ - {"LoanApplicationId" : "Id", "ErrorMessage" : "Error message from Experian"}
UpdateCustomerBankDetailsResponseName | Description | Type | Additional 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
{ "LoanApplicationId": "3476e626-d8dc-4427-9672-fc8d805c370d", "CreditCheckId": "c9743b1c-e576-488e-be9d-ae348929a66a", "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
{"LoanApplicationId":"3476e626-d8dc-4427-9672-fc8d805c370d","CreditCheckId":"c9743b1c-e576-488e-be9d-ae348929a66a","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
<UpdateCustomerBankDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.APIResponses.CreditCheckResponses"> <CreditCheckId>c9743b1c-e576-488e-be9d-ae348929a66a</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>3476e626-d8dc-4427-9672-fc8d805c370d</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>