This API integration guide provide details to integrate with the MrLender system.
All Web API responses will at least have the following fields:
MrLender External API uses Basic Authorization header to validate all requests to the API. To authenticate with the MrLender API in either the Production or QA environment you will need:
{
"MobileNumber": "07000000000",
"WebSessionID": null
}
{
"Accounts": [
{
"AccountRef": 8270491,
"DateOfBirth": "01/01/1986",
"CanMakeAutomatedPayment": true
}
],
"Status": "SUCCESS",
"ResponseCode": "S100",
"ResponseMessage": "Success",
"UniqueReferenceId": "45"
}
{
"Accounts": [],
"Status": "FAILED",
"ResponseCode": "A201",
"ResponseMessage": "Applicant Not Found",
"UniqueReferenceId": "47"
}
{
"AccountRef": 2345678,
"WebSessionID": null
}
{
"ExistingCardLast4Digits": "1234",
"CanUseExistingCard": true,
"CanAddNewCard": true,
"PaymentOptions": [
{
"PaymentType": 1,
"Description": "Instalment",
"Amount": 136.56
},
{
"PaymentType": 2,
"Description": "InterestOnly",
"Amount": 45.34
}
],
"Status": "SUCCESS",
"ResponseCode": "S100",
"ResponseMessage": "Success",
"UniqueReferenceId": "45"
}
{
"ExistingCardLast4Digits": "",
"CanUseExistingCard": false,
"CanAddNewCard": false,
"PaymentOptions": [],
"Status": "FAILED",
"ResponseCode": "A202",
"ResponseMessage": "Invalid account reference",
"UniqueReferenceId": "47"
}
{
"CardNumber": "4444333322221111",
"CVV": "123",
"ExpiryMonth": 12,
"ExpiryYear": 22,
"AccountRef": 12345678,
"PaymentType": 1,
"Amount": 123.45,
"WebSessionID": null
}
{
"CanAddNewCard": false,
"CanRestartFlow": false,
"ErrorMessage": "",
"Status": "SUCCESS",
"ResponseCode": "S100",
"ResponseMessage": "Success",
"UniqueReferenceId": "45"
}
{
"CanAddNewCard": false,
"CanRestartFlow": false,
"ErrorMessage": "",
"Status": "FAILED",
"ResponseCode": "P304",
"ResponseMessage": "InvalidPaymentType",
"UniqueReferenceId": "47"
}
{
"AccountRef": 12345678,
"PaymentType": 1,
"Amount": 123.45,
"WebSessionID": null
}
{
"CanAddNewCard": false,
"CanRestartFlow": false,
"ErrorMessage": "",
"Status": "SUCCESS",
"ResponseCode": "S100",
"ResponseMessage": "Success",
"UniqueReferenceId": "45"
}
{
"CanAddNewCard": false,
"CanRestartFlow": false,
"ErrorMessage": "",
"Status": "FAILED",
"ResponseCode": "P304",
"ResponseMessage": "InvalidPaymentType",
"UniqueReferenceId": "47"
}
{
"AccountRef": 12345678,
"EmailAddress": "[email protected]",
"CustomerName": null,
"CardNumber": "4444333322221111",
"CVV": "123",
"ExpiryMonth": 12,
"ExpiryYear": 22
}
{
"Status": "SUCCESS",
"ResponseCode": "S100",
"ResponseMessage": "Success",
"UniqueReferenceId": "45"
}
{
"Status": "FAILED",
"ResponseCode": "A201",
"ResponseMessage": "Applicant Not Found",
"UniqueReferenceId": "47"
}