Logging in to the Lending Core API
Description
This web service allows the user to log in to the Lending Core API.
Definition
GET
Copy
https://<domain>/services/apexrest/peer/v1/ login/*
Parameters
The table given below provides details of the request parameters used by this web service:
Fields |
Type | Description |
---|---|---|
Id* | String | This is the external ID of the user |
accessToken* |
String | This is the access token returned by the Facebook API |
imageSource* |
String | This is the URL of the Facebook profile photo. |
name* |
String | This is the name of the Facebook account |
Error messages
When you post a web service, you can receive the possible error messages as shown in the table below:
Error Code |
Reason |
HTTP Status Code |
---|---|---|
HTTP_INTERNAL_ERRROR | You will receive this error if there is any run time exception | 500 |
Sample Request
The sample request to be sent is as shown below:
POST
Copy
https://na11.salesforce.com/services/apexrest/peer/v1/login?
Sample Request
Copy
{
"id":"100001244246365",
"name:"AllaCinnamon",
"imageSource":"image/jpeg;base64,
/9j/4AAQSkZJRgABAQAAAQABAAD/
+GpIxjueA7otUvQSJn3vkRpyVnsTbA4VLHUPYq9qmT8NQCJHUR3BXOP6J +ZU+",
"accessToken":"CAAUfY32VTA4BAP17ATUFRmZAhDrh2tOmZA6VxhxYKcONnroU9rnhcNX8YWfnsIPrEY8zVE7A4QTPQ6TZCa7xW0jjI6tW92f5Q1tA5ZCc4bMDlj4V0HcsD8N7YzXFgTUAZA2HJcZADLs9A3eNkdmbhrIZCo9kCZCyBjwXBt3fvbQamcLUhRYTokGn
SMS Verified Not Checked Sign Agreement Not Checked Investor Status IsActiveBorrower Not Checked IsActiveInvestor Not Checked Password Hide Section - FundsFunds Available Funds 0.00 Total Investments 0.00 Amount In Funding
0.00 Uncommitted Funds 0.00 Uncleared Deposits 0 Uncleared Withdrawals
0 Hide Section - CreditCredit SSN Credit Rating Matrix Rating Required Document Maps Required Document Maps Help Required
Document Maps Help (New Window) No records to display Investor Fund Transaction Investor Fund
Transaction Investor Fund
Transaction Help Investor Fund Transaction Help (New Window) No records to
display Booking Order Booking Orders Booking Orders Help Booking Orders Help (New
Window) No records to display Investment Orders Investment Orders Help Investment Orders Help (New Window) No
records to display Lending Account
Lending Lending Help Lending Help
(New Window) No records to display Loan
Application Loan Application Loan
Application Help Loan Application Help (New Window) No records to display Bank Account Bank Accounts Bank Accounts Help Bank Accounts Help
(New Window) No records to display Credit Card Transactions Credit Card Transactions Help Credit Card
Transactions Help (New Window) No records to display Credit Card Tokens Credit Card Tokens Help Credit Card
Tokens Help (New Window) No records to display Notifications Notifications Help Notifications
Help (New Window) No records to display Back to TopBack To TopAlways show
me Show Moremore records per related
list Copyright © 2000-2014 salesforce.com,
inc. All rights reserved. | Privacy
Statement | Security Statement | Terms of Use | 508 Compliance"
}
Sample Response
The sample response that you will receive is as shown below:
Sample Response
Copy
{
"status":"SUCCESS",
"response":[
],
"errorCode":"NO_ERROR",
"content":[
{
"attributes":{
"type":"Account",
"url":"/services/data/v30.0/sobjects/Account/001G000001TyB26IAF"
},
"Name":"Alla Cinnamon",
"peer__IsActiveBorrower__c":false,
"peer__Funds_Available_For_Investment__c":0,
"loan__Uncleared_Withdrawals__c":0,
"loan__Undeployed_Funds__c":0,
"loan__Uncleared_Deposits__c":0,
"loan__Investor__c":false,
"loan__Deployed_Funds__c":0,
"peer__IsActiveInvestor__c":false,
"peer__Status__c":"NA",
"loan__Borrower__c":false,
"Id":"001G000001TyB26IAF"
}
]
}