Skip to content

Latest commit

 

History

History
168 lines (116 loc) · 5.46 KB

File metadata and controls

168 lines (116 loc) · 5.46 KB

SecureApi.SecurePremiumFinanceLiteApi

All URIs are relative to https://api.uat.anddone.com

Method HTTP request Description
secureEpfliteQuotesGeneratePost POST /secure/epflite/quotes/generate This API is used to generate the quote from the provider.
secureEpfliteQuotesLinkPost POST /secure/epflite/quotes/link This API will return quotes created againsts a payment link.
secureEpfliteQuotesPaymentlinksPost POST /secure/epflite/quotes/paymentlinks This API is used to create Payment Links

secureEpfliteQuotesGeneratePost

PFLiteGenerateQuoteResponse secureEpfliteQuotesGeneratePost(xApiKey, xAppKey, xVersion, origin, opts)

This API is used to generate the quote from the provider.

Example

import SecureApi from 'secure_api';

let apiInstance = new SecureApi.SecurePremiumFinanceLiteApi();
let xApiKey = "xApiKey_example"; // String | an authorization header
let xAppKey = "xAppKey_example"; // String | an authorization header
let xVersion = 3.4; // Number | x-version
let origin = "origin_example"; // String | origin
let opts = {
  'pFLiteSecureQuoteRequest': new SecureApi.PFLiteSecureQuoteRequest() // PFLiteSecureQuoteRequest | PFLite Quote Secure Request details
};
apiInstance.secureEpfliteQuotesGeneratePost(xApiKey, xAppKey, xVersion, origin, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
xApiKey String an authorization header
xAppKey String an authorization header
xVersion Number x-version
origin String origin
pFLiteSecureQuoteRequest PFLiteSecureQuoteRequest PFLite Quote Secure Request details [optional]

Return type

PFLiteGenerateQuoteResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

secureEpfliteQuotesLinkPost

[PFLiteQuoteByPaymentLinkResponse] secureEpfliteQuotesLinkPost(xApiKey, xAppKey, xVersion, origin, opts)

This API will return quotes created againsts a payment link.

Example

import SecureApi from 'secure_api';

let apiInstance = new SecureApi.SecurePremiumFinanceLiteApi();
let xApiKey = "xApiKey_example"; // String | an authorization header
let xAppKey = "xAppKey_example"; // String | an authorization header
let xVersion = 3.4; // Number | x-version
let origin = "origin_example"; // String | origin
let opts = {
  'pFLiteGetQuoteRequest': new SecureApi.PFLiteGetQuoteRequest() // PFLiteGetQuoteRequest | Signature Request details
};
apiInstance.secureEpfliteQuotesLinkPost(xApiKey, xAppKey, xVersion, origin, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
xApiKey String an authorization header
xAppKey String an authorization header
xVersion Number x-version
origin String origin
pFLiteGetQuoteRequest PFLiteGetQuoteRequest Signature Request details [optional]

Return type

[PFLiteQuoteByPaymentLinkResponse]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

secureEpfliteQuotesPaymentlinksPost

PaymentLinkResponse secureEpfliteQuotesPaymentlinksPost(xApiKey, xAppKey, xVersion, origin, pFLitePaymentLinkRequest)

This API is used to create Payment Links

Example

import SecureApi from 'secure_api';

let apiInstance = new SecureApi.SecurePremiumFinanceLiteApi();
let xApiKey = "xApiKey_example"; // String | an authorization header
let xAppKey = "xAppKey_example"; // String | an authorization header
let xVersion = 3.4; // Number | x-version
let origin = "origin_example"; // String | origin
let pFLitePaymentLinkRequest = new SecureApi.PFLitePaymentLinkRequest(); // PFLitePaymentLinkRequest | Payment Link Request
apiInstance.secureEpfliteQuotesPaymentlinksPost(xApiKey, xAppKey, xVersion, origin, pFLitePaymentLinkRequest, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
xApiKey String an authorization header
xAppKey String an authorization header
xVersion Number x-version
origin String origin
pFLitePaymentLinkRequest PFLitePaymentLinkRequest Payment Link Request

Return type

PaymentLinkResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json