All URIs are relative to https://dev.youlendapi.com/prequalification
Method | HTTP request | Description |
---|---|---|
requestsPost | POST /Requests | Initiates a prequalification of a merchant for a loan. It will use as much data as it can to do the analysis so the more data provided the more accurate the result |
PreQualificationResultDocument requestsPost(opts)
Initiates a prequalification of a merchant for a loan. It will use as much data as it can to do the analysis so the more data provided the more accurate the result
Can add sample as an example here
import YlThirdPartyPrequalificationApiClient from 'yl-third-party-prequalification-api-client';
let defaultClient = YlThirdPartyPrequalificationApiClient.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new YlThirdPartyPrequalificationApiClient.RequestsApi();
let opts = {
'apiVersion': "apiVersion_example", // String |
'preQualificationModel': new YlThirdPartyPrequalificationApiClient.PreQualificationModel() // PreQualificationModel |
};
apiInstance.requestsPost(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
apiVersion | String | [optional] | |
preQualificationModel | PreQualificationModel | [optional] |
PreQualificationResultDocument
- Content-Type: application/json
- Accept: application/json, application/xml