Spenda.Services.Lending

Lending

lendingFacilities

List of Facilities and their Transactions.

List of Facilities and their Transactions.


/Spenda/Lending/Facilities

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Lending/Facilities"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LendingApi;

import java.io.File;
import java.util.*;

public class LendingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LendingApi apiInstance = new LendingApi();

        try {
            httpActionResult_getBorrowerStatements result = apiInstance.lendingFacilities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingFacilities");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.lendingFacilities();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->lendingFacilities: $e\n');
}

import org.openapitools.client.api.LendingApi;

public class LendingApiExample {
    public static void main(String[] args) {
        LendingApi apiInstance = new LendingApi();

        try {
            httpActionResult_getBorrowerStatements result = apiInstance.lendingFacilities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingFacilities");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LendingApi *apiInstance = [[LendingApi alloc] init];

// List of Facilities and their Transactions.
[apiInstance lendingFacilitiesWithCompletionHandler: 
              ^(httpActionResult_getBorrowerStatements output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLending = require('spenda_services_lending');

// Create an instance of the API class
var api = new SpendaServicesLending.LendingApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lendingFacilities(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class lendingFacilitiesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LendingApi();

            try {
                // List of Facilities and their Transactions.
                httpActionResult_getBorrowerStatements result = apiInstance.lendingFacilities();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LendingApi.lendingFacilities: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LendingApi();

try {
    $result = $api_instance->lendingFacilities();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LendingApi->lendingFacilities: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LendingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LendingApi->new();

eval {
    my $result = $api_instance->lendingFacilities();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LendingApi->lendingFacilities: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LendingApi()

try:
    # List of Facilities and their Transactions.
    api_response = api_instance.lending_facilities()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LendingApi->lendingFacilities: %s\n" % e)
extern crate LendingApi;

pub fn main() {

    let mut context = LendingApi::Context::default();
    let result = client.lendingFacilities(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


lendingGetLenderPaidTransactions

Get all paid transactions for a specific lender's Marketplace.

Get all paid transactions for a specific lender's Marketplace.


/Spenda/Lending/Transactions/Paid

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Lending/Transactions/Paid?searchString=searchString_example&searchField=searchField_example&dateStart=2013-10-20T19:20:30+01:00&dateEnd=2013-10-20T19:20:30+01:00"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LendingApi;

import java.io.File;
import java.util.*;

public class LendingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LendingApi apiInstance = new LendingApi();
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member'
        Date dateStart = 2013-10-20T19:20:30+01:00; // Date | paid transactions will be selcted from this date
        Date dateEnd = 2013-10-20T19:20:30+01:00; // Date | paid transactions will be selcted to this date

        try {
            httpActionResult_lenderTransactionsResponse result = apiInstance.lendingGetLenderPaidTransactions(searchString, searchField, dateStart, dateEnd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingGetLenderPaidTransactions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String searchString = new String(); // String | String of characters to specify an advance search
final String searchField = new String(); // String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member'
final Date dateStart = new Date(); // Date | paid transactions will be selcted from this date
final Date dateEnd = new Date(); // Date | paid transactions will be selcted to this date

try {
    final result = await api_instance.lendingGetLenderPaidTransactions(searchString, searchField, dateStart, dateEnd);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->lendingGetLenderPaidTransactions: $e\n');
}

import org.openapitools.client.api.LendingApi;

public class LendingApiExample {
    public static void main(String[] args) {
        LendingApi apiInstance = new LendingApi();
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member'
        Date dateStart = 2013-10-20T19:20:30+01:00; // Date | paid transactions will be selcted from this date
        Date dateEnd = 2013-10-20T19:20:30+01:00; // Date | paid transactions will be selcted to this date

        try {
            httpActionResult_lenderTransactionsResponse result = apiInstance.lendingGetLenderPaidTransactions(searchString, searchField, dateStart, dateEnd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingGetLenderPaidTransactions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LendingApi *apiInstance = [[LendingApi alloc] init];
String *searchString = searchString_example; // String of characters to specify an advance search (optional) (default to null)
String *searchField = searchField_example; // must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member' (optional) (default to null)
Date *dateStart = 2013-10-20T19:20:30+01:00; // paid transactions will be selcted from this date (optional) (default to null)
Date *dateEnd = 2013-10-20T19:20:30+01:00; // paid transactions will be selcted to this date (optional) (default to null)

// Get all paid transactions for a specific lender's Marketplace.
[apiInstance lendingGetLenderPaidTransactionsWith:searchString
    searchField:searchField
    dateStart:dateStart
    dateEnd:dateEnd
              completionHandler: ^(httpActionResult_lenderTransactionsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLending = require('spenda_services_lending');

// Create an instance of the API class
var api = new SpendaServicesLending.LendingApi()
var opts = {
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member'
  'dateStart': 2013-10-20T19:20:30+01:00, // {Date} paid transactions will be selcted from this date
  'dateEnd': 2013-10-20T19:20:30+01:00 // {Date} paid transactions will be selcted to this date
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lendingGetLenderPaidTransactions(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class lendingGetLenderPaidTransactionsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LendingApi();
            var searchString = searchString_example;  // String | String of characters to specify an advance search (optional)  (default to null)
            var searchField = searchField_example;  // String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member' (optional)  (default to null)
            var dateStart = 2013-10-20T19:20:30+01:00;  // Date | paid transactions will be selcted from this date (optional)  (default to null)
            var dateEnd = 2013-10-20T19:20:30+01:00;  // Date | paid transactions will be selcted to this date (optional)  (default to null)

            try {
                // Get all paid transactions for a specific lender's Marketplace.
                httpActionResult_lenderTransactionsResponse result = apiInstance.lendingGetLenderPaidTransactions(searchString, searchField, dateStart, dateEnd);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LendingApi.lendingGetLenderPaidTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LendingApi();
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member'
$dateStart = 2013-10-20T19:20:30+01:00; // Date | paid transactions will be selcted from this date
$dateEnd = 2013-10-20T19:20:30+01:00; // Date | paid transactions will be selcted to this date

try {
    $result = $api_instance->lendingGetLenderPaidTransactions($searchString, $searchField, $dateStart, $dateEnd);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LendingApi->lendingGetLenderPaidTransactions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LendingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LendingApi->new();
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member'
my $dateStart = 2013-10-20T19:20:30+01:00; # Date | paid transactions will be selcted from this date
my $dateEnd = 2013-10-20T19:20:30+01:00; # Date | paid transactions will be selcted to this date

eval {
    my $result = $api_instance->lendingGetLenderPaidTransactions(searchString => $searchString, searchField => $searchField, dateStart => $dateStart, dateEnd => $dateEnd);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LendingApi->lendingGetLenderPaidTransactions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LendingApi()
searchString = searchString_example # String | String of characters to specify an advance search (optional) (default to null)
searchField = searchField_example # String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member' (optional) (default to null)
dateStart = 2013-10-20T19:20:30+01:00 # Date | paid transactions will be selcted from this date (optional) (default to null)
dateEnd = 2013-10-20T19:20:30+01:00 # Date | paid transactions will be selcted to this date (optional) (default to null)

try:
    # Get all paid transactions for a specific lender's Marketplace.
    api_response = api_instance.lending_get_lender_paid_transactions(searchString=searchString, searchField=searchField, dateStart=dateStart, dateEnd=dateEnd)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LendingApi->lendingGetLenderPaidTransactions: %s\n" % e)
extern crate LendingApi;

pub fn main() {
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let dateStart = 2013-10-20T19:20:30+01:00; // Date
    let dateEnd = 2013-10-20T19:20:30+01:00; // Date

    let mut context = LendingApi::Context::default();
    let result = client.lendingGetLenderPaidTransactions(searchString, searchField, dateStart, dateEnd, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or, 'InvoiceRefNumber' or, 'Supplier' or, 'Member'
dateStart
Date (date-time)
paid transactions will be selcted from this date
dateEnd
Date (date-time)
paid transactions will be selcted to this date

Responses


lendingRepaymentsGET

Get a repayment for a specific facility.

Get a repayment for a specific facility.


/Spenda/Lending/Facilities/{facilityGUID}/Repayments/{repaymentGUID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Lending/Facilities/{facilityGUID}/Repayments/{repaymentGUID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LendingApi;

import java.io.File;
import java.util.*;

public class LendingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LendingApi apiInstance = new LendingApi();
        UUID facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
        UUID repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The repayment identifier.

        try {
            httpActionResult_repayment result = apiInstance.lendingRepaymentsGET(facilityGUID, repaymentGUID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsGET");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UUID facilityGUID = new UUID(); // UUID | The facility identifier.
final UUID repaymentGUID = new UUID(); // UUID | The repayment identifier.

try {
    final result = await api_instance.lendingRepaymentsGET(facilityGUID, repaymentGUID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->lendingRepaymentsGET: $e\n');
}

import org.openapitools.client.api.LendingApi;

public class LendingApiExample {
    public static void main(String[] args) {
        LendingApi apiInstance = new LendingApi();
        UUID facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
        UUID repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The repayment identifier.

        try {
            httpActionResult_repayment result = apiInstance.lendingRepaymentsGET(facilityGUID, repaymentGUID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsGET");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LendingApi *apiInstance = [[LendingApi alloc] init];
UUID *facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The facility identifier. (default to null)
UUID *repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The repayment identifier. (default to null)

// Get a repayment for a specific facility.
[apiInstance lendingRepaymentsGETWith:facilityGUID
    repaymentGUID:repaymentGUID
              completionHandler: ^(httpActionResult_repayment output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLending = require('spenda_services_lending');

// Create an instance of the API class
var api = new SpendaServicesLending.LendingApi()
var facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The facility identifier.
var repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The repayment identifier.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lendingRepaymentsGET(facilityGUID, repaymentGUID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class lendingRepaymentsGETExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LendingApi();
            var facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The facility identifier. (default to null)
            var repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The repayment identifier. (default to null)

            try {
                // Get a repayment for a specific facility.
                httpActionResult_repayment result = apiInstance.lendingRepaymentsGET(facilityGUID, repaymentGUID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LendingApi.lendingRepaymentsGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LendingApi();
$facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
$repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The repayment identifier.

try {
    $result = $api_instance->lendingRepaymentsGET($facilityGUID, $repaymentGUID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LendingApi->lendingRepaymentsGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LendingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LendingApi->new();
my $facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The facility identifier.
my $repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The repayment identifier.

eval {
    my $result = $api_instance->lendingRepaymentsGET(facilityGUID => $facilityGUID, repaymentGUID => $repaymentGUID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LendingApi->lendingRepaymentsGET: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LendingApi()
facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The facility identifier. (default to null)
repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The repayment identifier. (default to null)

try:
    # Get a repayment for a specific facility.
    api_response = api_instance.lending_repayments_get(facilityGUID, repaymentGUID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LendingApi->lendingRepaymentsGET: %s\n" % e)
extern crate LendingApi;

pub fn main() {
    let facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let repaymentGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = LendingApi::Context::default();
    let result = client.lendingRepaymentsGET(facilityGUID, repaymentGUID, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
facilityGUID*
UUID (uuid)
The facility identifier.
Required
repaymentGUID*
UUID (uuid)
The repayment identifier.
Required

Responses


lendingRepaymentsPOST

Facility repayment.

Facility repayment.


/Spenda/Lending/Facilities/{facilityGUID}/Repayments

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Lending/Facilities/{facilityGUID}/Repayments" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LendingApi;

import java.io.File;
import java.util.*;

public class LendingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LendingApi apiInstance = new LendingApi();
        UUID facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
        ProcessRepaymentRequest processRepaymentRequest = {"paymentAccountGUID":"string","authorisationToken":"string","amount":0,"payerFeeAmount":0,"payeeTransactionFeeAmount":0,"payerFeeDescription":"string","paymentMethod":"Eftpos"}; // ProcessRepaymentRequest | 

        try {
            httpActionResult_repayment result = apiInstance.lendingRepaymentsPOST(facilityGUID, processRepaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsPOST");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UUID facilityGUID = new UUID(); // UUID | The facility identifier.
final ProcessRepaymentRequest processRepaymentRequest = new ProcessRepaymentRequest(); // ProcessRepaymentRequest | 

try {
    final result = await api_instance.lendingRepaymentsPOST(facilityGUID, processRepaymentRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->lendingRepaymentsPOST: $e\n');
}

import org.openapitools.client.api.LendingApi;

public class LendingApiExample {
    public static void main(String[] args) {
        LendingApi apiInstance = new LendingApi();
        UUID facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
        ProcessRepaymentRequest processRepaymentRequest = {"paymentAccountGUID":"string","authorisationToken":"string","amount":0,"payerFeeAmount":0,"payeeTransactionFeeAmount":0,"payerFeeDescription":"string","paymentMethod":"Eftpos"}; // ProcessRepaymentRequest | 

        try {
            httpActionResult_repayment result = apiInstance.lendingRepaymentsPOST(facilityGUID, processRepaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsPOST");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LendingApi *apiInstance = [[LendingApi alloc] init];
UUID *facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The facility identifier. (default to null)
ProcessRepaymentRequest *processRepaymentRequest = {"paymentAccountGUID":"string","authorisationToken":"string","amount":0,"payerFeeAmount":0,"payeeTransactionFeeAmount":0,"payerFeeDescription":"string","paymentMethod":"Eftpos"}; //  (optional)

// Facility repayment.
[apiInstance lendingRepaymentsPOSTWith:facilityGUID
    processRepaymentRequest:processRepaymentRequest
              completionHandler: ^(httpActionResult_repayment output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLending = require('spenda_services_lending');

// Create an instance of the API class
var api = new SpendaServicesLending.LendingApi()
var facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The facility identifier.
var opts = {
  'processRepaymentRequest': {"paymentAccountGUID":"string","authorisationToken":"string","amount":0,"payerFeeAmount":0,"payeeTransactionFeeAmount":0,"payerFeeDescription":"string","paymentMethod":"Eftpos"} // {ProcessRepaymentRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lendingRepaymentsPOST(facilityGUID, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class lendingRepaymentsPOSTExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LendingApi();
            var facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The facility identifier. (default to null)
            var processRepaymentRequest = new ProcessRepaymentRequest(); // ProcessRepaymentRequest |  (optional) 

            try {
                // Facility repayment.
                httpActionResult_repayment result = apiInstance.lendingRepaymentsPOST(facilityGUID, processRepaymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LendingApi.lendingRepaymentsPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LendingApi();
$facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
$processRepaymentRequest = {"paymentAccountGUID":"string","authorisationToken":"string","amount":0,"payerFeeAmount":0,"payeeTransactionFeeAmount":0,"payerFeeDescription":"string","paymentMethod":"Eftpos"}; // ProcessRepaymentRequest | 

try {
    $result = $api_instance->lendingRepaymentsPOST($facilityGUID, $processRepaymentRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LendingApi->lendingRepaymentsPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LendingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LendingApi->new();
my $facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The facility identifier.
my $processRepaymentRequest = WWW::OPenAPIClient::Object::ProcessRepaymentRequest->new(); # ProcessRepaymentRequest | 

eval {
    my $result = $api_instance->lendingRepaymentsPOST(facilityGUID => $facilityGUID, processRepaymentRequest => $processRepaymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LendingApi->lendingRepaymentsPOST: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LendingApi()
facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The facility identifier. (default to null)
processRepaymentRequest = {"paymentAccountGUID":"string","authorisationToken":"string","amount":0,"payerFeeAmount":0,"payeeTransactionFeeAmount":0,"payerFeeDescription":"string","paymentMethod":"Eftpos"} # ProcessRepaymentRequest |  (optional)

try:
    # Facility repayment.
    api_response = api_instance.lending_repayments_post(facilityGUID, processRepaymentRequest=processRepaymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LendingApi->lendingRepaymentsPOST: %s\n" % e)
extern crate LendingApi;

pub fn main() {
    let facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let processRepaymentRequest = {"paymentAccountGUID":"string","authorisationToken":"string","amount":0,"payerFeeAmount":0,"payeeTransactionFeeAmount":0,"payerFeeDescription":"string","paymentMethod":"Eftpos"}; // ProcessRepaymentRequest

    let mut context = LendingApi::Context::default();
    let result = client.lendingRepaymentsPOST(facilityGUID, processRepaymentRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
facilityGUID*
UUID (uuid)
The facility identifier.
Required
Body parameters
Name Description
processRepaymentRequest

Responses


lendingRepaymentsScheduledManualTriggerRepayment

Trigger repayments processing manually.

Trigger repayments processing manually.


/Spenda/Lending/Merchants/Payments

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Lending/Merchants/Payments"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LendingApi;

import java.io.File;
import java.util.*;

public class LendingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LendingApi apiInstance = new LendingApi();

        try {
            apiInstance.lendingRepaymentsScheduledManualTriggerRepayment();
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsScheduledManualTriggerRepayment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.lendingRepaymentsScheduledManualTriggerRepayment();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->lendingRepaymentsScheduledManualTriggerRepayment: $e\n');
}

import org.openapitools.client.api.LendingApi;

public class LendingApiExample {
    public static void main(String[] args) {
        LendingApi apiInstance = new LendingApi();

        try {
            apiInstance.lendingRepaymentsScheduledManualTriggerRepayment();
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsScheduledManualTriggerRepayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LendingApi *apiInstance = [[LendingApi alloc] init];

// Trigger repayments processing manually.
[apiInstance lendingRepaymentsScheduledManualTriggerRepaymentWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLending = require('spenda_services_lending');

// Create an instance of the API class
var api = new SpendaServicesLending.LendingApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.lendingRepaymentsScheduledManualTriggerRepayment(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class lendingRepaymentsScheduledManualTriggerRepaymentExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LendingApi();

            try {
                // Trigger repayments processing manually.
                apiInstance.lendingRepaymentsScheduledManualTriggerRepayment();
            } catch (Exception e) {
                Debug.Print("Exception when calling LendingApi.lendingRepaymentsScheduledManualTriggerRepayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LendingApi();

try {
    $api_instance->lendingRepaymentsScheduledManualTriggerRepayment();
} catch (Exception $e) {
    echo 'Exception when calling LendingApi->lendingRepaymentsScheduledManualTriggerRepayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LendingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LendingApi->new();

eval {
    $api_instance->lendingRepaymentsScheduledManualTriggerRepayment();
};
if ($@) {
    warn "Exception when calling LendingApi->lendingRepaymentsScheduledManualTriggerRepayment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LendingApi()

try:
    # Trigger repayments processing manually.
    api_instance.lending_repayments_scheduled_manual_trigger_repayment()
except ApiException as e:
    print("Exception when calling LendingApi->lendingRepaymentsScheduledManualTriggerRepayment: %s\n" % e)
extern crate LendingApi;

pub fn main() {

    let mut context = LendingApi::Context::default();
    let result = client.lendingRepaymentsScheduledManualTriggerRepayment(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


lendingRepaymentsScheduledReminderManualTriggerAlert

Trigger repayments reminder manually.

Trigger repayments reminder manually.


/Spenda/Lending/Facilities/RepaymentReminder

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Lending/Facilities/RepaymentReminder"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LendingApi;

import java.io.File;
import java.util.*;

public class LendingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LendingApi apiInstance = new LendingApi();

        try {
            apiInstance.lendingRepaymentsScheduledReminderManualTriggerAlert();
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsScheduledReminderManualTriggerAlert");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.lendingRepaymentsScheduledReminderManualTriggerAlert();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->lendingRepaymentsScheduledReminderManualTriggerAlert: $e\n');
}

import org.openapitools.client.api.LendingApi;

public class LendingApiExample {
    public static void main(String[] args) {
        LendingApi apiInstance = new LendingApi();

        try {
            apiInstance.lendingRepaymentsScheduledReminderManualTriggerAlert();
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingRepaymentsScheduledReminderManualTriggerAlert");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LendingApi *apiInstance = [[LendingApi alloc] init];

// Trigger repayments reminder manually.
[apiInstance lendingRepaymentsScheduledReminderManualTriggerAlertWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLending = require('spenda_services_lending');

// Create an instance of the API class
var api = new SpendaServicesLending.LendingApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.lendingRepaymentsScheduledReminderManualTriggerAlert(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class lendingRepaymentsScheduledReminderManualTriggerAlertExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LendingApi();

            try {
                // Trigger repayments reminder manually.
                apiInstance.lendingRepaymentsScheduledReminderManualTriggerAlert();
            } catch (Exception e) {
                Debug.Print("Exception when calling LendingApi.lendingRepaymentsScheduledReminderManualTriggerAlert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LendingApi();

try {
    $api_instance->lendingRepaymentsScheduledReminderManualTriggerAlert();
} catch (Exception $e) {
    echo 'Exception when calling LendingApi->lendingRepaymentsScheduledReminderManualTriggerAlert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LendingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LendingApi->new();

eval {
    $api_instance->lendingRepaymentsScheduledReminderManualTriggerAlert();
};
if ($@) {
    warn "Exception when calling LendingApi->lendingRepaymentsScheduledReminderManualTriggerAlert: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LendingApi()

try:
    # Trigger repayments reminder manually.
    api_instance.lending_repayments_scheduled_reminder_manual_trigger_alert()
except ApiException as e:
    print("Exception when calling LendingApi->lendingRepaymentsScheduledReminderManualTriggerAlert: %s\n" % e)
extern crate LendingApi;

pub fn main() {

    let mut context = LendingApi::Context::default();
    let result = client.lendingRepaymentsScheduledReminderManualTriggerAlert(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


lendingSetFacilityPaymentAccounts

Facility repayment method setup.

Facility repayment method setup.


/Spenda/Lending/Facilities/{facilityGUID}/Accounts

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Lending/Facilities/{facilityGUID}/Accounts" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LendingApi;

import java.io.File;
import java.util.*;

public class LendingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LendingApi apiInstance = new LendingApi();
        UUID facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
        SaveFacilityPaymentAccountsRequest saveFacilityPaymentAccountsRequest = {"accounts":[{"paymentAccountGUID":"string","paymentOrder":0}]}; // SaveFacilityPaymentAccountsRequest | 

        try {
            httpActionResult_saveFacilityPaymentAccountsResult result = apiInstance.lendingSetFacilityPaymentAccounts(facilityGUID, saveFacilityPaymentAccountsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingSetFacilityPaymentAccounts");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UUID facilityGUID = new UUID(); // UUID | The facility identifier.
final SaveFacilityPaymentAccountsRequest saveFacilityPaymentAccountsRequest = new SaveFacilityPaymentAccountsRequest(); // SaveFacilityPaymentAccountsRequest | 

try {
    final result = await api_instance.lendingSetFacilityPaymentAccounts(facilityGUID, saveFacilityPaymentAccountsRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->lendingSetFacilityPaymentAccounts: $e\n');
}

import org.openapitools.client.api.LendingApi;

public class LendingApiExample {
    public static void main(String[] args) {
        LendingApi apiInstance = new LendingApi();
        UUID facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
        SaveFacilityPaymentAccountsRequest saveFacilityPaymentAccountsRequest = {"accounts":[{"paymentAccountGUID":"string","paymentOrder":0}]}; // SaveFacilityPaymentAccountsRequest | 

        try {
            httpActionResult_saveFacilityPaymentAccountsResult result = apiInstance.lendingSetFacilityPaymentAccounts(facilityGUID, saveFacilityPaymentAccountsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LendingApi#lendingSetFacilityPaymentAccounts");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LendingApi *apiInstance = [[LendingApi alloc] init];
UUID *facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The facility identifier. (default to null)
SaveFacilityPaymentAccountsRequest *saveFacilityPaymentAccountsRequest = {"accounts":[{"paymentAccountGUID":"string","paymentOrder":0}]}; //  (optional)

// Facility repayment method setup.
[apiInstance lendingSetFacilityPaymentAccountsWith:facilityGUID
    saveFacilityPaymentAccountsRequest:saveFacilityPaymentAccountsRequest
              completionHandler: ^(httpActionResult_saveFacilityPaymentAccountsResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLending = require('spenda_services_lending');

// Create an instance of the API class
var api = new SpendaServicesLending.LendingApi()
var facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The facility identifier.
var opts = {
  'saveFacilityPaymentAccountsRequest': {"accounts":[{"paymentAccountGUID":"string","paymentOrder":0}]} // {SaveFacilityPaymentAccountsRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lendingSetFacilityPaymentAccounts(facilityGUID, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class lendingSetFacilityPaymentAccountsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LendingApi();
            var facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The facility identifier. (default to null)
            var saveFacilityPaymentAccountsRequest = new SaveFacilityPaymentAccountsRequest(); // SaveFacilityPaymentAccountsRequest |  (optional) 

            try {
                // Facility repayment method setup.
                httpActionResult_saveFacilityPaymentAccountsResult result = apiInstance.lendingSetFacilityPaymentAccounts(facilityGUID, saveFacilityPaymentAccountsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LendingApi.lendingSetFacilityPaymentAccounts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LendingApi();
$facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The facility identifier.
$saveFacilityPaymentAccountsRequest = {"accounts":[{"paymentAccountGUID":"string","paymentOrder":0}]}; // SaveFacilityPaymentAccountsRequest | 

try {
    $result = $api_instance->lendingSetFacilityPaymentAccounts($facilityGUID, $saveFacilityPaymentAccountsRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LendingApi->lendingSetFacilityPaymentAccounts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LendingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LendingApi->new();
my $facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The facility identifier.
my $saveFacilityPaymentAccountsRequest = WWW::OPenAPIClient::Object::SaveFacilityPaymentAccountsRequest->new(); # SaveFacilityPaymentAccountsRequest | 

eval {
    my $result = $api_instance->lendingSetFacilityPaymentAccounts(facilityGUID => $facilityGUID, saveFacilityPaymentAccountsRequest => $saveFacilityPaymentAccountsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LendingApi->lendingSetFacilityPaymentAccounts: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LendingApi()
facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The facility identifier. (default to null)
saveFacilityPaymentAccountsRequest = {"accounts":[{"paymentAccountGUID":"string","paymentOrder":0}]} # SaveFacilityPaymentAccountsRequest |  (optional)

try:
    # Facility repayment method setup.
    api_response = api_instance.lending_set_facility_payment_accounts(facilityGUID, saveFacilityPaymentAccountsRequest=saveFacilityPaymentAccountsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LendingApi->lendingSetFacilityPaymentAccounts: %s\n" % e)
extern crate LendingApi;

pub fn main() {
    let facilityGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let saveFacilityPaymentAccountsRequest = {"accounts":[{"paymentAccountGUID":"string","paymentOrder":0}]}; // SaveFacilityPaymentAccountsRequest

    let mut context = LendingApi::Context::default();
    let result = client.lendingSetFacilityPaymentAccounts(facilityGUID, saveFacilityPaymentAccountsRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
facilityGUID*
UUID (uuid)
The facility identifier.
Required
Body parameters
Name Description
saveFacilityPaymentAccountsRequest

Responses