Spenda.Services.SupplierPayments

AccountsPayable

aPApprovePaymentBatch

Approve a payment batch

Allows a buyer tenant to approve a payment batch


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Approve

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Approve"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

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

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

        try {
            getPaymentBatchResponse result = apiInstance.aPApprovePaymentBatch(paymentBatchID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPApprovePaymentBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)

// Approve a payment batch
[apiInstance aPApprovePaymentBatchWith:paymentBatchID
              completionHandler: ^(getPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)

            try {
                // Approve a payment batch
                getPaymentBatchResponse result = apiInstance.aPApprovePaymentBatch(paymentBatchID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPApprovePaymentBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID

eval {
    my $result = $api_instance->aPApprovePaymentBatch(paymentBatchID => $paymentBatchID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPApprovePaymentBatch: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)

try:
    # Approve a payment batch
    api_response = api_instance.a_p_approve_payment_batch(paymentBatchID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPApprovePaymentBatch: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPApprovePaymentBatch(paymentBatchID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required

Responses


aPApprovePaymentBatchForPayment

Approve a payment batch for payment

Allows a buyer tenant to approve a payment batch for payment


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/ApproveForPayment

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/ApproveForPayment"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

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

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

        try {
            getPaymentBatchResponse result = apiInstance.aPApprovePaymentBatchForPayment(paymentBatchID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPApprovePaymentBatchForPayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)

// Approve a payment batch for payment
[apiInstance aPApprovePaymentBatchForPaymentWith:paymentBatchID
              completionHandler: ^(getPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)

            try {
                // Approve a payment batch for payment
                getPaymentBatchResponse result = apiInstance.aPApprovePaymentBatchForPayment(paymentBatchID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPApprovePaymentBatchForPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID

eval {
    my $result = $api_instance->aPApprovePaymentBatchForPayment(paymentBatchID => $paymentBatchID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPApprovePaymentBatchForPayment: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)

try:
    # Approve a payment batch for payment
    api_response = api_instance.a_p_approve_payment_batch_for_payment(paymentBatchID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPApprovePaymentBatchForPayment: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPApprovePaymentBatchForPayment(paymentBatchID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required

Responses


aPAuthorisePayment

Authorise payment for a batch

Allows a buyer tenant to authorise payment for a batch


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Authorise

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Authorise"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

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

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

        try {
            getAuthorisationForBatchResponse result = apiInstance.aPAuthorisePayment(paymentBatchID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPAuthorisePayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)

// Authorise payment for a batch
[apiInstance aPAuthorisePaymentWith:paymentBatchID
              completionHandler: ^(getAuthorisationForBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)

            try {
                // Authorise payment for a batch
                getAuthorisationForBatchResponse result = apiInstance.aPAuthorisePayment(paymentBatchID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPAuthorisePayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID

eval {
    my $result = $api_instance->aPAuthorisePayment(paymentBatchID => $paymentBatchID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPAuthorisePayment: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)

try:
    # Authorise payment for a batch
    api_response = api_instance.a_p_authorise_payment(paymentBatchID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPAuthorisePayment: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPAuthorisePayment(paymentBatchID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required

Responses


aPCancelPaymentBatch

Cancel a payment batch

Allows a buyer tenant to cancel a payment batch


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Cancel

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Cancel" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID
        CancelPaymentBatchRequest cancelPaymentBatchRequest = {"id":0,"cancelReason":"string"}; // CancelPaymentBatchRequest | 

        try {
            getPaymentBatchResponse result = apiInstance.aPCancelPaymentBatch(paymentBatchID, cancelPaymentBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPCancelPaymentBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID
final CancelPaymentBatchRequest cancelPaymentBatchRequest = new CancelPaymentBatchRequest(); // CancelPaymentBatchRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID
        CancelPaymentBatchRequest cancelPaymentBatchRequest = {"id":0,"cancelReason":"string"}; // CancelPaymentBatchRequest | 

        try {
            getPaymentBatchResponse result = apiInstance.aPCancelPaymentBatch(paymentBatchID, cancelPaymentBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPCancelPaymentBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)
CancelPaymentBatchRequest *cancelPaymentBatchRequest = {"id":0,"cancelReason":"string"}; //  (optional)

// Cancel a payment batch
[apiInstance aPCancelPaymentBatchWith:paymentBatchID
    cancelPaymentBatchRequest:cancelPaymentBatchRequest
              completionHandler: ^(getPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID
var opts = {
  'cancelPaymentBatchRequest': {"id":0,"cancelReason":"string"} // {CancelPaymentBatchRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)
            var cancelPaymentBatchRequest = new CancelPaymentBatchRequest(); // CancelPaymentBatchRequest |  (optional) 

            try {
                // Cancel a payment batch
                getPaymentBatchResponse result = apiInstance.aPCancelPaymentBatch(paymentBatchID, cancelPaymentBatchRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPCancelPaymentBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID
$cancelPaymentBatchRequest = {"id":0,"cancelReason":"string"}; // CancelPaymentBatchRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID
my $cancelPaymentBatchRequest = WWW::OPenAPIClient::Object::CancelPaymentBatchRequest->new(); # CancelPaymentBatchRequest | 

eval {
    my $result = $api_instance->aPCancelPaymentBatch(paymentBatchID => $paymentBatchID, cancelPaymentBatchRequest => $cancelPaymentBatchRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPCancelPaymentBatch: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)
cancelPaymentBatchRequest = {"id":0,"cancelReason":"string"} # CancelPaymentBatchRequest |  (optional)

try:
    # Cancel a payment batch
    api_response = api_instance.a_p_cancel_payment_batch(paymentBatchID, cancelPaymentBatchRequest=cancelPaymentBatchRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPCancelPaymentBatch: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer
    let cancelPaymentBatchRequest = {"id":0,"cancelReason":"string"}; // CancelPaymentBatchRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPCancelPaymentBatch(paymentBatchID, cancelPaymentBatchRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required
Body parameters
Name Description
cancelPaymentBatchRequest

Responses


aPCreateBatchFromPurchaseInvoices

Creates a payment batch from purchase invoices in context of the buyer tenant

Allows a buyer tenant to create a payment batch from purchase invoices


/Spenda/Payments/AccountsPayable/PaymentBatch/CreateFromPurchaseInvoices

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/CreateFromPurchaseInvoices" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        CreatePaymentBatchFromPurchaseInvoicesRequest createPaymentBatchFromPurchaseInvoicesRequest = {"name":"string","dueDate":"string","debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}]}; // CreatePaymentBatchFromPurchaseInvoicesRequest | 

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

final api_instance = DefaultApi();

final CreatePaymentBatchFromPurchaseInvoicesRequest createPaymentBatchFromPurchaseInvoicesRequest = new CreatePaymentBatchFromPurchaseInvoicesRequest(); // CreatePaymentBatchFromPurchaseInvoicesRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        CreatePaymentBatchFromPurchaseInvoicesRequest createPaymentBatchFromPurchaseInvoicesRequest = {"name":"string","dueDate":"string","debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}]}; // CreatePaymentBatchFromPurchaseInvoicesRequest | 

        try {
            getPaymentBatchResponse result = apiInstance.aPCreateBatchFromPurchaseInvoices(createPaymentBatchFromPurchaseInvoicesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPCreateBatchFromPurchaseInvoices");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
CreatePaymentBatchFromPurchaseInvoicesRequest *createPaymentBatchFromPurchaseInvoicesRequest = {"name":"string","dueDate":"string","debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}]}; //  (optional)

// Creates a payment batch from purchase invoices in context of the buyer tenant
[apiInstance aPCreateBatchFromPurchaseInvoicesWith:createPaymentBatchFromPurchaseInvoicesRequest
              completionHandler: ^(getPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'createPaymentBatchFromPurchaseInvoicesRequest': {"name":"string","dueDate":"string","debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}]} // {CreatePaymentBatchFromPurchaseInvoicesRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var createPaymentBatchFromPurchaseInvoicesRequest = new CreatePaymentBatchFromPurchaseInvoicesRequest(); // CreatePaymentBatchFromPurchaseInvoicesRequest |  (optional) 

            try {
                // Creates a payment batch from purchase invoices in context of the buyer tenant
                getPaymentBatchResponse result = apiInstance.aPCreateBatchFromPurchaseInvoices(createPaymentBatchFromPurchaseInvoicesRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPCreateBatchFromPurchaseInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$createPaymentBatchFromPurchaseInvoicesRequest = {"name":"string","dueDate":"string","debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}]}; // CreatePaymentBatchFromPurchaseInvoicesRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $createPaymentBatchFromPurchaseInvoicesRequest = WWW::OPenAPIClient::Object::CreatePaymentBatchFromPurchaseInvoicesRequest->new(); # CreatePaymentBatchFromPurchaseInvoicesRequest | 

eval {
    my $result = $api_instance->aPCreateBatchFromPurchaseInvoices(createPaymentBatchFromPurchaseInvoicesRequest => $createPaymentBatchFromPurchaseInvoicesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPCreateBatchFromPurchaseInvoices: $@\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.AccountsPayableApi()
createPaymentBatchFromPurchaseInvoicesRequest = {"name":"string","dueDate":"string","debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}]} # CreatePaymentBatchFromPurchaseInvoicesRequest |  (optional)

try:
    # Creates a payment batch from purchase invoices in context of the buyer tenant
    api_response = api_instance.a_p_create_batch_from_purchase_invoices(createPaymentBatchFromPurchaseInvoicesRequest=createPaymentBatchFromPurchaseInvoicesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPCreateBatchFromPurchaseInvoices: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let createPaymentBatchFromPurchaseInvoicesRequest = {"name":"string","dueDate":"string","debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}]}; // CreatePaymentBatchFromPurchaseInvoicesRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPCreateBatchFromPurchaseInvoices(createPaymentBatchFromPurchaseInvoicesRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
createPaymentBatchFromPurchaseInvoicesRequest

Responses


aPGetAPOnboardingStepProgress

Get onboarding step

To get AP onboarding step progress


/Spenda/Payments/AccountsPayable/OnboardingStepProgress

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/OnboardingStepProgress"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            getAPOnboardingStepProgressResponse result = apiInstance.aPGetAPOnboardingStepProgress();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetAPOnboardingStepProgress");
            e.printStackTrace();
        }
    }
}


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

// Get onboarding step
[apiInstance aPGetAPOnboardingStepProgressWithCompletionHandler: 
              ^(getAPOnboardingStepProgressResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get onboarding step
                getAPOnboardingStepProgressResponse result = apiInstance.aPGetAPOnboardingStepProgress();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetAPOnboardingStepProgress: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetAPOnboardingStepProgress();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetAPOnboardingStepProgress: $@\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.AccountsPayableApi()

try:
    # Get onboarding step
    api_response = api_instance.a_p_get_ap_onboarding_step_progress()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetAPOnboardingStepProgress: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetAPOnboardingStepProgress(&context).wait();

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

Scopes

Parameters

Responses


aPGetDebitNote

Get debit note

Get debit note


/Spenda/Payments/AccountsPayable/DebitNotes/{debitNoteID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/DebitNotes/{debitNoteID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer debitNoteID = 56; // Integer | The debit note identifier

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

final api_instance = DefaultApi();

final Integer debitNoteID = new Integer(); // Integer | The debit note identifier

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer debitNoteID = 56; // Integer | The debit note identifier

        try {
            getDebitNoteResponse result = apiInstance.aPGetDebitNote(debitNoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetDebitNote");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *debitNoteID = 56; // The debit note identifier (default to null)

// Get debit note
[apiInstance aPGetDebitNoteWith:debitNoteID
              completionHandler: ^(getDebitNoteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var debitNoteID = 56; // {Integer} The debit note identifier

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var debitNoteID = 56;  // Integer | The debit note identifier (default to null)

            try {
                // Get debit note
                getDebitNoteResponse result = apiInstance.aPGetDebitNote(debitNoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetDebitNote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$debitNoteID = 56; // Integer | The debit note identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $debitNoteID = 56; # Integer | The debit note identifier

eval {
    my $result = $api_instance->aPGetDebitNote(debitNoteID => $debitNoteID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetDebitNote: $@\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.AccountsPayableApi()
debitNoteID = 56 # Integer | The debit note identifier (default to null)

try:
    # Get debit note
    api_response = api_instance.a_p_get_debit_note(debitNoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetDebitNote: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let debitNoteID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetDebitNote(debitNoteID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
debitNoteID*
Integer (int32)
The debit note identifier
Required

Responses


aPGetDebitNotes

Get debit notes

Get debit notes


/Spenda/Payments/AccountsPayable/DebitNotes

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/DebitNotes?supplierID=56&isReconciled=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier identifier
        Boolean isReconciled = true; // Boolean | Get debit notes reconciled/not reconciled to the financial system eg: xero

        try {
            getDebitNotesResponse result = apiInstance.aPGetDebitNotes(supplierID, isReconciled);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetDebitNotes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier identifier
final Boolean isReconciled = new Boolean(); // Boolean | Get debit notes reconciled/not reconciled to the financial system eg: xero

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier identifier
        Boolean isReconciled = true; // Boolean | Get debit notes reconciled/not reconciled to the financial system eg: xero

        try {
            getDebitNotesResponse result = apiInstance.aPGetDebitNotes(supplierID, isReconciled);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetDebitNotes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier identifier (optional) (default to null)
Boolean *isReconciled = true; // Get debit notes reconciled/not reconciled to the financial system eg: xero (optional) (default to null)

// Get debit notes
[apiInstance aPGetDebitNotesWith:supplierID
    isReconciled:isReconciled
              completionHandler: ^(getDebitNotesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'supplierID': 56, // {Integer} The supplier identifier
  'isReconciled': true // {Boolean} Get debit notes reconciled/not reconciled to the financial system eg: xero
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier identifier (optional)  (default to null)
            var isReconciled = true;  // Boolean | Get debit notes reconciled/not reconciled to the financial system eg: xero (optional)  (default to null)

            try {
                // Get debit notes
                getDebitNotesResponse result = apiInstance.aPGetDebitNotes(supplierID, isReconciled);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetDebitNotes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier identifier
$isReconciled = true; // Boolean | Get debit notes reconciled/not reconciled to the financial system eg: xero

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier identifier
my $isReconciled = true; # Boolean | Get debit notes reconciled/not reconciled to the financial system eg: xero

eval {
    my $result = $api_instance->aPGetDebitNotes(supplierID => $supplierID, isReconciled => $isReconciled);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetDebitNotes: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier identifier (optional) (default to null)
isReconciled = true # Boolean | Get debit notes reconciled/not reconciled to the financial system eg: xero (optional) (default to null)

try:
    # Get debit notes
    api_response = api_instance.a_p_get_debit_notes(supplierID=supplierID, isReconciled=isReconciled)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetDebitNotes: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let isReconciled = true; // Boolean

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetDebitNotes(supplierID, isReconciled, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
supplierID
Integer (int32)
The supplier identifier
isReconciled
Boolean
Get debit notes reconciled/not reconciled to the financial system eg: xero

Responses


aPGetDebitNotesRanked

Get debit notes ranked

Get debit notes ranked


/Spenda/Payments/AccountsPayable/DebitNotes/Ranked

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/DebitNotes/Ranked?stagingDocumentID=56&supplierID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingDocumentID = 56; // Integer | Get staging debit note identifier to compare to financial system
        Integer supplierID = 56; // Integer | The supplier identifier

        try {
            getDebitNotesRankedResponse result = apiInstance.aPGetDebitNotesRanked(stagingDocumentID, supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetDebitNotesRanked");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stagingDocumentID = new Integer(); // Integer | Get staging debit note identifier to compare to financial system
final Integer supplierID = new Integer(); // Integer | The supplier identifier

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingDocumentID = 56; // Integer | Get staging debit note identifier to compare to financial system
        Integer supplierID = 56; // Integer | The supplier identifier

        try {
            getDebitNotesRankedResponse result = apiInstance.aPGetDebitNotesRanked(stagingDocumentID, supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetDebitNotesRanked");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *stagingDocumentID = 56; // Get staging debit note identifier to compare to financial system (default to null)
Integer *supplierID = 56; // The supplier identifier (optional) (default to null)

// Get debit notes ranked
[apiInstance aPGetDebitNotesRankedWith:stagingDocumentID
    supplierID:supplierID
              completionHandler: ^(getDebitNotesRankedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var stagingDocumentID = 56; // {Integer} Get staging debit note identifier to compare to financial system
var opts = {
  'supplierID': 56 // {Integer} The supplier identifier
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var stagingDocumentID = 56;  // Integer | Get staging debit note identifier to compare to financial system (default to null)
            var supplierID = 56;  // Integer | The supplier identifier (optional)  (default to null)

            try {
                // Get debit notes ranked
                getDebitNotesRankedResponse result = apiInstance.aPGetDebitNotesRanked(stagingDocumentID, supplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetDebitNotesRanked: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$stagingDocumentID = 56; // Integer | Get staging debit note identifier to compare to financial system
$supplierID = 56; // Integer | The supplier identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $stagingDocumentID = 56; # Integer | Get staging debit note identifier to compare to financial system
my $supplierID = 56; # Integer | The supplier identifier

eval {
    my $result = $api_instance->aPGetDebitNotesRanked(stagingDocumentID => $stagingDocumentID, supplierID => $supplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetDebitNotesRanked: $@\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.AccountsPayableApi()
stagingDocumentID = 56 # Integer | Get staging debit note identifier to compare to financial system (default to null)
supplierID = 56 # Integer | The supplier identifier (optional) (default to null)

try:
    # Get debit notes ranked
    api_response = api_instance.a_p_get_debit_notes_ranked(stagingDocumentID, supplierID=supplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetDebitNotesRanked: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let stagingDocumentID = 56; // Integer
    let supplierID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetDebitNotesRanked(stagingDocumentID, supplierID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
stagingDocumentID*
Integer (int32)
Get staging debit note identifier to compare to financial system
Required
supplierID
Integer (int32)
The supplier identifier

Responses


aPGetDebitPaymentStatus

Get status for a debit payment

Allows a buyer tenant to get status for a debit payment


/Spenda/Payments/AccountsPayable/PaymentBatch/DebitStatus/{transactionGUID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/DebitStatus/{transactionGUID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        UUID transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The GUID of the debit payment

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

final api_instance = DefaultApi();

final UUID transactionGUID = new UUID(); // UUID | The GUID of the debit payment

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        UUID transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The GUID of the debit payment

        try {
            getDebitPaymentStatusResponse result = apiInstance.aPGetDebitPaymentStatus(transactionGUID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetDebitPaymentStatus");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
UUID *transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The GUID of the debit payment (default to null)

// Get status for a debit payment
[apiInstance aPGetDebitPaymentStatusWith:transactionGUID
              completionHandler: ^(getDebitPaymentStatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The GUID of the debit payment

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The GUID of the debit payment (default to null)

            try {
                // Get status for a debit payment
                getDebitPaymentStatusResponse result = apiInstance.aPGetDebitPaymentStatus(transactionGUID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetDebitPaymentStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The GUID of the debit payment

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The GUID of the debit payment

eval {
    my $result = $api_instance->aPGetDebitPaymentStatus(transactionGUID => $transactionGUID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetDebitPaymentStatus: $@\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.AccountsPayableApi()
transactionGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The GUID of the debit payment (default to null)

try:
    # Get status for a debit payment
    api_response = api_instance.a_p_get_debit_payment_status(transactionGUID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetDebitPaymentStatus: %s\n" % e)
extern crate AccountsPayableApi;

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

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetDebitPaymentStatus(transactionGUID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
transactionGUID*
UUID (uuid)
The GUID of the debit payment
Required

Responses


aPGetMatchTransactionConfig

Get match transaction config

Get match transaction config


/Spenda/Payments/AccountsPayable/Config/MatchTransaction

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Config/MatchTransaction"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            matchTransactionConfigResponse result = apiInstance.aPGetMatchTransactionConfig();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetMatchTransactionConfig");
            e.printStackTrace();
        }
    }
}


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

// Get match transaction config
[apiInstance aPGetMatchTransactionConfigWithCompletionHandler: 
              ^(matchTransactionConfigResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get match transaction config
                matchTransactionConfigResponse result = apiInstance.aPGetMatchTransactionConfig();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetMatchTransactionConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetMatchTransactionConfig();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetMatchTransactionConfig: $@\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.AccountsPayableApi()

try:
    # Get match transaction config
    api_response = api_instance.a_p_get_match_transaction_config()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetMatchTransactionConfig: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetMatchTransactionConfig(&context).wait();

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

Scopes

Parameters

Responses


aPGetPaymentBatch

Get details for a payment batch

Allows a buyer tenant to get details on a payment batch


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

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

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

        try {
            getPaymentBatchResponse result = apiInstance.aPGetPaymentBatch(paymentBatchID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)

// Get details for a payment batch
[apiInstance aPGetPaymentBatchWith:paymentBatchID
              completionHandler: ^(getPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)

            try {
                // Get details for a payment batch
                getPaymentBatchResponse result = apiInstance.aPGetPaymentBatch(paymentBatchID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPaymentBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID

eval {
    my $result = $api_instance->aPGetPaymentBatch(paymentBatchID => $paymentBatchID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPaymentBatch: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)

try:
    # Get details for a payment batch
    api_response = api_instance.a_p_get_payment_batch(paymentBatchID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPaymentBatch: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPaymentBatch(paymentBatchID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required

Responses


aPGetPaymentBatchAwaitingAuthorisation

Get list of payment batches that are awaiting authorisation from other users

Allows a wallet user to get list of payment batches that are awaiting authorisation from other users


/Spenda/Payments/AccountsPayable/PaymentBatch/AwaitingAuthorisation

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/AwaitingAuthorisation"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            getPaymentBatchReadyForPaymentResponse result = apiInstance.aPGetPaymentBatchAwaitingAuthorisation();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatchAwaitingAuthorisation");
            e.printStackTrace();
        }
    }
}


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

// Get list of payment batches that are awaiting authorisation from other users
[apiInstance aPGetPaymentBatchAwaitingAuthorisationWithCompletionHandler: 
              ^(getPaymentBatchReadyForPaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get list of payment batches that are awaiting authorisation from other users
                getPaymentBatchReadyForPaymentResponse result = apiInstance.aPGetPaymentBatchAwaitingAuthorisation();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPaymentBatchAwaitingAuthorisation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetPaymentBatchAwaitingAuthorisation();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPaymentBatchAwaitingAuthorisation: $@\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.AccountsPayableApi()

try:
    # Get list of payment batches that are awaiting authorisation from other users
    api_response = api_instance.a_p_get_payment_batch_awaiting_authorisation()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPaymentBatchAwaitingAuthorisation: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPaymentBatchAwaitingAuthorisation(&context).wait();

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

Scopes

Parameters

Responses


aPGetPaymentBatchReadyForApproval

Get list of payment batches that are ready for approval

Allows a buyer tenant to get list of payment batches that are ready for approval


/Spenda/Payments/AccountsPayable/PaymentBatch/RequiresApproval

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/RequiresApproval"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            getPaymentBatchReadyForApprovalResponse result = apiInstance.aPGetPaymentBatchReadyForApproval();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatchReadyForApproval");
            e.printStackTrace();
        }
    }
}


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

// Get list of payment batches that are ready for approval
[apiInstance aPGetPaymentBatchReadyForApprovalWithCompletionHandler: 
              ^(getPaymentBatchReadyForApprovalResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get list of payment batches that are ready for approval
                getPaymentBatchReadyForApprovalResponse result = apiInstance.aPGetPaymentBatchReadyForApproval();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPaymentBatchReadyForApproval: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetPaymentBatchReadyForApproval();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPaymentBatchReadyForApproval: $@\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.AccountsPayableApi()

try:
    # Get list of payment batches that are ready for approval
    api_response = api_instance.a_p_get_payment_batch_ready_for_approval()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPaymentBatchReadyForApproval: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPaymentBatchReadyForApproval(&context).wait();

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

Scopes

Parameters

Responses


aPGetPaymentBatchReadyForAuthorisation

Get list of payment batches that are ready for authorisation from current user

Allows a wallet user to get list of payment batches that are ready for authorisation


/Spenda/Payments/AccountsPayable/PaymentBatch/ReadyForAuthorisation

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/ReadyForAuthorisation"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            getPaymentBatchReadyForPaymentResponse result = apiInstance.aPGetPaymentBatchReadyForAuthorisation();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatchReadyForAuthorisation");
            e.printStackTrace();
        }
    }
}


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

// Get list of payment batches that are ready for authorisation from current user
[apiInstance aPGetPaymentBatchReadyForAuthorisationWithCompletionHandler: 
              ^(getPaymentBatchReadyForPaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get list of payment batches that are ready for authorisation from current user
                getPaymentBatchReadyForPaymentResponse result = apiInstance.aPGetPaymentBatchReadyForAuthorisation();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPaymentBatchReadyForAuthorisation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetPaymentBatchReadyForAuthorisation();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPaymentBatchReadyForAuthorisation: $@\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.AccountsPayableApi()

try:
    # Get list of payment batches that are ready for authorisation from current user
    api_response = api_instance.a_p_get_payment_batch_ready_for_authorisation()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPaymentBatchReadyForAuthorisation: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPaymentBatchReadyForAuthorisation(&context).wait();

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

Scopes

Parameters

Responses


aPGetPaymentBatchReadyForPayment

Get list of payment batches that are ready for payment

Allows a wallet user to get list of payment batches that are ready for payment


/Spenda/Payments/AccountsPayable/PaymentBatch/ReadyForPayment

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/ReadyForPayment"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            getPaymentBatchReadyForPaymentResponse result = apiInstance.aPGetPaymentBatchReadyForPayment();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatchReadyForPayment");
            e.printStackTrace();
        }
    }
}


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

// Get list of payment batches that are ready for payment
[apiInstance aPGetPaymentBatchReadyForPaymentWithCompletionHandler: 
              ^(getPaymentBatchReadyForPaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get list of payment batches that are ready for payment
                getPaymentBatchReadyForPaymentResponse result = apiInstance.aPGetPaymentBatchReadyForPayment();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPaymentBatchReadyForPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetPaymentBatchReadyForPayment();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPaymentBatchReadyForPayment: $@\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.AccountsPayableApi()

try:
    # Get list of payment batches that are ready for payment
    api_response = api_instance.a_p_get_payment_batch_ready_for_payment()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPaymentBatchReadyForPayment: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPaymentBatchReadyForPayment(&context).wait();

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

Scopes

Parameters

Responses


aPGetPaymentBatches

Search payment batches

Allows a buyer tenant to searcg payment batches


/Spenda/Payments/AccountsPayable/PaymentBatch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch?StartRow=56&MaxResults=56&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&SortField=sortField_example&SortOrder=sortOrder_example&Status=&AuthorisationStatus="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        array[String] status = ; // array[String] | The status filter
        array[String] authorisationStatus = ; // array[String] | The authorisation status filter for failed batch

        try {
            searchPaymentBatchesResponse result = apiInstance.aPGetPaymentBatches(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, authorisationStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatches");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startRow = new Integer(); // Integer | The start row position
final Integer maxResults = new Integer(); // Integer | The number of results to return
final Date startDate = new Date(); // Date | The start date range
final Date endDate = new Date(); // Date | The end date range
final String sortField = new String(); // String | The sort field
final String sortOrder = new String(); // String | The sort order
final array[String] status = new array[String](); // array[String] | The status filter
final array[String] authorisationStatus = new array[String](); // array[String] | The authorisation status filter for failed batch

try {
    final result = await api_instance.aPGetPaymentBatches(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, authorisationStatus);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aPGetPaymentBatches: $e\n');
}

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        array[String] status = ; // array[String] | The status filter
        array[String] authorisationStatus = ; // array[String] | The authorisation status filter for failed batch

        try {
            searchPaymentBatchesResponse result = apiInstance.aPGetPaymentBatches(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, authorisationStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatches");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *startRow = 56; // The start row position (optional) (default to null)
Integer *maxResults = 56; // The number of results to return (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // The start date range (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // The end date range (optional) (default to null)
String *sortField = sortField_example; // The sort field (optional) (default to null)
String *sortOrder = sortOrder_example; // The sort order (optional) (default to null)
array[String] *status = ; // The status filter (optional) (default to null)
array[String] *authorisationStatus = ; // The authorisation status filter for failed batch (optional) (default to null)

// Search payment batches
[apiInstance aPGetPaymentBatchesWith:startRow
    maxResults:maxResults
    startDate:startDate
    endDate:endDate
    sortField:sortField
    sortOrder:sortOrder
    status:status
    authorisationStatus:authorisationStatus
              completionHandler: ^(searchPaymentBatchesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} The start date range
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} The end date range
  'sortField': sortField_example, // {String} The sort field
  'sortOrder': sortOrder_example, // {String} The sort order
  'status': , // {array[String]} The status filter
  'authorisationStatus':  // {array[String]} The authorisation status filter for failed batch
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var startRow = 56;  // Integer | The start row position (optional)  (default to null)
            var maxResults = 56;  // Integer | The number of results to return (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | The start date range (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | The end date range (optional)  (default to null)
            var sortField = sortField_example;  // String | The sort field (optional)  (default to null)
            var sortOrder = sortOrder_example;  // String | The sort order (optional)  (default to null)
            var status = new array[String](); // array[String] | The status filter (optional)  (default to null)
            var authorisationStatus = new array[String](); // array[String] | The authorisation status filter for failed batch (optional)  (default to null)

            try {
                // Search payment batches
                searchPaymentBatchesResponse result = apiInstance.aPGetPaymentBatches(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, authorisationStatus);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPaymentBatches: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
$endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
$sortField = sortField_example; // String | The sort field
$sortOrder = sortOrder_example; // String | The sort order
$status = ; // array[String] | The status filter
$authorisationStatus = ; // array[String] | The authorisation status filter for failed batch

try {
    $result = $api_instance->aPGetPaymentBatches($startRow, $maxResults, $startDate, $endDate, $sortField, $sortOrder, $status, $authorisationStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsPayableApi->aPGetPaymentBatches: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsPayableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $startDate = 2013-10-20T19:20:30+01:00; # Date | The start date range
my $endDate = 2013-10-20T19:20:30+01:00; # Date | The end date range
my $sortField = sortField_example; # String | The sort field
my $sortOrder = sortOrder_example; # String | The sort order
my $status = []; # array[String] | The status filter
my $authorisationStatus = []; # array[String] | The authorisation status filter for failed batch

eval {
    my $result = $api_instance->aPGetPaymentBatches(startRow => $startRow, maxResults => $maxResults, startDate => $startDate, endDate => $endDate, sortField => $sortField, sortOrder => $sortOrder, status => $status, authorisationStatus => $authorisationStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPaymentBatches: $@\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.AccountsPayableApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | The start date range (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | The end date range (optional) (default to null)
sortField = sortField_example # String | The sort field (optional) (default to null)
sortOrder = sortOrder_example # String | The sort order (optional) (default to null)
status =  # array[String] | The status filter (optional) (default to null)
authorisationStatus =  # array[String] | The authorisation status filter for failed batch (optional) (default to null)

try:
    # Search payment batches
    api_response = api_instance.a_p_get_payment_batches(startRow=startRow, maxResults=maxResults, startDate=startDate, endDate=endDate, sortField=sortField, sortOrder=sortOrder, status=status, authorisationStatus=authorisationStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPaymentBatches: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let status = ; // array[String]
    let authorisationStatus = ; // array[String]

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPaymentBatches(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, authorisationStatus, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartRow
Integer (int32)
The start row position
MaxResults
Integer (int32)
The number of results to return
StartDate
Date (date-time)
The start date range
EndDate
Date (date-time)
The end date range
SortField
String
The sort field
SortOrder
String
The sort order
Status
array[String]
The status filter
AuthorisationStatus
array[String]
The authorisation status filter for failed batch

Responses


aPGetPaymentBatchesReport

Search payment batches report

Allows a buyer tenant to searcg payment batches


/Spenda/Payments/AccountsPayable/PaymentBatchReport

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatchReport?StartRow=56&MaxResults=56&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&SortField=sortField_example&SortOrder=sortOrder_example&Status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        array[String] status = ; // array[String] | The status filter

        try {
            searchPaymentBatchesResponse result = apiInstance.aPGetPaymentBatchesReport(startRow, maxResults, startDate, endDate, sortField, sortOrder, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatchesReport");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startRow = new Integer(); // Integer | The start row position
final Integer maxResults = new Integer(); // Integer | The number of results to return
final Date startDate = new Date(); // Date | The start date range
final Date endDate = new Date(); // Date | The end date range
final String sortField = new String(); // String | The sort field
final String sortOrder = new String(); // String | The sort order
final array[String] status = new array[String](); // array[String] | The status filter

try {
    final result = await api_instance.aPGetPaymentBatchesReport(startRow, maxResults, startDate, endDate, sortField, sortOrder, status);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aPGetPaymentBatchesReport: $e\n');
}

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
        String sortField = sortField_example; // String | The sort field
        String sortOrder = sortOrder_example; // String | The sort order
        array[String] status = ; // array[String] | The status filter

        try {
            searchPaymentBatchesResponse result = apiInstance.aPGetPaymentBatchesReport(startRow, maxResults, startDate, endDate, sortField, sortOrder, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPaymentBatchesReport");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *startRow = 56; // The start row position (optional) (default to null)
Integer *maxResults = 56; // The number of results to return (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // The start date range (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // The end date range (optional) (default to null)
String *sortField = sortField_example; // The sort field (optional) (default to null)
String *sortOrder = sortOrder_example; // The sort order (optional) (default to null)
array[String] *status = ; // The status filter (optional) (default to null)

// Search payment batches report
[apiInstance aPGetPaymentBatchesReportWith:startRow
    maxResults:maxResults
    startDate:startDate
    endDate:endDate
    sortField:sortField
    sortOrder:sortOrder
    status:status
              completionHandler: ^(searchPaymentBatchesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} The start date range
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} The end date range
  'sortField': sortField_example, // {String} The sort field
  'sortOrder': sortOrder_example, // {String} The sort order
  'status':  // {array[String]} The status filter
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var startRow = 56;  // Integer | The start row position (optional)  (default to null)
            var maxResults = 56;  // Integer | The number of results to return (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | The start date range (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | The end date range (optional)  (default to null)
            var sortField = sortField_example;  // String | The sort field (optional)  (default to null)
            var sortOrder = sortOrder_example;  // String | The sort order (optional)  (default to null)
            var status = new array[String](); // array[String] | The status filter (optional)  (default to null)

            try {
                // Search payment batches report
                searchPaymentBatchesResponse result = apiInstance.aPGetPaymentBatchesReport(startRow, maxResults, startDate, endDate, sortField, sortOrder, status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPaymentBatchesReport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$startDate = 2013-10-20T19:20:30+01:00; // Date | The start date range
$endDate = 2013-10-20T19:20:30+01:00; // Date | The end date range
$sortField = sortField_example; // String | The sort field
$sortOrder = sortOrder_example; // String | The sort order
$status = ; // array[String] | The status filter

try {
    $result = $api_instance->aPGetPaymentBatchesReport($startRow, $maxResults, $startDate, $endDate, $sortField, $sortOrder, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsPayableApi->aPGetPaymentBatchesReport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsPayableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $startDate = 2013-10-20T19:20:30+01:00; # Date | The start date range
my $endDate = 2013-10-20T19:20:30+01:00; # Date | The end date range
my $sortField = sortField_example; # String | The sort field
my $sortOrder = sortOrder_example; # String | The sort order
my $status = []; # array[String] | The status filter

eval {
    my $result = $api_instance->aPGetPaymentBatchesReport(startRow => $startRow, maxResults => $maxResults, startDate => $startDate, endDate => $endDate, sortField => $sortField, sortOrder => $sortOrder, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPaymentBatchesReport: $@\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.AccountsPayableApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | The start date range (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | The end date range (optional) (default to null)
sortField = sortField_example # String | The sort field (optional) (default to null)
sortOrder = sortOrder_example # String | The sort order (optional) (default to null)
status =  # array[String] | The status filter (optional) (default to null)

try:
    # Search payment batches report
    api_response = api_instance.a_p_get_payment_batches_report(startRow=startRow, maxResults=maxResults, startDate=startDate, endDate=endDate, sortField=sortField, sortOrder=sortOrder, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPaymentBatchesReport: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let status = ; // array[String]

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPaymentBatchesReport(startRow, maxResults, startDate, endDate, sortField, sortOrder, status, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartRow
Integer (int32)
The start row position
MaxResults
Integer (int32)
The number of results to return
StartDate
Date (date-time)
The start date range
EndDate
Date (date-time)
The end date range
SortField
String
The sort field
SortOrder
String
The sort order
Status
array[String]
The status filter

Responses


aPGetPurchaseInvoice

Get purchase invoice

Get purchase invoice


/Spenda/Payments/AccountsPayable/PurchaseInvoices/{purchaseInvoiceID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PurchaseInvoices/{purchaseInvoiceID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer purchaseInvoiceID = 56; // Integer | The purchase invoice identifier

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

final api_instance = DefaultApi();

final Integer purchaseInvoiceID = new Integer(); // Integer | The purchase invoice identifier

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer purchaseInvoiceID = 56; // Integer | The purchase invoice identifier

        try {
            getPurchaseInvoiceResponse result = apiInstance.aPGetPurchaseInvoice(purchaseInvoiceID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPurchaseInvoice");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *purchaseInvoiceID = 56; // The purchase invoice identifier (default to null)

// Get purchase invoice
[apiInstance aPGetPurchaseInvoiceWith:purchaseInvoiceID
              completionHandler: ^(getPurchaseInvoiceResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var purchaseInvoiceID = 56; // {Integer} The purchase invoice identifier

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var purchaseInvoiceID = 56;  // Integer | The purchase invoice identifier (default to null)

            try {
                // Get purchase invoice
                getPurchaseInvoiceResponse result = apiInstance.aPGetPurchaseInvoice(purchaseInvoiceID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPurchaseInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$purchaseInvoiceID = 56; // Integer | The purchase invoice identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $purchaseInvoiceID = 56; # Integer | The purchase invoice identifier

eval {
    my $result = $api_instance->aPGetPurchaseInvoice(purchaseInvoiceID => $purchaseInvoiceID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPurchaseInvoice: $@\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.AccountsPayableApi()
purchaseInvoiceID = 56 # Integer | The purchase invoice identifier (default to null)

try:
    # Get purchase invoice
    api_response = api_instance.a_p_get_purchase_invoice(purchaseInvoiceID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPurchaseInvoice: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let purchaseInvoiceID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPurchaseInvoice(purchaseInvoiceID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
purchaseInvoiceID*
Integer (int32)
The purchase invoice identifier
Required

Responses


aPGetPurchaseInvoices

Get purchase invoices

Get purchase invoices


/Spenda/Payments/AccountsPayable/PurchaseInvoices

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PurchaseInvoices?supplierID=56&isReconciled=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier identifier
        Boolean isReconciled = true; // Boolean | Get purchase invoices reconciled/not reconciled to the financial system eg: xero

        try {
            getPurchaseInvoicesResponse result = apiInstance.aPGetPurchaseInvoices(supplierID, isReconciled);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPurchaseInvoices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier identifier
final Boolean isReconciled = new Boolean(); // Boolean | Get purchase invoices reconciled/not reconciled to the financial system eg: xero

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier identifier
        Boolean isReconciled = true; // Boolean | Get purchase invoices reconciled/not reconciled to the financial system eg: xero

        try {
            getPurchaseInvoicesResponse result = apiInstance.aPGetPurchaseInvoices(supplierID, isReconciled);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPurchaseInvoices");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier identifier (optional) (default to null)
Boolean *isReconciled = true; // Get purchase invoices reconciled/not reconciled to the financial system eg: xero (optional) (default to null)

// Get purchase invoices
[apiInstance aPGetPurchaseInvoicesWith:supplierID
    isReconciled:isReconciled
              completionHandler: ^(getPurchaseInvoicesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'supplierID': 56, // {Integer} The supplier identifier
  'isReconciled': true // {Boolean} Get purchase invoices reconciled/not reconciled to the financial system eg: xero
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier identifier (optional)  (default to null)
            var isReconciled = true;  // Boolean | Get purchase invoices reconciled/not reconciled to the financial system eg: xero (optional)  (default to null)

            try {
                // Get purchase invoices
                getPurchaseInvoicesResponse result = apiInstance.aPGetPurchaseInvoices(supplierID, isReconciled);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPurchaseInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier identifier
$isReconciled = true; // Boolean | Get purchase invoices reconciled/not reconciled to the financial system eg: xero

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier identifier
my $isReconciled = true; # Boolean | Get purchase invoices reconciled/not reconciled to the financial system eg: xero

eval {
    my $result = $api_instance->aPGetPurchaseInvoices(supplierID => $supplierID, isReconciled => $isReconciled);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPurchaseInvoices: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier identifier (optional) (default to null)
isReconciled = true # Boolean | Get purchase invoices reconciled/not reconciled to the financial system eg: xero (optional) (default to null)

try:
    # Get purchase invoices
    api_response = api_instance.a_p_get_purchase_invoices(supplierID=supplierID, isReconciled=isReconciled)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPurchaseInvoices: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let isReconciled = true; // Boolean

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPurchaseInvoices(supplierID, isReconciled, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
supplierID
Integer (int32)
The supplier identifier
isReconciled
Boolean
Get purchase invoices reconciled/not reconciled to the financial system eg: xero

Responses


aPGetPurchaseInvoicesRanked

Get purchase invoices ranked

Get purchase invoices ranked


/Spenda/Payments/AccountsPayable/PurchaseInvoices/Ranked

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PurchaseInvoices/Ranked?stagingDocumentID=56&supplierID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingDocumentID = 56; // Integer | Get staging purchase invoice identifier to compare to financial system
        Integer supplierID = 56; // Integer | The supplier identifier

        try {
            getPurchaseInvoicesRankedResponse result = apiInstance.aPGetPurchaseInvoicesRanked(stagingDocumentID, supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPurchaseInvoicesRanked");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stagingDocumentID = new Integer(); // Integer | Get staging purchase invoice identifier to compare to financial system
final Integer supplierID = new Integer(); // Integer | The supplier identifier

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingDocumentID = 56; // Integer | Get staging purchase invoice identifier to compare to financial system
        Integer supplierID = 56; // Integer | The supplier identifier

        try {
            getPurchaseInvoicesRankedResponse result = apiInstance.aPGetPurchaseInvoicesRanked(stagingDocumentID, supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetPurchaseInvoicesRanked");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *stagingDocumentID = 56; // Get staging purchase invoice identifier to compare to financial system (default to null)
Integer *supplierID = 56; // The supplier identifier (optional) (default to null)

// Get purchase invoices ranked
[apiInstance aPGetPurchaseInvoicesRankedWith:stagingDocumentID
    supplierID:supplierID
              completionHandler: ^(getPurchaseInvoicesRankedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var stagingDocumentID = 56; // {Integer} Get staging purchase invoice identifier to compare to financial system
var opts = {
  'supplierID': 56 // {Integer} The supplier identifier
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var stagingDocumentID = 56;  // Integer | Get staging purchase invoice identifier to compare to financial system (default to null)
            var supplierID = 56;  // Integer | The supplier identifier (optional)  (default to null)

            try {
                // Get purchase invoices ranked
                getPurchaseInvoicesRankedResponse result = apiInstance.aPGetPurchaseInvoicesRanked(stagingDocumentID, supplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetPurchaseInvoicesRanked: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$stagingDocumentID = 56; // Integer | Get staging purchase invoice identifier to compare to financial system
$supplierID = 56; // Integer | The supplier identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $stagingDocumentID = 56; # Integer | Get staging purchase invoice identifier to compare to financial system
my $supplierID = 56; # Integer | The supplier identifier

eval {
    my $result = $api_instance->aPGetPurchaseInvoicesRanked(stagingDocumentID => $stagingDocumentID, supplierID => $supplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetPurchaseInvoicesRanked: $@\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.AccountsPayableApi()
stagingDocumentID = 56 # Integer | Get staging purchase invoice identifier to compare to financial system (default to null)
supplierID = 56 # Integer | The supplier identifier (optional) (default to null)

try:
    # Get purchase invoices ranked
    api_response = api_instance.a_p_get_purchase_invoices_ranked(stagingDocumentID, supplierID=supplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetPurchaseInvoicesRanked: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let stagingDocumentID = 56; // Integer
    let supplierID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetPurchaseInvoicesRanked(stagingDocumentID, supplierID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
stagingDocumentID*
Integer (int32)
Get staging purchase invoice identifier to compare to financial system
Required
supplierID
Integer (int32)
The supplier identifier

Responses


aPGetStagedTransactions

Get staged transactions

Allows a buyer tenant to view staged transactions


/Spenda/Payments/AccountsPayable/StagedTransactions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/StagedTransactions?sourceSupplierID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer sourceSupplierID = 56; // Integer | Source Supplier unique identifier in the buyer's tenancy

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

final api_instance = DefaultApi();

final Integer sourceSupplierID = new Integer(); // Integer | Source Supplier unique identifier in the buyer's tenancy

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer sourceSupplierID = 56; // Integer | Source Supplier unique identifier in the buyer's tenancy

        try {
            getStagedTransactionsResponse result = apiInstance.aPGetStagedTransactions(sourceSupplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetStagedTransactions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *sourceSupplierID = 56; // Source Supplier unique identifier in the buyer's tenancy (optional) (default to null)

// Get staged transactions
[apiInstance aPGetStagedTransactionsWith:sourceSupplierID
              completionHandler: ^(getStagedTransactionsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'sourceSupplierID': 56 // {Integer} Source Supplier unique identifier in the buyer's tenancy
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var sourceSupplierID = 56;  // Integer | Source Supplier unique identifier in the buyer's tenancy (optional)  (default to null)

            try {
                // Get staged transactions
                getStagedTransactionsResponse result = apiInstance.aPGetStagedTransactions(sourceSupplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetStagedTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$sourceSupplierID = 56; // Integer | Source Supplier unique identifier in the buyer's tenancy

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $sourceSupplierID = 56; # Integer | Source Supplier unique identifier in the buyer's tenancy

eval {
    my $result = $api_instance->aPGetStagedTransactions(sourceSupplierID => $sourceSupplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetStagedTransactions: $@\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.AccountsPayableApi()
sourceSupplierID = 56 # Integer | Source Supplier unique identifier in the buyer's tenancy (optional) (default to null)

try:
    # Get staged transactions
    api_response = api_instance.a_p_get_staged_transactions(sourceSupplierID=sourceSupplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetStagedTransactions: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let sourceSupplierID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetStagedTransactions(sourceSupplierID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
sourceSupplierID
Integer (int32)
Source Supplier unique identifier in the buyer's tenancy

Responses


aPGetStagingDebitNote

Get details for a staging debit note

Allows a buyer tenant to get details on a staging debit note


/Spenda/Payments/AccountsPayable/StagingDebitNote/{stagingDebitNoteID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/StagingDebitNote/{stagingDebitNoteID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingDebitNoteID = 56; // Integer | The staging debit note ID

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

final api_instance = DefaultApi();

final Integer stagingDebitNoteID = new Integer(); // Integer | The staging debit note ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingDebitNoteID = 56; // Integer | The staging debit note ID

        try {
            getStagingDebitNoteResponse result = apiInstance.aPGetStagingDebitNote(stagingDebitNoteID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetStagingDebitNote");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *stagingDebitNoteID = 56; // The staging debit note ID (default to null)

// Get details for a staging debit note
[apiInstance aPGetStagingDebitNoteWith:stagingDebitNoteID
              completionHandler: ^(getStagingDebitNoteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var stagingDebitNoteID = 56; // {Integer} The staging debit note ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var stagingDebitNoteID = 56;  // Integer | The staging debit note ID (default to null)

            try {
                // Get details for a staging debit note
                getStagingDebitNoteResponse result = apiInstance.aPGetStagingDebitNote(stagingDebitNoteID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetStagingDebitNote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$stagingDebitNoteID = 56; // Integer | The staging debit note ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $stagingDebitNoteID = 56; # Integer | The staging debit note ID

eval {
    my $result = $api_instance->aPGetStagingDebitNote(stagingDebitNoteID => $stagingDebitNoteID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetStagingDebitNote: $@\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.AccountsPayableApi()
stagingDebitNoteID = 56 # Integer | The staging debit note ID (default to null)

try:
    # Get details for a staging debit note
    api_response = api_instance.a_p_get_staging_debit_note(stagingDebitNoteID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetStagingDebitNote: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let stagingDebitNoteID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetStagingDebitNote(stagingDebitNoteID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stagingDebitNoteID*
Integer (int32)
The staging debit note ID
Required

Responses


aPGetStagingPurchaseInvoice

Get details for a staging purchase invoice

Allows a buyer tenant to get details on a staging purchase invoice


/Spenda/Payments/AccountsPayable/StagingPurchaseInvoice/{stagingPurchaseInvoiceID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/StagingPurchaseInvoice/{stagingPurchaseInvoiceID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingPurchaseInvoiceID = 56; // Integer | The staging purchase invoice ID

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

final api_instance = DefaultApi();

final Integer stagingPurchaseInvoiceID = new Integer(); // Integer | The staging purchase invoice ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer stagingPurchaseInvoiceID = 56; // Integer | The staging purchase invoice ID

        try {
            getStagingPurchaseInvoiceResponse result = apiInstance.aPGetStagingPurchaseInvoice(stagingPurchaseInvoiceID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetStagingPurchaseInvoice");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *stagingPurchaseInvoiceID = 56; // The staging purchase invoice ID (default to null)

// Get details for a staging purchase invoice
[apiInstance aPGetStagingPurchaseInvoiceWith:stagingPurchaseInvoiceID
              completionHandler: ^(getStagingPurchaseInvoiceResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var stagingPurchaseInvoiceID = 56; // {Integer} The staging purchase invoice ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var stagingPurchaseInvoiceID = 56;  // Integer | The staging purchase invoice ID (default to null)

            try {
                // Get details for a staging purchase invoice
                getStagingPurchaseInvoiceResponse result = apiInstance.aPGetStagingPurchaseInvoice(stagingPurchaseInvoiceID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetStagingPurchaseInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$stagingPurchaseInvoiceID = 56; // Integer | The staging purchase invoice ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $stagingPurchaseInvoiceID = 56; # Integer | The staging purchase invoice ID

eval {
    my $result = $api_instance->aPGetStagingPurchaseInvoice(stagingPurchaseInvoiceID => $stagingPurchaseInvoiceID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetStagingPurchaseInvoice: $@\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.AccountsPayableApi()
stagingPurchaseInvoiceID = 56 # Integer | The staging purchase invoice ID (default to null)

try:
    # Get details for a staging purchase invoice
    api_response = api_instance.a_p_get_staging_purchase_invoice(stagingPurchaseInvoiceID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetStagingPurchaseInvoice: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let stagingPurchaseInvoiceID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetStagingPurchaseInvoice(stagingPurchaseInvoiceID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stagingPurchaseInvoiceID*
Integer (int32)
The staging purchase invoice ID
Required

Responses


aPGetStatusForPaymentBatch

Get status for a payment batch

Allows a buyer tenant to get status on a payment batch


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Payment

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Payment"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

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

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

        try {
            getStatusForPaymentBatchResponse result = apiInstance.aPGetStatusForPaymentBatch(paymentBatchID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetStatusForPaymentBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)

// Get status for a payment batch
[apiInstance aPGetStatusForPaymentBatchWith:paymentBatchID
              completionHandler: ^(getStatusForPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)

            try {
                // Get status for a payment batch
                getStatusForPaymentBatchResponse result = apiInstance.aPGetStatusForPaymentBatch(paymentBatchID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetStatusForPaymentBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID

eval {
    my $result = $api_instance->aPGetStatusForPaymentBatch(paymentBatchID => $paymentBatchID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetStatusForPaymentBatch: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)

try:
    # Get status for a payment batch
    api_response = api_instance.a_p_get_status_for_payment_batch(paymentBatchID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetStatusForPaymentBatch: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetStatusForPaymentBatch(paymentBatchID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required

Responses


aPGetSupplierInventoryPostingRules

Get inventory posting rules for a supplier

Allows a buyer tenant to get inventory posting rules for a supplier


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/InventoryPostingRules

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/InventoryPostingRules"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID

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

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID

        try {
            getSupplierInventoryPostingRulesResponse result = apiInstance.aPGetSupplierInventoryPostingRules(supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetSupplierInventoryPostingRules");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)

// Get inventory posting rules for a supplier
[apiInstance aPGetSupplierInventoryPostingRulesWith:supplierID
              completionHandler: ^(getSupplierInventoryPostingRulesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)

            try {
                // Get inventory posting rules for a supplier
                getSupplierInventoryPostingRulesResponse result = apiInstance.aPGetSupplierInventoryPostingRules(supplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetSupplierInventoryPostingRules: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID

eval {
    my $result = $api_instance->aPGetSupplierInventoryPostingRules(supplierID => $supplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetSupplierInventoryPostingRules: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)

try:
    # Get inventory posting rules for a supplier
    api_response = api_instance.a_p_get_supplier_inventory_posting_rules(supplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetSupplierInventoryPostingRules: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetSupplierInventoryPostingRules(supplierID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required

Responses


aPGetSupplierVendorPostingRule

Gets Vendor Posting Rules for a supplier

Allows a tenant to get Vendor Posting Rules for a supplier


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/VendorPostingRule

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/VendorPostingRule"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID

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

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID

        try {
            getSupplierVendorPostingRulesResponse result = apiInstance.aPGetSupplierVendorPostingRule(supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetSupplierVendorPostingRule");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)

// Gets Vendor Posting Rules for a supplier
[apiInstance aPGetSupplierVendorPostingRuleWith:supplierID
              completionHandler: ^(getSupplierVendorPostingRulesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)

            try {
                // Gets Vendor Posting Rules for a supplier
                getSupplierVendorPostingRulesResponse result = apiInstance.aPGetSupplierVendorPostingRule(supplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetSupplierVendorPostingRule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID

eval {
    my $result = $api_instance->aPGetSupplierVendorPostingRule(supplierID => $supplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetSupplierVendorPostingRule: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)

try:
    # Gets Vendor Posting Rules for a supplier
    api_response = api_instance.a_p_get_supplier_vendor_posting_rule(supplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetSupplierVendorPostingRule: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetSupplierVendorPostingRule(supplierID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required

Responses


aPGetUpcomingPaymentBatches

Get list of upcoming payment batches

Allows a buyer tenant to get a list of upcoming payment batches


/Spenda/Payments/AccountsPayable/PaymentBatch/UpcomingBatches

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/UpcomingBatches?StartDate=2013-10-20T19:20:30+01:00&EndDate=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.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date

        try {
            getUpcomingAccountsPayableBatchesResponse result = apiInstance.aPGetUpcomingPaymentBatches(startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetUpcomingPaymentBatches");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Date startDate = new Date(); // Date | The start date
final Date endDate = new Date(); // Date | The end date

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | The start date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | The end date

        try {
            getUpcomingAccountsPayableBatchesResponse result = apiInstance.aPGetUpcomingPaymentBatches(startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetUpcomingPaymentBatches");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Date *startDate = 2013-10-20T19:20:30+01:00; // The start date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // The end date (optional) (default to null)

// Get list of upcoming payment batches
[apiInstance aPGetUpcomingPaymentBatchesWith:startDate
    endDate:endDate
              completionHandler: ^(getUpcomingAccountsPayableBatchesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} The start date
  'endDate': 2013-10-20T19:20:30+01:00 // {Date} The end date
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | The start date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | The end date (optional)  (default to null)

            try {
                // Get list of upcoming payment batches
                getUpcomingAccountsPayableBatchesResponse result = apiInstance.aPGetUpcomingPaymentBatches(startDate, endDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetUpcomingPaymentBatches: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$startDate = 2013-10-20T19:20:30+01:00; // Date | The start date
$endDate = 2013-10-20T19:20:30+01:00; // Date | The end date

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $startDate = 2013-10-20T19:20:30+01:00; # Date | The start date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | The end date

eval {
    my $result = $api_instance->aPGetUpcomingPaymentBatches(startDate => $startDate, endDate => $endDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetUpcomingPaymentBatches: $@\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.AccountsPayableApi()
startDate = 2013-10-20T19:20:30+01:00 # Date | The start date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | The end date (optional) (default to null)

try:
    # Get list of upcoming payment batches
    api_response = api_instance.a_p_get_upcoming_payment_batches(startDate=startDate, endDate=endDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetUpcomingPaymentBatches: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetUpcomingPaymentBatches(startDate, endDate, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartDate
Date (date-time)
The start date
EndDate
Date (date-time)
The end date

Responses


aPGetUserPermissions

Get user permissions

Allows a buyer tenant to get user permissions


/Spenda/Payments/AccountsPayable/PaymentBatch/UserPermissions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/UserPermissions"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            getUserPermissionsResponse result = apiInstance.aPGetUserPermissions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetUserPermissions");
            e.printStackTrace();
        }
    }
}


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

// Get user permissions
[apiInstance aPGetUserPermissionsWithCompletionHandler: 
              ^(getUserPermissionsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get user permissions
                getUserPermissionsResponse result = apiInstance.aPGetUserPermissions();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetUserPermissions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetUserPermissions();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetUserPermissions: $@\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.AccountsPayableApi()

try:
    # Get user permissions
    api_response = api_instance.a_p_get_user_permissions()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetUserPermissions: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetUserPermissions(&context).wait();

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

Scopes

Parameters

Responses


aPGetUserSettings

Get User Settings

Allows a tenant to get default settings


/Spenda/Payments/AccountsPayable/UserSettings

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/UserSettings"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            userSettingsResponse result = apiInstance.aPGetUserSettings();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetUserSettings");
            e.printStackTrace();
        }
    }
}


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

// Get User Settings
[apiInstance aPGetUserSettingsWithCompletionHandler: 
              ^(userSettingsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get User Settings
                userSettingsResponse result = apiInstance.aPGetUserSettings();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetUserSettings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetUserSettings();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetUserSettings: $@\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.AccountsPayableApi()

try:
    # Get User Settings
    api_response = api_instance.a_p_get_user_settings()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetUserSettings: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetUserSettings(&context).wait();

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

Scopes

Parameters

Responses


aPGetWalletDashboard

Get wallet dashboard

Allows a buyer tenant to get wallet dashboard details


/Spenda/Payments/AccountsPayable/PaymentBatch/WalletDashboard

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/WalletDashboard"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsPayableApi;

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

        try {
            getWalletDashboardResponse result = apiInstance.aPGetWalletDashboard();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPGetWalletDashboard");
            e.printStackTrace();
        }
    }
}


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

// Get wallet dashboard
[apiInstance aPGetWalletDashboardWithCompletionHandler: 
              ^(getWalletDashboardResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Get wallet dashboard
                getWalletDashboardResponse result = apiInstance.aPGetWalletDashboard();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPGetWalletDashboard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aPGetWalletDashboard();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPGetWalletDashboard: $@\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.AccountsPayableApi()

try:
    # Get wallet dashboard
    api_response = api_instance.a_p_get_wallet_dashboard()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPGetWalletDashboard: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPGetWalletDashboard(&context).wait();

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

Scopes

Parameters

Responses


aPMergeSuppliers

Merges a supplier with another

Allows a buyer tenant to merge a supplier with another


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/Merge

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/Merge" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SupplierVendorPostingRuleRequest supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest | 

        try {
            mergeSuppliersRequest result = apiInstance.aPMergeSuppliers(supplierID, supplierVendorPostingRuleRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPMergeSuppliers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID
final SupplierVendorPostingRuleRequest supplierVendorPostingRuleRequest = new SupplierVendorPostingRuleRequest(); // SupplierVendorPostingRuleRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SupplierVendorPostingRuleRequest supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest | 

        try {
            mergeSuppliersRequest result = apiInstance.aPMergeSuppliers(supplierID, supplierVendorPostingRuleRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPMergeSuppliers");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)
SupplierVendorPostingRuleRequest *supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; //  (optional)

// Merges a supplier with another
[apiInstance aPMergeSuppliersWith:supplierID
    supplierVendorPostingRuleRequest:supplierVendorPostingRuleRequest
              completionHandler: ^(mergeSuppliersRequest output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID
var opts = {
  'supplierVendorPostingRuleRequest': {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"} // {SupplierVendorPostingRuleRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)
            var supplierVendorPostingRuleRequest = new SupplierVendorPostingRuleRequest(); // SupplierVendorPostingRuleRequest |  (optional) 

            try {
                // Merges a supplier with another
                mergeSuppliersRequest result = apiInstance.aPMergeSuppliers(supplierID, supplierVendorPostingRuleRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPMergeSuppliers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID
$supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID
my $supplierVendorPostingRuleRequest = WWW::OPenAPIClient::Object::SupplierVendorPostingRuleRequest->new(); # SupplierVendorPostingRuleRequest | 

eval {
    my $result = $api_instance->aPMergeSuppliers(supplierID => $supplierID, supplierVendorPostingRuleRequest => $supplierVendorPostingRuleRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPMergeSuppliers: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)
supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"} # SupplierVendorPostingRuleRequest |  (optional)

try:
    # Merges a supplier with another
    api_response = api_instance.a_p_merge_suppliers(supplierID, supplierVendorPostingRuleRequest=supplierVendorPostingRuleRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPMergeSuppliers: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPMergeSuppliers(supplierID, supplierVendorPostingRuleRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required
Body parameters
Name Description
supplierVendorPostingRuleRequest

Responses


aPSavePayeesDetail

Save details for payees

Allows a buyer tenant to save details for payees


/Spenda/Payments/AccountsPayable/Payees

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Payees" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SavePayeesRequest savePayeesRequest = {"value":[{"payeeID":0,"emailAddress":"string","defaultDescription":"string"}]}; // SavePayeesRequest | 

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

final api_instance = DefaultApi();

final SavePayeesRequest savePayeesRequest = new SavePayeesRequest(); // SavePayeesRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SavePayeesRequest savePayeesRequest = {"value":[{"payeeID":0,"emailAddress":"string","defaultDescription":"string"}]}; // SavePayeesRequest | 

        try {
            getPayeesResponse result = apiInstance.aPSavePayeesDetail(savePayeesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSavePayeesDetail");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
SavePayeesRequest *savePayeesRequest = {"value":[{"payeeID":0,"emailAddress":"string","defaultDescription":"string"}]}; //  (optional)

// Save details for payees
[apiInstance aPSavePayeesDetailWith:savePayeesRequest
              completionHandler: ^(getPayeesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'savePayeesRequest': {"value":[{"payeeID":0,"emailAddress":"string","defaultDescription":"string"}]} // {SavePayeesRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var savePayeesRequest = new SavePayeesRequest(); // SavePayeesRequest |  (optional) 

            try {
                // Save details for payees
                getPayeesResponse result = apiInstance.aPSavePayeesDetail(savePayeesRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSavePayeesDetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$savePayeesRequest = {"value":[{"payeeID":0,"emailAddress":"string","defaultDescription":"string"}]}; // SavePayeesRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $savePayeesRequest = WWW::OPenAPIClient::Object::SavePayeesRequest->new(); # SavePayeesRequest | 

eval {
    my $result = $api_instance->aPSavePayeesDetail(savePayeesRequest => $savePayeesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSavePayeesDetail: $@\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.AccountsPayableApi()
savePayeesRequest = {"value":[{"payeeID":0,"emailAddress":"string","defaultDescription":"string"}]} # SavePayeesRequest |  (optional)

try:
    # Save details for payees
    api_response = api_instance.a_p_save_payees_detail(savePayeesRequest=savePayeesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSavePayeesDetail: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let savePayeesRequest = {"value":[{"payeeID":0,"emailAddress":"string","defaultDescription":"string"}]}; // SavePayeesRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSavePayeesDetail(savePayeesRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
savePayeesRequest

Responses


aPSavePaymentBatch

Save details for a payment batch

Allows a buyer tenant to save details for a payment batch


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID
        UpdatePaymentBatchRequest updatePaymentBatchRequest = {"selectedDebitAccount":{"paymentAccountID":0,"customerID":0,"accountGUID":"string","paymentService":"string","friendlyName":"string","usage":"Supplier","createdDateTime_utc":"string","lastModifiedDateTime_utc":"string","lastModifiedUserID":0,"serviceType":"BankAccount","isDeletePermitted":true,"isDefaultLendingRepaymentAccount":true,"verificationStatus":"Pending","noVerificationCodeAttempts":0,"paymentServiceStatus":"string","paymentServiceDetails":"string","paymentMethodID":0,"paymentMethod":"Eftpos","isInvigoDefault":true,"scheduledPaymentCount":0,"isDefault":true,"isInvigoDefaultPermitted":true,"isSingleUse":true,"singleUseExpiryDateTime_utc":"string","merchantTenantGlobalID":"string","isPayerFeeApplicable":true,"isAttentionRequired":true,"attentionRequiredReason":"string","isAuthorisationRequired":true,"createdUserID":0,"ownerTenantID":0,"fees":[{"buyerFeeAmount":0,"buyerFeeDescription":"string","feeName":"Unknown","merchantFeeAmount":0,"merchantFeeDescription":"string","paymentServiceName":"string","payerFeePercentage":0,"transactionFeeStructureID":0}],"isSalesOrderReservationPermitted":true,"paymentAmount":0,"buyerTotalAmount":0},"value":{"id":0,"name":"string","modifiedByUserID":0,"dueDate":"string","credits":[{"transactionGUID":"string","description":"string","isPayeeDefaultDescription":true,"bankBSB":"string","bankAccountNumber":"string","action":"string","actionType":1,"hasChanges":true}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}]},"code":"string","message":"string","id":0}; // UpdatePaymentBatchRequest | 

        try {
            getPaymentBatchResponse result = apiInstance.aPSavePaymentBatch(paymentBatchID, updatePaymentBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSavePaymentBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID
final UpdatePaymentBatchRequest updatePaymentBatchRequest = new UpdatePaymentBatchRequest(); // UpdatePaymentBatchRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID
        UpdatePaymentBatchRequest updatePaymentBatchRequest = {"selectedDebitAccount":{"paymentAccountID":0,"customerID":0,"accountGUID":"string","paymentService":"string","friendlyName":"string","usage":"Supplier","createdDateTime_utc":"string","lastModifiedDateTime_utc":"string","lastModifiedUserID":0,"serviceType":"BankAccount","isDeletePermitted":true,"isDefaultLendingRepaymentAccount":true,"verificationStatus":"Pending","noVerificationCodeAttempts":0,"paymentServiceStatus":"string","paymentServiceDetails":"string","paymentMethodID":0,"paymentMethod":"Eftpos","isInvigoDefault":true,"scheduledPaymentCount":0,"isDefault":true,"isInvigoDefaultPermitted":true,"isSingleUse":true,"singleUseExpiryDateTime_utc":"string","merchantTenantGlobalID":"string","isPayerFeeApplicable":true,"isAttentionRequired":true,"attentionRequiredReason":"string","isAuthorisationRequired":true,"createdUserID":0,"ownerTenantID":0,"fees":[{"buyerFeeAmount":0,"buyerFeeDescription":"string","feeName":"Unknown","merchantFeeAmount":0,"merchantFeeDescription":"string","paymentServiceName":"string","payerFeePercentage":0,"transactionFeeStructureID":0}],"isSalesOrderReservationPermitted":true,"paymentAmount":0,"buyerTotalAmount":0},"value":{"id":0,"name":"string","modifiedByUserID":0,"dueDate":"string","credits":[{"transactionGUID":"string","description":"string","isPayeeDefaultDescription":true,"bankBSB":"string","bankAccountNumber":"string","action":"string","actionType":1,"hasChanges":true}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}]},"code":"string","message":"string","id":0}; // UpdatePaymentBatchRequest | 

        try {
            getPaymentBatchResponse result = apiInstance.aPSavePaymentBatch(paymentBatchID, updatePaymentBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSavePaymentBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)
UpdatePaymentBatchRequest *updatePaymentBatchRequest = {"selectedDebitAccount":{"paymentAccountID":0,"customerID":0,"accountGUID":"string","paymentService":"string","friendlyName":"string","usage":"Supplier","createdDateTime_utc":"string","lastModifiedDateTime_utc":"string","lastModifiedUserID":0,"serviceType":"BankAccount","isDeletePermitted":true,"isDefaultLendingRepaymentAccount":true,"verificationStatus":"Pending","noVerificationCodeAttempts":0,"paymentServiceStatus":"string","paymentServiceDetails":"string","paymentMethodID":0,"paymentMethod":"Eftpos","isInvigoDefault":true,"scheduledPaymentCount":0,"isDefault":true,"isInvigoDefaultPermitted":true,"isSingleUse":true,"singleUseExpiryDateTime_utc":"string","merchantTenantGlobalID":"string","isPayerFeeApplicable":true,"isAttentionRequired":true,"attentionRequiredReason":"string","isAuthorisationRequired":true,"createdUserID":0,"ownerTenantID":0,"fees":[{"buyerFeeAmount":0,"buyerFeeDescription":"string","feeName":"Unknown","merchantFeeAmount":0,"merchantFeeDescription":"string","paymentServiceName":"string","payerFeePercentage":0,"transactionFeeStructureID":0}],"isSalesOrderReservationPermitted":true,"paymentAmount":0,"buyerTotalAmount":0},"value":{"id":0,"name":"string","modifiedByUserID":0,"dueDate":"string","credits":[{"transactionGUID":"string","description":"string","isPayeeDefaultDescription":true,"bankBSB":"string","bankAccountNumber":"string","action":"string","actionType":1,"hasChanges":true}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}]},"code":"string","message":"string","id":0}; //  (optional)

// Save details for a payment batch
[apiInstance aPSavePaymentBatchWith:paymentBatchID
    updatePaymentBatchRequest:updatePaymentBatchRequest
              completionHandler: ^(getPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID
var opts = {
  'updatePaymentBatchRequest': {"selectedDebitAccount":{"paymentAccountID":0,"customerID":0,"accountGUID":"string","paymentService":"string","friendlyName":"string","usage":"Supplier","createdDateTime_utc":"string","lastModifiedDateTime_utc":"string","lastModifiedUserID":0,"serviceType":"BankAccount","isDeletePermitted":true,"isDefaultLendingRepaymentAccount":true,"verificationStatus":"Pending","noVerificationCodeAttempts":0,"paymentServiceStatus":"string","paymentServiceDetails":"string","paymentMethodID":0,"paymentMethod":"Eftpos","isInvigoDefault":true,"scheduledPaymentCount":0,"isDefault":true,"isInvigoDefaultPermitted":true,"isSingleUse":true,"singleUseExpiryDateTime_utc":"string","merchantTenantGlobalID":"string","isPayerFeeApplicable":true,"isAttentionRequired":true,"attentionRequiredReason":"string","isAuthorisationRequired":true,"createdUserID":0,"ownerTenantID":0,"fees":[{"buyerFeeAmount":0,"buyerFeeDescription":"string","feeName":"Unknown","merchantFeeAmount":0,"merchantFeeDescription":"string","paymentServiceName":"string","payerFeePercentage":0,"transactionFeeStructureID":0}],"isSalesOrderReservationPermitted":true,"paymentAmount":0,"buyerTotalAmount":0},"value":{"id":0,"name":"string","modifiedByUserID":0,"dueDate":"string","credits":[{"transactionGUID":"string","description":"string","isPayeeDefaultDescription":true,"bankBSB":"string","bankAccountNumber":"string","action":"string","actionType":1,"hasChanges":true}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}]},"code":"string","message":"string","id":0} // {UpdatePaymentBatchRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)
            var updatePaymentBatchRequest = new UpdatePaymentBatchRequest(); // UpdatePaymentBatchRequest |  (optional) 

            try {
                // Save details for a payment batch
                getPaymentBatchResponse result = apiInstance.aPSavePaymentBatch(paymentBatchID, updatePaymentBatchRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSavePaymentBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID
$updatePaymentBatchRequest = {"selectedDebitAccount":{"paymentAccountID":0,"customerID":0,"accountGUID":"string","paymentService":"string","friendlyName":"string","usage":"Supplier","createdDateTime_utc":"string","lastModifiedDateTime_utc":"string","lastModifiedUserID":0,"serviceType":"BankAccount","isDeletePermitted":true,"isDefaultLendingRepaymentAccount":true,"verificationStatus":"Pending","noVerificationCodeAttempts":0,"paymentServiceStatus":"string","paymentServiceDetails":"string","paymentMethodID":0,"paymentMethod":"Eftpos","isInvigoDefault":true,"scheduledPaymentCount":0,"isDefault":true,"isInvigoDefaultPermitted":true,"isSingleUse":true,"singleUseExpiryDateTime_utc":"string","merchantTenantGlobalID":"string","isPayerFeeApplicable":true,"isAttentionRequired":true,"attentionRequiredReason":"string","isAuthorisationRequired":true,"createdUserID":0,"ownerTenantID":0,"fees":[{"buyerFeeAmount":0,"buyerFeeDescription":"string","feeName":"Unknown","merchantFeeAmount":0,"merchantFeeDescription":"string","paymentServiceName":"string","payerFeePercentage":0,"transactionFeeStructureID":0}],"isSalesOrderReservationPermitted":true,"paymentAmount":0,"buyerTotalAmount":0},"value":{"id":0,"name":"string","modifiedByUserID":0,"dueDate":"string","credits":[{"transactionGUID":"string","description":"string","isPayeeDefaultDescription":true,"bankBSB":"string","bankAccountNumber":"string","action":"string","actionType":1,"hasChanges":true}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}]},"code":"string","message":"string","id":0}; // UpdatePaymentBatchRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID
my $updatePaymentBatchRequest = WWW::OPenAPIClient::Object::UpdatePaymentBatchRequest->new(); # UpdatePaymentBatchRequest | 

eval {
    my $result = $api_instance->aPSavePaymentBatch(paymentBatchID => $paymentBatchID, updatePaymentBatchRequest => $updatePaymentBatchRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSavePaymentBatch: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)
updatePaymentBatchRequest = {"selectedDebitAccount":{"paymentAccountID":0,"customerID":0,"accountGUID":"string","paymentService":"string","friendlyName":"string","usage":"Supplier","createdDateTime_utc":"string","lastModifiedDateTime_utc":"string","lastModifiedUserID":0,"serviceType":"BankAccount","isDeletePermitted":true,"isDefaultLendingRepaymentAccount":true,"verificationStatus":"Pending","noVerificationCodeAttempts":0,"paymentServiceStatus":"string","paymentServiceDetails":"string","paymentMethodID":0,"paymentMethod":"Eftpos","isInvigoDefault":true,"scheduledPaymentCount":0,"isDefault":true,"isInvigoDefaultPermitted":true,"isSingleUse":true,"singleUseExpiryDateTime_utc":"string","merchantTenantGlobalID":"string","isPayerFeeApplicable":true,"isAttentionRequired":true,"attentionRequiredReason":"string","isAuthorisationRequired":true,"createdUserID":0,"ownerTenantID":0,"fees":[{"buyerFeeAmount":0,"buyerFeeDescription":"string","feeName":"Unknown","merchantFeeAmount":0,"merchantFeeDescription":"string","paymentServiceName":"string","payerFeePercentage":0,"transactionFeeStructureID":0}],"isSalesOrderReservationPermitted":true,"paymentAmount":0,"buyerTotalAmount":0},"value":{"id":0,"name":"string","modifiedByUserID":0,"dueDate":"string","credits":[{"transactionGUID":"string","description":"string","isPayeeDefaultDescription":true,"bankBSB":"string","bankAccountNumber":"string","action":"string","actionType":1,"hasChanges":true}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}]},"code":"string","message":"string","id":0} # UpdatePaymentBatchRequest |  (optional)

try:
    # Save details for a payment batch
    api_response = api_instance.a_p_save_payment_batch(paymentBatchID, updatePaymentBatchRequest=updatePaymentBatchRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSavePaymentBatch: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer
    let updatePaymentBatchRequest = {"selectedDebitAccount":{"paymentAccountID":0,"customerID":0,"accountGUID":"string","paymentService":"string","friendlyName":"string","usage":"Supplier","createdDateTime_utc":"string","lastModifiedDateTime_utc":"string","lastModifiedUserID":0,"serviceType":"BankAccount","isDeletePermitted":true,"isDefaultLendingRepaymentAccount":true,"verificationStatus":"Pending","noVerificationCodeAttempts":0,"paymentServiceStatus":"string","paymentServiceDetails":"string","paymentMethodID":0,"paymentMethod":"Eftpos","isInvigoDefault":true,"scheduledPaymentCount":0,"isDefault":true,"isInvigoDefaultPermitted":true,"isSingleUse":true,"singleUseExpiryDateTime_utc":"string","merchantTenantGlobalID":"string","isPayerFeeApplicable":true,"isAttentionRequired":true,"attentionRequiredReason":"string","isAuthorisationRequired":true,"createdUserID":0,"ownerTenantID":0,"fees":[{"buyerFeeAmount":0,"buyerFeeDescription":"string","feeName":"Unknown","merchantFeeAmount":0,"merchantFeeDescription":"string","paymentServiceName":"string","payerFeePercentage":0,"transactionFeeStructureID":0}],"isSalesOrderReservationPermitted":true,"paymentAmount":0,"buyerTotalAmount":0},"value":{"id":0,"name":"string","modifiedByUserID":0,"dueDate":"string","credits":[{"transactionGUID":"string","description":"string","isPayeeDefaultDescription":true,"bankBSB":"string","bankAccountNumber":"string","action":"string","actionType":1,"hasChanges":true}],"purchaseInvoices":[{"purchaseInvoiceID":0,"appliedAmount":0,"action":"string","actionType":1}],"debits":[{"paymentAccountGUID":"string","paymentAmount":0,"paymentMethodID":0,"payerFeeAmount":0,"payerFeeDescription":"string"}],"debitNoteAllocations":[{"purchaseInvoiceID":0,"debitNoteID":0,"appliedAmount":0,"action":"string"}],"logs":[{"correlationID":"string","errorCode":"string","errorMessage":"string","status":"string"}],"actions":[{"correlationID":"string","actionName":"string","actionResult":true,"actionUserID":0,"attributeName":"string","oldValue":"string","newValue":"string"}]},"code":"string","message":"string","id":0}; // UpdatePaymentBatchRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSavePaymentBatch(paymentBatchID, updatePaymentBatchRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required
Body parameters
Name Description
updatePaymentBatchRequest

Responses


aPSaveUserSettings

Save User Settings

Allows a tenant to save default settings


/Spenda/Payments/AccountsPayable/UserSettings

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/UserSettings" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        UserSettingsRequest userSettingsRequest = {"defaultSearchStatusFilters":[0],"defaultTimelineGroupsFilter":0}; // UserSettingsRequest | 

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

final api_instance = DefaultApi();

final UserSettingsRequest userSettingsRequest = new UserSettingsRequest(); // UserSettingsRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        UserSettingsRequest userSettingsRequest = {"defaultSearchStatusFilters":[0],"defaultTimelineGroupsFilter":0}; // UserSettingsRequest | 

        try {
            userSettingsResponse result = apiInstance.aPSaveUserSettings(userSettingsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSaveUserSettings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
UserSettingsRequest *userSettingsRequest = {"defaultSearchStatusFilters":[0],"defaultTimelineGroupsFilter":0}; //  (optional)

// Save User Settings
[apiInstance aPSaveUserSettingsWith:userSettingsRequest
              completionHandler: ^(userSettingsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'userSettingsRequest': {"defaultSearchStatusFilters":[0],"defaultTimelineGroupsFilter":0} // {UserSettingsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var userSettingsRequest = new UserSettingsRequest(); // UserSettingsRequest |  (optional) 

            try {
                // Save User Settings
                userSettingsResponse result = apiInstance.aPSaveUserSettings(userSettingsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSaveUserSettings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$userSettingsRequest = {"defaultSearchStatusFilters":[0],"defaultTimelineGroupsFilter":0}; // UserSettingsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $userSettingsRequest = WWW::OPenAPIClient::Object::UserSettingsRequest->new(); # UserSettingsRequest | 

eval {
    my $result = $api_instance->aPSaveUserSettings(userSettingsRequest => $userSettingsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSaveUserSettings: $@\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.AccountsPayableApi()
userSettingsRequest = {"defaultSearchStatusFilters":[0],"defaultTimelineGroupsFilter":0} # UserSettingsRequest |  (optional)

try:
    # Save User Settings
    api_response = api_instance.a_p_save_user_settings(userSettingsRequest=userSettingsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSaveUserSettings: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let userSettingsRequest = {"defaultSearchStatusFilters":[0],"defaultTimelineGroupsFilter":0}; // UserSettingsRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSaveUserSettings(userSettingsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
userSettingsRequest

Responses


aPSearchSuppliersWithPostingDetails

Search suppliers with posting details

Allows a buyer tenant to search suppliers with posting details


/Spenda/Payments/AccountsPayable/Supplier

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier?StartRow=56&MaxResults=56&SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example&IsShowWithBSIDOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | perform a search on values specify in the sort field
        Boolean isShowWithBSIDOnly = true; // Boolean | Returns supplier which are or arent exported to Financial system

        try {
            suppliersWithPostingDetailsResponse result = apiInstance.aPSearchSuppliersWithPostingDetails(startRow, maxResults, sortField, sortOrder, searchString, isShowWithBSIDOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSearchSuppliersWithPostingDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startRow = new Integer(); // Integer | The start row position
final Integer maxResults = new Integer(); // Integer | The number of results to return
final String sortField = new String(); // String | The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile
final String sortOrder = new String(); // String | The sort order
final String searchString = new String(); // String | perform a search on values specify in the sort field
final Boolean isShowWithBSIDOnly = new Boolean(); // Boolean | Returns supplier which are or arent exported to Financial system

try {
    final result = await api_instance.aPSearchSuppliersWithPostingDetails(startRow, maxResults, sortField, sortOrder, searchString, isShowWithBSIDOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aPSearchSuppliersWithPostingDetails: $e\n');
}

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer startRow = 56; // Integer | The start row position
        Integer maxResults = 56; // Integer | The number of results to return
        String sortField = sortField_example; // String | The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile
        String sortOrder = sortOrder_example; // String | The sort order
        String searchString = searchString_example; // String | perform a search on values specify in the sort field
        Boolean isShowWithBSIDOnly = true; // Boolean | Returns supplier which are or arent exported to Financial system

        try {
            suppliersWithPostingDetailsResponse result = apiInstance.aPSearchSuppliersWithPostingDetails(startRow, maxResults, sortField, sortOrder, searchString, isShowWithBSIDOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSearchSuppliersWithPostingDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *startRow = 56; // The start row position (optional) (default to null)
Integer *maxResults = 56; // The number of results to return (optional) (default to null)
String *sortField = sortField_example; // The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile (optional) (default to null)
String *sortOrder = sortOrder_example; // The sort order (optional) (default to null)
String *searchString = searchString_example; // perform a search on values specify in the sort field (optional) (default to null)
Boolean *isShowWithBSIDOnly = true; // Returns supplier which are or arent exported to Financial system (optional) (default to null)

// Search suppliers with posting details
[apiInstance aPSearchSuppliersWithPostingDetailsWith:startRow
    maxResults:maxResults
    sortField:sortField
    sortOrder:sortOrder
    searchString:searchString
    isShowWithBSIDOnly:isShowWithBSIDOnly
              completionHandler: ^(suppliersWithPostingDetailsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'startRow': 56, // {Integer} The start row position
  'maxResults': 56, // {Integer} The number of results to return
  'sortField': sortField_example, // {String} The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile
  'sortOrder': sortOrder_example, // {String} The sort order
  'searchString': searchString_example, // {String} perform a search on values specify in the sort field
  'isShowWithBSIDOnly': true // {Boolean} Returns supplier which are or arent exported to Financial system
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var startRow = 56;  // Integer | The start row position (optional)  (default to null)
            var maxResults = 56;  // Integer | The number of results to return (optional)  (default to null)
            var sortField = sortField_example;  // String | The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile (optional)  (default to null)
            var sortOrder = sortOrder_example;  // String | The sort order (optional)  (default to null)
            var searchString = searchString_example;  // String | perform a search on values specify in the sort field (optional)  (default to null)
            var isShowWithBSIDOnly = true;  // Boolean | Returns supplier which are or arent exported to Financial system (optional)  (default to null)

            try {
                // Search suppliers with posting details
                suppliersWithPostingDetailsResponse result = apiInstance.aPSearchSuppliersWithPostingDetails(startRow, maxResults, sortField, sortOrder, searchString, isShowWithBSIDOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSearchSuppliersWithPostingDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$startRow = 56; // Integer | The start row position
$maxResults = 56; // Integer | The number of results to return
$sortField = sortField_example; // String | The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile
$sortOrder = sortOrder_example; // String | The sort order
$searchString = searchString_example; // String | perform a search on values specify in the sort field
$isShowWithBSIDOnly = true; // Boolean | Returns supplier which are or arent exported to Financial system

try {
    $result = $api_instance->aPSearchSuppliersWithPostingDetails($startRow, $maxResults, $sortField, $sortOrder, $searchString, $isShowWithBSIDOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsPayableApi->aPSearchSuppliersWithPostingDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsPayableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $startRow = 56; # Integer | The start row position
my $maxResults = 56; # Integer | The number of results to return
my $sortField = sortField_example; # String | The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile
my $sortOrder = sortOrder_example; # String | The sort order
my $searchString = searchString_example; # String | perform a search on values specify in the sort field
my $isShowWithBSIDOnly = true; # Boolean | Returns supplier which are or arent exported to Financial system

eval {
    my $result = $api_instance->aPSearchSuppliersWithPostingDetails(startRow => $startRow, maxResults => $maxResults, sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString, isShowWithBSIDOnly => $isShowWithBSIDOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSearchSuppliersWithPostingDetails: $@\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.AccountsPayableApi()
startRow = 56 # Integer | The start row position (optional) (default to null)
maxResults = 56 # Integer | The number of results to return (optional) (default to null)
sortField = sortField_example # String | The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile (optional) (default to null)
sortOrder = sortOrder_example # String | The sort order (optional) (default to null)
searchString = searchString_example # String | perform a search on values specify in the sort field (optional) (default to null)
isShowWithBSIDOnly = true # Boolean | Returns supplier which are or arent exported to Financial system (optional) (default to null)

try:
    # Search suppliers with posting details
    api_response = api_instance.a_p_search_suppliers_with_posting_details(startRow=startRow, maxResults=maxResults, sortField=sortField, sortOrder=sortOrder, searchString=searchString, isShowWithBSIDOnly=isShowWithBSIDOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSearchSuppliersWithPostingDetails: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let startRow = 56; // Integer
    let maxResults = 56; // Integer
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String
    let isShowWithBSIDOnly = true; // Boolean

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSearchSuppliersWithPostingDetails(startRow, maxResults, sortField, sortOrder, searchString, isShowWithBSIDOnly, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
StartRow
Integer (int32)
The start row position
MaxResults
Integer (int32)
The number of results to return
SortField
String
The sort field: Name, RefNumber, FirstName, LastName, EmailAddress, Phone1, PhoneMobile
SortOrder
String
The sort order
SearchString
String
perform a search on values specify in the sort field
IsShowWithBSIDOnly
Boolean
Returns supplier which are or arent exported to Financial system

Responses


aPSendPaymentAdviceToSupplier

Send payment advice to supplier

Allows a buyer tenant to send payment advice to supplier


/Spenda/Payments/AccountsPayable/PaymentBatch/SendAdviceToSupplier

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/SendAdviceToSupplier" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SendAdviceToSupplierRequest sendAdviceToSupplierRequest = {"value":{"transactionGUIDs":["string"],"emailMessage":"string"},"code":"string","message":"string","id":0}; // SendAdviceToSupplierRequest | 

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

final api_instance = DefaultApi();

final SendAdviceToSupplierRequest sendAdviceToSupplierRequest = new SendAdviceToSupplierRequest(); // SendAdviceToSupplierRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SendAdviceToSupplierRequest sendAdviceToSupplierRequest = {"value":{"transactionGUIDs":["string"],"emailMessage":"string"},"code":"string","message":"string","id":0}; // SendAdviceToSupplierRequest | 

        try {
            sendAdviceToSupplierResponse result = apiInstance.aPSendPaymentAdviceToSupplier(sendAdviceToSupplierRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSendPaymentAdviceToSupplier");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
SendAdviceToSupplierRequest *sendAdviceToSupplierRequest = {"value":{"transactionGUIDs":["string"],"emailMessage":"string"},"code":"string","message":"string","id":0}; //  (optional)

// Send payment advice to supplier
[apiInstance aPSendPaymentAdviceToSupplierWith:sendAdviceToSupplierRequest
              completionHandler: ^(sendAdviceToSupplierResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'sendAdviceToSupplierRequest': {"value":{"transactionGUIDs":["string"],"emailMessage":"string"},"code":"string","message":"string","id":0} // {SendAdviceToSupplierRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var sendAdviceToSupplierRequest = new SendAdviceToSupplierRequest(); // SendAdviceToSupplierRequest |  (optional) 

            try {
                // Send payment advice to supplier
                sendAdviceToSupplierResponse result = apiInstance.aPSendPaymentAdviceToSupplier(sendAdviceToSupplierRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSendPaymentAdviceToSupplier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$sendAdviceToSupplierRequest = {"value":{"transactionGUIDs":["string"],"emailMessage":"string"},"code":"string","message":"string","id":0}; // SendAdviceToSupplierRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $sendAdviceToSupplierRequest = WWW::OPenAPIClient::Object::SendAdviceToSupplierRequest->new(); # SendAdviceToSupplierRequest | 

eval {
    my $result = $api_instance->aPSendPaymentAdviceToSupplier(sendAdviceToSupplierRequest => $sendAdviceToSupplierRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSendPaymentAdviceToSupplier: $@\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.AccountsPayableApi()
sendAdviceToSupplierRequest = {"value":{"transactionGUIDs":["string"],"emailMessage":"string"},"code":"string","message":"string","id":0} # SendAdviceToSupplierRequest |  (optional)

try:
    # Send payment advice to supplier
    api_response = api_instance.a_p_send_payment_advice_to_supplier(sendAdviceToSupplierRequest=sendAdviceToSupplierRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSendPaymentAdviceToSupplier: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let sendAdviceToSupplierRequest = {"value":{"transactionGUIDs":["string"],"emailMessage":"string"},"code":"string","message":"string","id":0}; // SendAdviceToSupplierRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSendPaymentAdviceToSupplier(sendAdviceToSupplierRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
sendAdviceToSupplierRequest

Responses


aPSendPaymentBatchForApproval

Send a payment batch for approval

Allows a buyer tenant to send a payment batch for approval


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/SendForApproval

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/SendForApproval"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

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

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID

        try {
            getPaymentBatchResponse result = apiInstance.aPSendPaymentBatchForApproval(paymentBatchID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSendPaymentBatchForApproval");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)

// Send a payment batch for approval
[apiInstance aPSendPaymentBatchForApprovalWith:paymentBatchID
              completionHandler: ^(getPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)

            try {
                // Send a payment batch for approval
                getPaymentBatchResponse result = apiInstance.aPSendPaymentBatchForApproval(paymentBatchID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSendPaymentBatchForApproval: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID

eval {
    my $result = $api_instance->aPSendPaymentBatchForApproval(paymentBatchID => $paymentBatchID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSendPaymentBatchForApproval: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)

try:
    # Send a payment batch for approval
    api_response = api_instance.a_p_send_payment_batch_for_approval(paymentBatchID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSendPaymentBatchForApproval: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSendPaymentBatchForApproval(paymentBatchID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required

Responses


aPSetAPOnboardingStep

Set step for AP onboarding

To set AP onboarding step


/Spenda/Payments/AccountsPayable/OnboardingStepProgress

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/OnboardingStepProgress" \
 -d '{
  "isSkipped" : true,
  "stepID" : 0,
  "isCompleted" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        array[apOnboardingStep] apOnboardingStep = [{"stepID":0,"isSkipped":true,"isCompleted":true}]; // array[apOnboardingStep] | 

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

final api_instance = DefaultApi();

final array[apOnboardingStep] apOnboardingStep = new array[apOnboardingStep](); // array[apOnboardingStep] | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        array[apOnboardingStep] apOnboardingStep = [{"stepID":0,"isSkipped":true,"isCompleted":true}]; // array[apOnboardingStep] | 

        try {
            setAPOnboardingStepResponse result = apiInstance.aPSetAPOnboardingStep(apOnboardingStep);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetAPOnboardingStep");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
array[apOnboardingStep] *apOnboardingStep = [{"stepID":0,"isSkipped":true,"isCompleted":true}]; //  (optional)

// Set step for AP onboarding
[apiInstance aPSetAPOnboardingStepWith:apOnboardingStep
              completionHandler: ^(setAPOnboardingStepResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'apOnboardingStep': [{"stepID":0,"isSkipped":true,"isCompleted":true}] // {array[apOnboardingStep]} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var apOnboardingStep = new array[apOnboardingStep](); // array[apOnboardingStep] |  (optional) 

            try {
                // Set step for AP onboarding
                setAPOnboardingStepResponse result = apiInstance.aPSetAPOnboardingStep(apOnboardingStep);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetAPOnboardingStep: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$apOnboardingStep = [{"stepID":0,"isSkipped":true,"isCompleted":true}]; // array[apOnboardingStep] | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $apOnboardingStep = [WWW::OPenAPIClient::Object::array[apOnboardingStep]->new()]; # array[apOnboardingStep] | 

eval {
    my $result = $api_instance->aPSetAPOnboardingStep(apOnboardingStep => $apOnboardingStep);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetAPOnboardingStep: $@\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.AccountsPayableApi()
apOnboardingStep = [{"stepID":0,"isSkipped":true,"isCompleted":true}] # array[apOnboardingStep] |  (optional)

try:
    # Set step for AP onboarding
    api_response = api_instance.a_p_set_ap_onboarding_step(apOnboardingStep=apOnboardingStep)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetAPOnboardingStep: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let apOnboardingStep = [{"stepID":0,"isSkipped":true,"isCompleted":true}]; // array[apOnboardingStep]

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetAPOnboardingStep(apOnboardingStep, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
apOnboardingStep

Responses


aPSetAPSettings

Sets AP settings for a supplier

Allows a tenant to set AP settings for a supplier


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetAPSettings

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetAPSettings" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SetAPSettingsRequest setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest | 

        try {
            setAPSettingsResponse result = apiInstance.aPSetAPSettings(supplierID, setAPSettingsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetAPSettings");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID
final SetAPSettingsRequest setAPSettingsRequest = new SetAPSettingsRequest(); // SetAPSettingsRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SetAPSettingsRequest setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest | 

        try {
            setAPSettingsResponse result = apiInstance.aPSetAPSettings(supplierID, setAPSettingsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetAPSettings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)
SetAPSettingsRequest *setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; //  (optional)

// Sets AP settings for a supplier
[apiInstance aPSetAPSettingsWith:supplierID
    setAPSettingsRequest:setAPSettingsRequest
              completionHandler: ^(setAPSettingsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID
var opts = {
  'setAPSettingsRequest': {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"} // {SetAPSettingsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)
            var setAPSettingsRequest = new SetAPSettingsRequest(); // SetAPSettingsRequest |  (optional) 

            try {
                // Sets AP settings for a supplier
                setAPSettingsResponse result = apiInstance.aPSetAPSettings(supplierID, setAPSettingsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetAPSettings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID
$setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID
my $setAPSettingsRequest = WWW::OPenAPIClient::Object::SetAPSettingsRequest->new(); # SetAPSettingsRequest | 

eval {
    my $result = $api_instance->aPSetAPSettings(supplierID => $supplierID, setAPSettingsRequest => $setAPSettingsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetAPSettings: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)
setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"} # SetAPSettingsRequest |  (optional)

try:
    # Sets AP settings for a supplier
    api_response = api_instance.a_p_set_ap_settings(supplierID, setAPSettingsRequest=setAPSettingsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetAPSettings: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetAPSettings(supplierID, setAPSettingsRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required
Body parameters
Name Description
setAPSettingsRequest

Responses


aPSetAsPostingSupplier

Sets a supplier as posting supplier

Allows a buyer tenant to set a supplier as posting supplier


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetAsPostingSupplier

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetAsPostingSupplier"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID

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

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID

        try {
            setAsPostingSupplierResponse result = apiInstance.aPSetAsPostingSupplier(supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetAsPostingSupplier");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)

// Sets a supplier as posting supplier
[apiInstance aPSetAsPostingSupplierWith:supplierID
              completionHandler: ^(setAsPostingSupplierResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)

            try {
                // Sets a supplier as posting supplier
                setAsPostingSupplierResponse result = apiInstance.aPSetAsPostingSupplier(supplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetAsPostingSupplier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID

eval {
    my $result = $api_instance->aPSetAsPostingSupplier(supplierID => $supplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetAsPostingSupplier: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)

try:
    # Sets a supplier as posting supplier
    api_response = api_instance.a_p_set_as_posting_supplier(supplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetAsPostingSupplier: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetAsPostingSupplier(supplierID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required

Responses


aPSetConfigShouldSendPaymentAdviceToSelf

Sets AP tenant to receive remittance

Allows a buyer to toggle AP config to send payment advice to self


/Spenda/Payments/AccountsPayable/Config/APShouldSendPaymentAdvice

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Config/APShouldSendPaymentAdvice" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SetAPConfigShouldSendAdviceRequest setAPConfigShouldSendAdviceRequest = {"shouldSend":true}; // SetAPConfigShouldSendAdviceRequest | 

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

final api_instance = DefaultApi();

final SetAPConfigShouldSendAdviceRequest setAPConfigShouldSendAdviceRequest = new SetAPConfigShouldSendAdviceRequest(); // SetAPConfigShouldSendAdviceRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SetAPConfigShouldSendAdviceRequest setAPConfigShouldSendAdviceRequest = {"shouldSend":true}; // SetAPConfigShouldSendAdviceRequest | 

        try {
            setAPSettingsResponse result = apiInstance.aPSetConfigShouldSendPaymentAdviceToSelf(setAPConfigShouldSendAdviceRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetConfigShouldSendPaymentAdviceToSelf");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
SetAPConfigShouldSendAdviceRequest *setAPConfigShouldSendAdviceRequest = {"shouldSend":true}; //  (optional)

// Sets AP tenant to receive remittance
[apiInstance aPSetConfigShouldSendPaymentAdviceToSelfWith:setAPConfigShouldSendAdviceRequest
              completionHandler: ^(setAPSettingsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'setAPConfigShouldSendAdviceRequest': {"shouldSend":true} // {SetAPConfigShouldSendAdviceRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var setAPConfigShouldSendAdviceRequest = new SetAPConfigShouldSendAdviceRequest(); // SetAPConfigShouldSendAdviceRequest |  (optional) 

            try {
                // Sets AP tenant to receive remittance
                setAPSettingsResponse result = apiInstance.aPSetConfigShouldSendPaymentAdviceToSelf(setAPConfigShouldSendAdviceRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetConfigShouldSendPaymentAdviceToSelf: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$setAPConfigShouldSendAdviceRequest = {"shouldSend":true}; // SetAPConfigShouldSendAdviceRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $setAPConfigShouldSendAdviceRequest = WWW::OPenAPIClient::Object::SetAPConfigShouldSendAdviceRequest->new(); # SetAPConfigShouldSendAdviceRequest | 

eval {
    my $result = $api_instance->aPSetConfigShouldSendPaymentAdviceToSelf(setAPConfigShouldSendAdviceRequest => $setAPConfigShouldSendAdviceRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetConfigShouldSendPaymentAdviceToSelf: $@\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.AccountsPayableApi()
setAPConfigShouldSendAdviceRequest = {"shouldSend":true} # SetAPConfigShouldSendAdviceRequest |  (optional)

try:
    # Sets AP tenant to receive remittance
    api_response = api_instance.a_p_set_config_should_send_payment_advice_to_self(setAPConfigShouldSendAdviceRequest=setAPConfigShouldSendAdviceRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetConfigShouldSendPaymentAdviceToSelf: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let setAPConfigShouldSendAdviceRequest = {"shouldSend":true}; // SetAPConfigShouldSendAdviceRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetConfigShouldSendPaymentAdviceToSelf(setAPConfigShouldSendAdviceRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
setAPConfigShouldSendAdviceRequest

Responses


aPSetCreditLineAccount

Set supplier credit line account

Allows a tenant to set supplier credit line account


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetCreditLineAccount

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetCreditLineAccount" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SetCreditLineAccountRequest setCreditLineAccountRequest = {"supplierID":0,"creditLineAccountID":0}; // SetCreditLineAccountRequest | 

        try {
            setCreditLineAccountResponse result = apiInstance.aPSetCreditLineAccount(supplierID, setCreditLineAccountRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetCreditLineAccount");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID
final SetCreditLineAccountRequest setCreditLineAccountRequest = new SetCreditLineAccountRequest(); // SetCreditLineAccountRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SetCreditLineAccountRequest setCreditLineAccountRequest = {"supplierID":0,"creditLineAccountID":0}; // SetCreditLineAccountRequest | 

        try {
            setCreditLineAccountResponse result = apiInstance.aPSetCreditLineAccount(supplierID, setCreditLineAccountRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetCreditLineAccount");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)
SetCreditLineAccountRequest *setCreditLineAccountRequest = {"supplierID":0,"creditLineAccountID":0}; //  (optional)

// Set supplier credit line account
[apiInstance aPSetCreditLineAccountWith:supplierID
    setCreditLineAccountRequest:setCreditLineAccountRequest
              completionHandler: ^(setCreditLineAccountResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID
var opts = {
  'setCreditLineAccountRequest': {"supplierID":0,"creditLineAccountID":0} // {SetCreditLineAccountRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)
            var setCreditLineAccountRequest = new SetCreditLineAccountRequest(); // SetCreditLineAccountRequest |  (optional) 

            try {
                // Set supplier credit line account
                setCreditLineAccountResponse result = apiInstance.aPSetCreditLineAccount(supplierID, setCreditLineAccountRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetCreditLineAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID
$setCreditLineAccountRequest = {"supplierID":0,"creditLineAccountID":0}; // SetCreditLineAccountRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID
my $setCreditLineAccountRequest = WWW::OPenAPIClient::Object::SetCreditLineAccountRequest->new(); # SetCreditLineAccountRequest | 

eval {
    my $result = $api_instance->aPSetCreditLineAccount(supplierID => $supplierID, setCreditLineAccountRequest => $setCreditLineAccountRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetCreditLineAccount: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)
setCreditLineAccountRequest = {"supplierID":0,"creditLineAccountID":0} # SetCreditLineAccountRequest |  (optional)

try:
    # Set supplier credit line account
    api_response = api_instance.a_p_set_credit_line_account(supplierID, setCreditLineAccountRequest=setCreditLineAccountRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetCreditLineAccount: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let setCreditLineAccountRequest = {"supplierID":0,"creditLineAccountID":0}; // SetCreditLineAccountRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetCreditLineAccount(supplierID, setCreditLineAccountRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required
Body parameters
Name Description
setCreditLineAccountRequest

Responses


aPSetMatchTransactionConfig

Set match transaction config

Set match transaction config


/Spenda/Payments/AccountsPayable/Config/MatchTransaction

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Config/MatchTransaction" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        MatchTransactionConfig matchTransactionConfig = {"affixes":[{"prefix":"string","suffix":"string","datTypeID":0}],"roundingThreshold":0,"roundingAccountCode":"string","roundingRevenueAccountCode":"string"}; // MatchTransactionConfig | 

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

final api_instance = DefaultApi();

final MatchTransactionConfig matchTransactionConfig = new MatchTransactionConfig(); // MatchTransactionConfig | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        MatchTransactionConfig matchTransactionConfig = {"affixes":[{"prefix":"string","suffix":"string","datTypeID":0}],"roundingThreshold":0,"roundingAccountCode":"string","roundingRevenueAccountCode":"string"}; // MatchTransactionConfig | 

        try {
            matchTransactionConfigResponse result = apiInstance.aPSetMatchTransactionConfig(matchTransactionConfig);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetMatchTransactionConfig");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
MatchTransactionConfig *matchTransactionConfig = {"affixes":[{"prefix":"string","suffix":"string","datTypeID":0}],"roundingThreshold":0,"roundingAccountCode":"string","roundingRevenueAccountCode":"string"}; //  (optional)

// Set match transaction config
[apiInstance aPSetMatchTransactionConfigWith:matchTransactionConfig
              completionHandler: ^(matchTransactionConfigResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'matchTransactionConfig': {"affixes":[{"prefix":"string","suffix":"string","datTypeID":0}],"roundingThreshold":0,"roundingAccountCode":"string","roundingRevenueAccountCode":"string"} // {MatchTransactionConfig} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var matchTransactionConfig = new MatchTransactionConfig(); // MatchTransactionConfig |  (optional) 

            try {
                // Set match transaction config
                matchTransactionConfigResponse result = apiInstance.aPSetMatchTransactionConfig(matchTransactionConfig);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetMatchTransactionConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$matchTransactionConfig = {"affixes":[{"prefix":"string","suffix":"string","datTypeID":0}],"roundingThreshold":0,"roundingAccountCode":"string","roundingRevenueAccountCode":"string"}; // MatchTransactionConfig | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $matchTransactionConfig = WWW::OPenAPIClient::Object::MatchTransactionConfig->new(); # MatchTransactionConfig | 

eval {
    my $result = $api_instance->aPSetMatchTransactionConfig(matchTransactionConfig => $matchTransactionConfig);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetMatchTransactionConfig: $@\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.AccountsPayableApi()
matchTransactionConfig = {"affixes":[{"prefix":"string","suffix":"string","datTypeID":0}],"roundingThreshold":0,"roundingAccountCode":"string","roundingRevenueAccountCode":"string"} # MatchTransactionConfig |  (optional)

try:
    # Set match transaction config
    api_response = api_instance.a_p_set_match_transaction_config(matchTransactionConfig=matchTransactionConfig)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetMatchTransactionConfig: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let matchTransactionConfig = {"affixes":[{"prefix":"string","suffix":"string","datTypeID":0}],"roundingThreshold":0,"roundingAccountCode":"string","roundingRevenueAccountCode":"string"}; // MatchTransactionConfig

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetMatchTransactionConfig(matchTransactionConfig, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
matchTransactionConfig

Responses


aPSetStagingTransactionsAdjustments

Update a staging purchase invoice's / debit note's tax (to allow for tax free items) or inventory posting item

Update a staging purchase invoice's / debit note's tax (to allow for tax free items) or inventory posting item


/Spenda/Payments/AccountsPayable/StagingTransactions/Adjustments

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/StagingTransactions/Adjustments" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SetStagingTransactionAdjustmentsRequest setStagingTransactionAdjustmentsRequest = {"stagingTransactionAdjustments":[{"stagingDocumentID":0,"datTypeID":"Unknown","totalTax":0,"postingInventoryID":0}]}; // SetStagingTransactionAdjustmentsRequest | 

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

final api_instance = DefaultApi();

final SetStagingTransactionAdjustmentsRequest setStagingTransactionAdjustmentsRequest = new SetStagingTransactionAdjustmentsRequest(); // SetStagingTransactionAdjustmentsRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        SetStagingTransactionAdjustmentsRequest setStagingTransactionAdjustmentsRequest = {"stagingTransactionAdjustments":[{"stagingDocumentID":0,"datTypeID":"Unknown","totalTax":0,"postingInventoryID":0}]}; // SetStagingTransactionAdjustmentsRequest | 

        try {
            setStagingTransactionAdjustmentsResponse result = apiInstance.aPSetStagingTransactionsAdjustments(setStagingTransactionAdjustmentsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetStagingTransactionsAdjustments");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
SetStagingTransactionAdjustmentsRequest *setStagingTransactionAdjustmentsRequest = {"stagingTransactionAdjustments":[{"stagingDocumentID":0,"datTypeID":"Unknown","totalTax":0,"postingInventoryID":0}]}; //  (optional)

// Update a staging purchase invoice's / debit note's tax (to allow for tax free items) or inventory posting item
[apiInstance aPSetStagingTransactionsAdjustmentsWith:setStagingTransactionAdjustmentsRequest
              completionHandler: ^(setStagingTransactionAdjustmentsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'setStagingTransactionAdjustmentsRequest': {"stagingTransactionAdjustments":[{"stagingDocumentID":0,"datTypeID":"Unknown","totalTax":0,"postingInventoryID":0}]} // {SetStagingTransactionAdjustmentsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var setStagingTransactionAdjustmentsRequest = new SetStagingTransactionAdjustmentsRequest(); // SetStagingTransactionAdjustmentsRequest |  (optional) 

            try {
                // Update a staging purchase invoice's / debit note's tax (to allow for tax free items) or inventory posting item
                setStagingTransactionAdjustmentsResponse result = apiInstance.aPSetStagingTransactionsAdjustments(setStagingTransactionAdjustmentsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetStagingTransactionsAdjustments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$setStagingTransactionAdjustmentsRequest = {"stagingTransactionAdjustments":[{"stagingDocumentID":0,"datTypeID":"Unknown","totalTax":0,"postingInventoryID":0}]}; // SetStagingTransactionAdjustmentsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $setStagingTransactionAdjustmentsRequest = WWW::OPenAPIClient::Object::SetStagingTransactionAdjustmentsRequest->new(); # SetStagingTransactionAdjustmentsRequest | 

eval {
    my $result = $api_instance->aPSetStagingTransactionsAdjustments(setStagingTransactionAdjustmentsRequest => $setStagingTransactionAdjustmentsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetStagingTransactionsAdjustments: $@\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.AccountsPayableApi()
setStagingTransactionAdjustmentsRequest = {"stagingTransactionAdjustments":[{"stagingDocumentID":0,"datTypeID":"Unknown","totalTax":0,"postingInventoryID":0}]} # SetStagingTransactionAdjustmentsRequest |  (optional)

try:
    # Update a staging purchase invoice's / debit note's tax (to allow for tax free items) or inventory posting item
    api_response = api_instance.a_p_set_staging_transactions_adjustments(setStagingTransactionAdjustmentsRequest=setStagingTransactionAdjustmentsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetStagingTransactionsAdjustments: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let setStagingTransactionAdjustmentsRequest = {"stagingTransactionAdjustments":[{"stagingDocumentID":0,"datTypeID":"Unknown","totalTax":0,"postingInventoryID":0}]}; // SetStagingTransactionAdjustmentsRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetStagingTransactionsAdjustments(setStagingTransactionAdjustmentsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
setStagingTransactionAdjustmentsRequest

Responses


aPSetSupplierInventoryPostingRule

Set posting rule for supplier inventory

Allows a buyer tenant to set posting rule for supplier inventory


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/InventoryPostingRule

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/InventoryPostingRule" \
 -d '{
  "postingSupplierID" : 6,
  "inventoryCode" : "inventoryCode",
  "postingInventoryID" : 1,
  "action" : "action",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        array[supplierInventoryPostingRuleTypeUdtt] supplierInventoryPostingRuleTypeUdtt = [{"id":0,"postingSupplierID":0,"inventoryCode":"string","postingInventoryID":0,"action":"string"}]; // array[supplierInventoryPostingRuleTypeUdtt] | 

        try {
            supplierInventoryPostingRuleResponse result = apiInstance.aPSetSupplierInventoryPostingRule(supplierID, supplierInventoryPostingRuleTypeUdtt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetSupplierInventoryPostingRule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID
final array[supplierInventoryPostingRuleTypeUdtt] supplierInventoryPostingRuleTypeUdtt = new array[supplierInventoryPostingRuleTypeUdtt](); // array[supplierInventoryPostingRuleTypeUdtt] | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        array[supplierInventoryPostingRuleTypeUdtt] supplierInventoryPostingRuleTypeUdtt = [{"id":0,"postingSupplierID":0,"inventoryCode":"string","postingInventoryID":0,"action":"string"}]; // array[supplierInventoryPostingRuleTypeUdtt] | 

        try {
            supplierInventoryPostingRuleResponse result = apiInstance.aPSetSupplierInventoryPostingRule(supplierID, supplierInventoryPostingRuleTypeUdtt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetSupplierInventoryPostingRule");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)
array[supplierInventoryPostingRuleTypeUdtt] *supplierInventoryPostingRuleTypeUdtt = [{"id":0,"postingSupplierID":0,"inventoryCode":"string","postingInventoryID":0,"action":"string"}]; //  (optional)

// Set posting rule for supplier inventory
[apiInstance aPSetSupplierInventoryPostingRuleWith:supplierID
    supplierInventoryPostingRuleTypeUdtt:supplierInventoryPostingRuleTypeUdtt
              completionHandler: ^(supplierInventoryPostingRuleResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID
var opts = {
  'supplierInventoryPostingRuleTypeUdtt': [{"id":0,"postingSupplierID":0,"inventoryCode":"string","postingInventoryID":0,"action":"string"}] // {array[supplierInventoryPostingRuleTypeUdtt]} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)
            var supplierInventoryPostingRuleTypeUdtt = new array[supplierInventoryPostingRuleTypeUdtt](); // array[supplierInventoryPostingRuleTypeUdtt] |  (optional) 

            try {
                // Set posting rule for supplier inventory
                supplierInventoryPostingRuleResponse result = apiInstance.aPSetSupplierInventoryPostingRule(supplierID, supplierInventoryPostingRuleTypeUdtt);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetSupplierInventoryPostingRule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID
$supplierInventoryPostingRuleTypeUdtt = [{"id":0,"postingSupplierID":0,"inventoryCode":"string","postingInventoryID":0,"action":"string"}]; // array[supplierInventoryPostingRuleTypeUdtt] | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID
my $supplierInventoryPostingRuleTypeUdtt = [WWW::OPenAPIClient::Object::array[supplierInventoryPostingRuleTypeUdtt]->new()]; # array[supplierInventoryPostingRuleTypeUdtt] | 

eval {
    my $result = $api_instance->aPSetSupplierInventoryPostingRule(supplierID => $supplierID, supplierInventoryPostingRuleTypeUdtt => $supplierInventoryPostingRuleTypeUdtt);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetSupplierInventoryPostingRule: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)
supplierInventoryPostingRuleTypeUdtt = [{"id":0,"postingSupplierID":0,"inventoryCode":"string","postingInventoryID":0,"action":"string"}] # array[supplierInventoryPostingRuleTypeUdtt] |  (optional)

try:
    # Set posting rule for supplier inventory
    api_response = api_instance.a_p_set_supplier_inventory_posting_rule(supplierID, supplierInventoryPostingRuleTypeUdtt=supplierInventoryPostingRuleTypeUdtt)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetSupplierInventoryPostingRule: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let supplierInventoryPostingRuleTypeUdtt = [{"id":0,"postingSupplierID":0,"inventoryCode":"string","postingInventoryID":0,"action":"string"}]; // array[supplierInventoryPostingRuleTypeUdtt]

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetSupplierInventoryPostingRule(supplierID, supplierInventoryPostingRuleTypeUdtt, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required
Body parameters
Name Description
supplierInventoryPostingRuleTypeUdtt

Responses


aPSetSupplierVendorPostingRule

Set posting rule for supplier vendor

Allows a buyer tenant to set posting rule for supplier vendor


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/VendorPostingRule

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/VendorPostingRule" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SupplierVendorPostingRuleRequest supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest | 

        try {
            supplierVendorPostingRuleResponse result = apiInstance.aPSetSupplierVendorPostingRule(supplierID, supplierVendorPostingRuleRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetSupplierVendorPostingRule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID
final SupplierVendorPostingRuleRequest supplierVendorPostingRuleRequest = new SupplierVendorPostingRuleRequest(); // SupplierVendorPostingRuleRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SupplierVendorPostingRuleRequest supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest | 

        try {
            supplierVendorPostingRuleResponse result = apiInstance.aPSetSupplierVendorPostingRule(supplierID, supplierVendorPostingRuleRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetSupplierVendorPostingRule");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)
SupplierVendorPostingRuleRequest *supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; //  (optional)

// Set posting rule for supplier vendor
[apiInstance aPSetSupplierVendorPostingRuleWith:supplierID
    supplierVendorPostingRuleRequest:supplierVendorPostingRuleRequest
              completionHandler: ^(supplierVendorPostingRuleResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID
var opts = {
  'supplierVendorPostingRuleRequest': {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"} // {SupplierVendorPostingRuleRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)
            var supplierVendorPostingRuleRequest = new SupplierVendorPostingRuleRequest(); // SupplierVendorPostingRuleRequest |  (optional) 

            try {
                // Set posting rule for supplier vendor
                supplierVendorPostingRuleResponse result = apiInstance.aPSetSupplierVendorPostingRule(supplierID, supplierVendorPostingRuleRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetSupplierVendorPostingRule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID
$supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID
my $supplierVendorPostingRuleRequest = WWW::OPenAPIClient::Object::SupplierVendorPostingRuleRequest->new(); # SupplierVendorPostingRuleRequest | 

eval {
    my $result = $api_instance->aPSetSupplierVendorPostingRule(supplierID => $supplierID, supplierVendorPostingRuleRequest => $supplierVendorPostingRuleRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetSupplierVendorPostingRule: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)
supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"} # SupplierVendorPostingRuleRequest |  (optional)

try:
    # Set posting rule for supplier vendor
    api_response = api_instance.a_p_set_supplier_vendor_posting_rule(supplierID, supplierVendorPostingRuleRequest=supplierVendorPostingRuleRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetSupplierVendorPostingRule: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let supplierVendorPostingRuleRequest = {"id":0,"sourceSupplierID":0,"postingSupplierID":0,"vendorName":"string","action":"string"}; // SupplierVendorPostingRuleRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetSupplierVendorPostingRule(supplierID, supplierVendorPostingRuleRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required
Body parameters
Name Description
supplierVendorPostingRuleRequest

Responses


aPSetVendorMapping

Sets vendor mapping for a supplier

Allows a tenant to set vendor mapping for a supplier


/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetVendorMapping

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/Supplier/{supplierID}/SetVendorMapping" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SetAPSettingsRequest setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest | 

        try {
            setVendorMappingResponse result = apiInstance.aPSetVendorMapping(supplierID, setAPSettingsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetVendorMapping");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The supplier ID
final SetAPSettingsRequest setAPSettingsRequest = new SetAPSettingsRequest(); // SetAPSettingsRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer supplierID = 56; // Integer | The supplier ID
        SetAPSettingsRequest setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest | 

        try {
            setVendorMappingResponse result = apiInstance.aPSetVendorMapping(supplierID, setAPSettingsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSetVendorMapping");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *supplierID = 56; // The supplier ID (default to null)
SetAPSettingsRequest *setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; //  (optional)

// Sets vendor mapping for a supplier
[apiInstance aPSetVendorMappingWith:supplierID
    setAPSettingsRequest:setAPSettingsRequest
              completionHandler: ^(setVendorMappingResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var supplierID = 56; // {Integer} The supplier ID
var opts = {
  'setAPSettingsRequest': {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"} // {SetAPSettingsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var supplierID = 56;  // Integer | The supplier ID (default to null)
            var setAPSettingsRequest = new SetAPSettingsRequest(); // SetAPSettingsRequest |  (optional) 

            try {
                // Sets vendor mapping for a supplier
                setVendorMappingResponse result = apiInstance.aPSetVendorMapping(supplierID, setAPSettingsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSetVendorMapping: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$supplierID = 56; // Integer | The supplier ID
$setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $supplierID = 56; # Integer | The supplier ID
my $setAPSettingsRequest = WWW::OPenAPIClient::Object::SetAPSettingsRequest->new(); # SetAPSettingsRequest | 

eval {
    my $result = $api_instance->aPSetVendorMapping(supplierID => $supplierID, setAPSettingsRequest => $setAPSettingsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSetVendorMapping: $@\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.AccountsPayableApi()
supplierID = 56 # Integer | The supplier ID (default to null)
setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"} # SetAPSettingsRequest |  (optional)

try:
    # Sets vendor mapping for a supplier
    api_response = api_instance.a_p_set_vendor_mapping(supplierID, setAPSettingsRequest=setAPSettingsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSetVendorMapping: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let setAPSettingsRequest = {"supplierID":0,"postingInventoryID":0,"isInventoryMappingEnabled":true,"isVendorMappingEnabled":true,"onboardingStatementStartDate":"string"}; // SetAPSettingsRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSetVendorMapping(supplierID, setAPSettingsRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The supplier ID
Required
Body parameters
Name Description
setAPSettingsRequest

Responses


aPSubmitPaymentForPaymentBatch

Submit payment for a payment batch

Allows a buyer tenant to submit payment for a payment batch


/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Payment

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/{paymentBatchID}/Payment" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID
        ProcessPaymentForPaymentBatchRequest processPaymentForPaymentBatchRequest = {"accountsPayableBatchID":0,"authorisationToken":"string","metadata":{}}; // ProcessPaymentForPaymentBatchRequest | 

        try {
            getStatusForPaymentBatchResponse result = apiInstance.aPSubmitPaymentForPaymentBatch(paymentBatchID, processPaymentForPaymentBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSubmitPaymentForPaymentBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer paymentBatchID = new Integer(); // Integer | The payment batch ID
final ProcessPaymentForPaymentBatchRequest processPaymentForPaymentBatchRequest = new ProcessPaymentForPaymentBatchRequest(); // ProcessPaymentForPaymentBatchRequest | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        Integer paymentBatchID = 56; // Integer | The payment batch ID
        ProcessPaymentForPaymentBatchRequest processPaymentForPaymentBatchRequest = {"accountsPayableBatchID":0,"authorisationToken":"string","metadata":{}}; // ProcessPaymentForPaymentBatchRequest | 

        try {
            getStatusForPaymentBatchResponse result = apiInstance.aPSubmitPaymentForPaymentBatch(paymentBatchID, processPaymentForPaymentBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPSubmitPaymentForPaymentBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
Integer *paymentBatchID = 56; // The payment batch ID (default to null)
ProcessPaymentForPaymentBatchRequest *processPaymentForPaymentBatchRequest = {"accountsPayableBatchID":0,"authorisationToken":"string","metadata":{}}; //  (optional)

// Submit payment for a payment batch
[apiInstance aPSubmitPaymentForPaymentBatchWith:paymentBatchID
    processPaymentForPaymentBatchRequest:processPaymentForPaymentBatchRequest
              completionHandler: ^(getStatusForPaymentBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var paymentBatchID = 56; // {Integer} The payment batch ID
var opts = {
  'processPaymentForPaymentBatchRequest': {"accountsPayableBatchID":0,"authorisationToken":"string","metadata":{}} // {ProcessPaymentForPaymentBatchRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var paymentBatchID = 56;  // Integer | The payment batch ID (default to null)
            var processPaymentForPaymentBatchRequest = new ProcessPaymentForPaymentBatchRequest(); // ProcessPaymentForPaymentBatchRequest |  (optional) 

            try {
                // Submit payment for a payment batch
                getStatusForPaymentBatchResponse result = apiInstance.aPSubmitPaymentForPaymentBatch(paymentBatchID, processPaymentForPaymentBatchRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPSubmitPaymentForPaymentBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$paymentBatchID = 56; // Integer | The payment batch ID
$processPaymentForPaymentBatchRequest = {"accountsPayableBatchID":0,"authorisationToken":"string","metadata":{}}; // ProcessPaymentForPaymentBatchRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $paymentBatchID = 56; # Integer | The payment batch ID
my $processPaymentForPaymentBatchRequest = WWW::OPenAPIClient::Object::ProcessPaymentForPaymentBatchRequest->new(); # ProcessPaymentForPaymentBatchRequest | 

eval {
    my $result = $api_instance->aPSubmitPaymentForPaymentBatch(paymentBatchID => $paymentBatchID, processPaymentForPaymentBatchRequest => $processPaymentForPaymentBatchRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPSubmitPaymentForPaymentBatch: $@\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.AccountsPayableApi()
paymentBatchID = 56 # Integer | The payment batch ID (default to null)
processPaymentForPaymentBatchRequest = {"accountsPayableBatchID":0,"authorisationToken":"string","metadata":{}} # ProcessPaymentForPaymentBatchRequest |  (optional)

try:
    # Submit payment for a payment batch
    api_response = api_instance.a_p_submit_payment_for_payment_batch(paymentBatchID, processPaymentForPaymentBatchRequest=processPaymentForPaymentBatchRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPSubmitPaymentForPaymentBatch: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let paymentBatchID = 56; // Integer
    let processPaymentForPaymentBatchRequest = {"accountsPayableBatchID":0,"authorisationToken":"string","metadata":{}}; // ProcessPaymentForPaymentBatchRequest

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPSubmitPaymentForPaymentBatch(paymentBatchID, processPaymentForPaymentBatchRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentBatchID*
Integer (int32)
The payment batch ID
Required
Body parameters
Name Description
processPaymentForPaymentBatchRequest

Responses


aPUploadABAFile

Uploads an ABA file in context of the buyer tenant

Allows a buyer tenant to upload an ABA file


/Spenda/Payments/AccountsPayable/PaymentBatch/Upload

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: text/plain" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsPayable/PaymentBatch/Upload" \
 -d 'Custom MIME type example not yet supported: text/plain'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;

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

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

        // Create an instance of the API class
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        String body = body_example; // String | 

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

final api_instance = DefaultApi();

final String body = new String(); // String | 

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

import org.openapitools.client.api.AccountsPayableApi;

public class AccountsPayableApiExample {
    public static void main(String[] args) {
        AccountsPayableApi apiInstance = new AccountsPayableApi();
        String body = body_example; // String | 

        try {
            uploadABAFileResponse result = apiInstance.aPUploadABAFile(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsPayableApi#aPUploadABAFile");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
String *body = body_example; //  (optional)

// Uploads an ABA file in context of the buyer tenant
[apiInstance aPUploadABAFileWith:body
              completionHandler: ^(uploadABAFileResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsPayableApi()
var opts = {
  'body': body_example // {String} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsPayableApi();
            var body = body_example;  // String |  (optional) 

            try {
                // Uploads an ABA file in context of the buyer tenant
                uploadABAFileResponse result = apiInstance.aPUploadABAFile(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsPayableApi.aPUploadABAFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$body = body_example; // String | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $body = WWW::OPenAPIClient::Object::String->new(); # String | 

eval {
    my $result = $api_instance->aPUploadABAFile(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsPayableApi->aPUploadABAFile: $@\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.AccountsPayableApi()
body = body_example # String |  (optional)

try:
    # Uploads an ABA file in context of the buyer tenant
    api_response = api_instance.a_p_upload_aba_file(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsPayableApi->aPUploadABAFile: %s\n" % e)
extern crate AccountsPayableApi;

pub fn main() {
    let body = body_example; // String

    let mut context = AccountsPayableApi::Context::default();
    let result = client.aPUploadABAFile(body, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
body

The ABA file contents

Responses


AccountsReceivable

aRCancelBuyerScheduledPayment

Cancel Scheduled Payment

Allows a user in the context of the buyer to cancel an in progress scheduled invoice payment allocation or prepayment.


/Spenda/Payments/AccountsReceivable/Buyer/ScheduledPayment/{linkedSupplierID}/cancel

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/ScheduledPayment/{linkedSupplierID}/cancel" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableScheduledIPARequest buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest | 

        try {
            updateTransactionRequest result = apiInstance.aRCancelBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRCancelBuyerScheduledPayment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final BuyerAccountsReceivableScheduledIPARequest buyerAccountsReceivableScheduledIPARequest = new BuyerAccountsReceivableScheduledIPARequest(); // BuyerAccountsReceivableScheduledIPARequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableScheduledIPARequest buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest | 

        try {
            updateTransactionRequest result = apiInstance.aRCancelBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRCancelBuyerScheduledPayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
BuyerAccountsReceivableScheduledIPARequest *buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; //  (optional)

// Cancel Scheduled Payment
[apiInstance aRCancelBuyerScheduledPaymentWith:linkedSupplierID
    buyerAccountsReceivableScheduledIPARequest:buyerAccountsReceivableScheduledIPARequest
              completionHandler: ^(updateTransactionRequest output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var opts = {
  'buyerAccountsReceivableScheduledIPARequest': {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"} // {BuyerAccountsReceivableScheduledIPARequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var buyerAccountsReceivableScheduledIPARequest = new BuyerAccountsReceivableScheduledIPARequest(); // BuyerAccountsReceivableScheduledIPARequest |  (optional) 

            try {
                // Cancel Scheduled Payment
                updateTransactionRequest result = apiInstance.aRCancelBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRCancelBuyerScheduledPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $buyerAccountsReceivableScheduledIPARequest = WWW::OPenAPIClient::Object::BuyerAccountsReceivableScheduledIPARequest->new(); # BuyerAccountsReceivableScheduledIPARequest | 

eval {
    my $result = $api_instance->aRCancelBuyerScheduledPayment(linkedSupplierID => $linkedSupplierID, buyerAccountsReceivableScheduledIPARequest => $buyerAccountsReceivableScheduledIPARequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRCancelBuyerScheduledPayment: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"} # BuyerAccountsReceivableScheduledIPARequest |  (optional)

try:
    # Cancel Scheduled Payment
    api_response = api_instance.a_r_cancel_buyer_scheduled_payment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest=buyerAccountsReceivableScheduledIPARequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRCancelBuyerScheduledPayment: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRCancelBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
Body parameters
Name Description
buyerAccountsReceivableScheduledIPARequest

Responses


aRCancelInvoiceBuyerBatch

Cancel Invoice payment batch

Allows a user to cancel invoices and credit notes before payment.


/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}/cancel

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}/cancel" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchCancelRequest buyerAccountsReceivableInvoiceBatchCancelRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchCancelRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRCancelInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchCancelRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRCancelInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final BuyerAccountsReceivableInvoiceBatchCancelRequest buyerAccountsReceivableInvoiceBatchCancelRequest = new BuyerAccountsReceivableInvoiceBatchCancelRequest(); // BuyerAccountsReceivableInvoiceBatchCancelRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchCancelRequest buyerAccountsReceivableInvoiceBatchCancelRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchCancelRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRCancelInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchCancelRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRCancelInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
BuyerAccountsReceivableInvoiceBatchCancelRequest *buyerAccountsReceivableInvoiceBatchCancelRequest = {"invoicePaymentAllocationID":0}; //  (optional)

// Cancel Invoice payment batch
[apiInstance aRCancelInvoiceBuyerBatchWith:linkedSupplierID
    buyerAccountsReceivableInvoiceBatchCancelRequest:buyerAccountsReceivableInvoiceBatchCancelRequest
              completionHandler: ^(accountsReceivableInvoiceBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var opts = {
  'buyerAccountsReceivableInvoiceBatchCancelRequest': {"invoicePaymentAllocationID":0} // {BuyerAccountsReceivableInvoiceBatchCancelRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var buyerAccountsReceivableInvoiceBatchCancelRequest = new BuyerAccountsReceivableInvoiceBatchCancelRequest(); // BuyerAccountsReceivableInvoiceBatchCancelRequest |  (optional) 

            try {
                // Cancel Invoice payment batch
                accountsReceivableInvoiceBatchResponse result = apiInstance.aRCancelInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchCancelRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRCancelInvoiceBuyerBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$buyerAccountsReceivableInvoiceBatchCancelRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchCancelRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $buyerAccountsReceivableInvoiceBatchCancelRequest = WWW::OPenAPIClient::Object::BuyerAccountsReceivableInvoiceBatchCancelRequest->new(); # BuyerAccountsReceivableInvoiceBatchCancelRequest | 

eval {
    my $result = $api_instance->aRCancelInvoiceBuyerBatch(linkedSupplierID => $linkedSupplierID, buyerAccountsReceivableInvoiceBatchCancelRequest => $buyerAccountsReceivableInvoiceBatchCancelRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRCancelInvoiceBuyerBatch: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
buyerAccountsReceivableInvoiceBatchCancelRequest = {"invoicePaymentAllocationID":0} # BuyerAccountsReceivableInvoiceBatchCancelRequest |  (optional)

try:
    # Cancel Invoice payment batch
    api_response = api_instance.a_r_cancel_invoice_buyer_batch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchCancelRequest=buyerAccountsReceivableInvoiceBatchCancelRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRCancelInvoiceBuyerBatch: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let buyerAccountsReceivableInvoiceBatchCancelRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchCancelRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRCancelInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchCancelRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
Body parameters
Name Description
buyerAccountsReceivableInvoiceBatchCancelRequest

Responses


aRCancelUnauthorisedScheduledPaymentsManualTrigger

Trigger Cancel Unauthorised scheduled payments manually.

Trigger Cancel Unauthorised scheduled payments manually.


/Spenda/Payments/AccountsReceivable/CancelUnauthorisedScheduledPayments

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsReceivableApi;

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

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


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

// Trigger Cancel Unauthorised scheduled payments manually.
[apiInstance aRCancelUnauthorisedScheduledPaymentsManualTriggerWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Trigger Cancel Unauthorised scheduled payments manually.
                apiInstance.aRCancelUnauthorisedScheduledPaymentsManualTrigger();
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRCancelUnauthorisedScheduledPaymentsManualTrigger: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    $api_instance->aRCancelUnauthorisedScheduledPaymentsManualTrigger();
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRCancelUnauthorisedScheduledPaymentsManualTrigger: $@\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.AccountsReceivableApi()

try:
    # Trigger Cancel Unauthorised scheduled payments manually.
    api_instance.a_r_cancel_unauthorised_scheduled_payments_manual_trigger()
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRCancelUnauthorisedScheduledPaymentsManualTrigger: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRCancelUnauthorisedScheduledPaymentsManualTrigger(&context).wait();

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

Scopes

Parameters

Responses


aRCreateManualPaymentForInvoice

Create manual payment for an invoice

Allows a user to create manual payment for an invoice


/Spenda/Payments/AccountsReceivable/{invoiceID}/ManualPayment

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/{invoiceID}/ManualPayment" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoiceID = 56; // Integer | The invoice ID
        CreateManualPaymentForInvoiceRequest createManualPaymentForInvoiceRequest = {"paymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPaymentForInvoiceRequest | 

        try {
            createManualPaymentForInvoiceResponse result = apiInstance.aRCreateManualPaymentForInvoice(invoiceID, createManualPaymentForInvoiceRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRCreateManualPaymentForInvoice");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer invoiceID = new Integer(); // Integer | The invoice ID
final CreateManualPaymentForInvoiceRequest createManualPaymentForInvoiceRequest = new CreateManualPaymentForInvoiceRequest(); // CreateManualPaymentForInvoiceRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoiceID = 56; // Integer | The invoice ID
        CreateManualPaymentForInvoiceRequest createManualPaymentForInvoiceRequest = {"paymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPaymentForInvoiceRequest | 

        try {
            createManualPaymentForInvoiceResponse result = apiInstance.aRCreateManualPaymentForInvoice(invoiceID, createManualPaymentForInvoiceRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRCreateManualPaymentForInvoice");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *invoiceID = 56; // The invoice ID (default to null)
CreateManualPaymentForInvoiceRequest *createManualPaymentForInvoiceRequest = {"paymentAmount":0,"paymentMethod":"Cash"}; //  (optional)

// Create manual payment for an invoice
[apiInstance aRCreateManualPaymentForInvoiceWith:invoiceID
    createManualPaymentForInvoiceRequest:createManualPaymentForInvoiceRequest
              completionHandler: ^(createManualPaymentForInvoiceResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var invoiceID = 56; // {Integer} The invoice ID
var opts = {
  'createManualPaymentForInvoiceRequest': {"paymentAmount":0,"paymentMethod":"Cash"} // {CreateManualPaymentForInvoiceRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var invoiceID = 56;  // Integer | The invoice ID (default to null)
            var createManualPaymentForInvoiceRequest = new CreateManualPaymentForInvoiceRequest(); // CreateManualPaymentForInvoiceRequest |  (optional) 

            try {
                // Create manual payment for an invoice
                createManualPaymentForInvoiceResponse result = apiInstance.aRCreateManualPaymentForInvoice(invoiceID, createManualPaymentForInvoiceRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRCreateManualPaymentForInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$invoiceID = 56; // Integer | The invoice ID
$createManualPaymentForInvoiceRequest = {"paymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPaymentForInvoiceRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $invoiceID = 56; # Integer | The invoice ID
my $createManualPaymentForInvoiceRequest = WWW::OPenAPIClient::Object::CreateManualPaymentForInvoiceRequest->new(); # CreateManualPaymentForInvoiceRequest | 

eval {
    my $result = $api_instance->aRCreateManualPaymentForInvoice(invoiceID => $invoiceID, createManualPaymentForInvoiceRequest => $createManualPaymentForInvoiceRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRCreateManualPaymentForInvoice: $@\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.AccountsReceivableApi()
invoiceID = 56 # Integer | The invoice ID (default to null)
createManualPaymentForInvoiceRequest = {"paymentAmount":0,"paymentMethod":"Cash"} # CreateManualPaymentForInvoiceRequest |  (optional)

try:
    # Create manual payment for an invoice
    api_response = api_instance.a_r_create_manual_payment_for_invoice(invoiceID, createManualPaymentForInvoiceRequest=createManualPaymentForInvoiceRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRCreateManualPaymentForInvoice: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let invoiceID = 56; // Integer
    let createManualPaymentForInvoiceRequest = {"paymentAmount":0,"paymentMethod":"Cash"}; // CreateManualPaymentForInvoiceRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRCreateManualPaymentForInvoice(invoiceID, createManualPaymentForInvoiceRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invoiceID*
Integer (int32)
The invoice ID
Required
Body parameters
Name Description
createManualPaymentForInvoiceRequest

Responses


aRCreateOrUpdateSupplierAutomatedCustomerStatement

Create or Update Automated Statements

Configure a new or update an existing automated statement for the supplier tenant.


/Spenda/Payments/AccountsReceivable/Supplier/AutomatedCustomerStatement

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/AutomatedCustomerStatement" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        AutomatedCustomerStatementRequest automatedCustomerStatementRequest = {"scheduledDay":0,"alertID":0,"automatedCustomerStatementID":0,"customerClassID":0}; // AutomatedCustomerStatementRequest | 

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

final api_instance = DefaultApi();

final AutomatedCustomerStatementRequest automatedCustomerStatementRequest = new AutomatedCustomerStatementRequest(); // AutomatedCustomerStatementRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        AutomatedCustomerStatementRequest automatedCustomerStatementRequest = {"scheduledDay":0,"alertID":0,"automatedCustomerStatementID":0,"customerClassID":0}; // AutomatedCustomerStatementRequest | 

        try {
            automatedCustomerStatementsResponse result = apiInstance.aRCreateOrUpdateSupplierAutomatedCustomerStatement(automatedCustomerStatementRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRCreateOrUpdateSupplierAutomatedCustomerStatement");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
AutomatedCustomerStatementRequest *automatedCustomerStatementRequest = {"scheduledDay":0,"alertID":0,"automatedCustomerStatementID":0,"customerClassID":0}; //  (optional)

// Create or Update Automated Statements
[apiInstance aRCreateOrUpdateSupplierAutomatedCustomerStatementWith:automatedCustomerStatementRequest
              completionHandler: ^(automatedCustomerStatementsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'automatedCustomerStatementRequest': {"scheduledDay":0,"alertID":0,"automatedCustomerStatementID":0,"customerClassID":0} // {AutomatedCustomerStatementRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var automatedCustomerStatementRequest = new AutomatedCustomerStatementRequest(); // AutomatedCustomerStatementRequest |  (optional) 

            try {
                // Create or Update Automated Statements
                automatedCustomerStatementsResponse result = apiInstance.aRCreateOrUpdateSupplierAutomatedCustomerStatement(automatedCustomerStatementRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRCreateOrUpdateSupplierAutomatedCustomerStatement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$automatedCustomerStatementRequest = {"scheduledDay":0,"alertID":0,"automatedCustomerStatementID":0,"customerClassID":0}; // AutomatedCustomerStatementRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $automatedCustomerStatementRequest = WWW::OPenAPIClient::Object::AutomatedCustomerStatementRequest->new(); # AutomatedCustomerStatementRequest | 

eval {
    my $result = $api_instance->aRCreateOrUpdateSupplierAutomatedCustomerStatement(automatedCustomerStatementRequest => $automatedCustomerStatementRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRCreateOrUpdateSupplierAutomatedCustomerStatement: $@\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.AccountsReceivableApi()
automatedCustomerStatementRequest = {"scheduledDay":0,"alertID":0,"automatedCustomerStatementID":0,"customerClassID":0} # AutomatedCustomerStatementRequest |  (optional)

try:
    # Create or Update Automated Statements
    api_response = api_instance.a_r_create_or_update_supplier_automated_customer_statement(automatedCustomerStatementRequest=automatedCustomerStatementRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRCreateOrUpdateSupplierAutomatedCustomerStatement: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let automatedCustomerStatementRequest = {"scheduledDay":0,"alertID":0,"automatedCustomerStatementID":0,"customerClassID":0}; // AutomatedCustomerStatementRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRCreateOrUpdateSupplierAutomatedCustomerStatement(automatedCustomerStatementRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
automatedCustomerStatementRequest

Responses


aRGetBuyerAgedCustomerOutstandingStatement

Get all aged customers outstanding statements from the buyer Context

Allows a user to retrieve all aged customer statements from database.


/Spenda/Payments/AccountsReceivable/Buyer/AgedCustomerOutstandingStatement/{linkedSupplierID}/{timelineGroup}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/AgedCustomerOutstandingStatement/{linkedSupplierID}/{timelineGroup}?asAtDate=2013-10-20T19:20:30+01:00&filterStatementID=56&searchString=searchString_example&searchField=searchField_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
        Integer timelineGroup = 56; // Integer | selected range to filter out customer statements
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

        try {
            timelineViewTotals result = apiInstance.aRGetBuyerAgedCustomerOutstandingStatement(linkedSupplierID, timelineGroup, asAtDate, filterStatementID, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerAgedCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String linkedSupplierID = new String(); // String | Supplier Unique Identifier
final Integer timelineGroup = new Integer(); // Integer | selected range to filter out customer statements
final Date asAtDate = new Date(); // Date | used to find any documents until specify date
final Integer filterStatementID = new Integer(); // Integer | ignore any date and use StatementID to filter the AR Data
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

try {
    final result = await api_instance.aRGetBuyerAgedCustomerOutstandingStatement(linkedSupplierID, timelineGroup, asAtDate, filterStatementID, searchString, searchField);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetBuyerAgedCustomerOutstandingStatement: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
        Integer timelineGroup = 56; // Integer | selected range to filter out customer statements
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

        try {
            timelineViewTotals result = apiInstance.aRGetBuyerAgedCustomerOutstandingStatement(linkedSupplierID, timelineGroup, asAtDate, filterStatementID, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerAgedCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
String *linkedSupplierID = linkedSupplierID_example; // Supplier Unique Identifier (default to null)
Integer *timelineGroup = 56; // selected range to filter out customer statements (default to null)
Date *asAtDate = 2013-10-20T19:20:30+01:00; // used to find any documents until specify date (optional) (default to null)
Integer *filterStatementID = 56; // ignore any date and use StatementID to filter the AR Data (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)

// Get all aged customers outstanding statements from the buyer Context
[apiInstance aRGetBuyerAgedCustomerOutstandingStatementWith:linkedSupplierID
    timelineGroup:timelineGroup
    asAtDate:asAtDate
    filterStatementID:filterStatementID
    searchString:searchString
    searchField:searchField
              completionHandler: ^(timelineViewTotals output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = linkedSupplierID_example; // {String} Supplier Unique Identifier
var timelineGroup = 56; // {Integer} selected range to filter out customer statements
var opts = {
  'asAtDate': 2013-10-20T19:20:30+01:00, // {Date} used to find any documents until specify date
  'filterStatementID': 56, // {Integer} ignore any date and use StatementID to filter the AR Data
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example // {String} must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = linkedSupplierID_example;  // String | Supplier Unique Identifier (default to null)
            var timelineGroup = 56;  // Integer | selected range to filter out customer statements (default to null)
            var asAtDate = 2013-10-20T19:20:30+01:00;  // Date | used to find any documents until specify date (optional)  (default to null)
            var filterStatementID = 56;  // Integer | ignore any date and use StatementID to filter the AR Data (optional)  (default to null)
            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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional)  (default to null)

            try {
                // Get all aged customers outstanding statements from the buyer Context
                timelineViewTotals result = apiInstance.aRGetBuyerAgedCustomerOutstandingStatement(linkedSupplierID, timelineGroup, asAtDate, filterStatementID, searchString, searchField);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerAgedCustomerOutstandingStatement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
$timelineGroup = 56; // Integer | selected range to filter out customer statements
$asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
$filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

try {
    $result = $api_instance->aRGetBuyerAgedCustomerOutstandingStatement($linkedSupplierID, $timelineGroup, $asAtDate, $filterStatementID, $searchString, $searchField);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerAgedCustomerOutstandingStatement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = linkedSupplierID_example; # String | Supplier Unique Identifier
my $timelineGroup = 56; # Integer | selected range to filter out customer statements
my $asAtDate = 2013-10-20T19:20:30+01:00; # Date | used to find any documents until specify date
my $filterStatementID = 56; # Integer | ignore any date and use StatementID to filter the AR Data
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

eval {
    my $result = $api_instance->aRGetBuyerAgedCustomerOutstandingStatement(linkedSupplierID => $linkedSupplierID, timelineGroup => $timelineGroup, asAtDate => $asAtDate, filterStatementID => $filterStatementID, searchString => $searchString, searchField => $searchField);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerAgedCustomerOutstandingStatement: $@\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.AccountsReceivableApi()
linkedSupplierID = linkedSupplierID_example # String | Supplier Unique Identifier (default to null)
timelineGroup = 56 # Integer | selected range to filter out customer statements (default to null)
asAtDate = 2013-10-20T19:20:30+01:00 # Date | used to find any documents until specify date (optional) (default to null)
filterStatementID = 56 # Integer | ignore any date and use StatementID to filter the AR Data (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)

try:
    # Get all aged customers outstanding statements from the buyer Context
    api_response = api_instance.a_r_get_buyer_aged_customer_outstanding_statement(linkedSupplierID, timelineGroup, asAtDate=asAtDate, filterStatementID=filterStatementID, searchString=searchString, searchField=searchField)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerAgedCustomerOutstandingStatement: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = linkedSupplierID_example; // String
    let timelineGroup = 56; // Integer
    let asAtDate = 2013-10-20T19:20:30+01:00; // Date
    let filterStatementID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerAgedCustomerOutstandingStatement(linkedSupplierID, timelineGroup, asAtDate, filterStatementID, searchString, searchField, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
String
Supplier Unique Identifier
Required
timelineGroup*
Integer (int32)
selected range to filter out customer statements
Required
Query parameters
Name Description
asAtDate
Date (date-time)
used to find any documents until specify date
filterStatementID
Integer (int32)
ignore any date and use StatementID to filter the AR Data
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

Responses


aRGetBuyerConnectedSupplierDetails

Gets Supplier's details from a buyer.

Allows an user to get the connected supplier's detail information in account receivable.


/Spenda/Payments/AccountsReceivable/Buyer/ConnectedSupplierDetails/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/ConnectedSupplierDetails/{linkedSupplierID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier

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

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier

        try {
            connectedSupplierDetails result = apiInstance.aRGetBuyerConnectedSupplierDetails(linkedSupplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerConnectedSupplierDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)

// Gets Supplier's details from a buyer.
[apiInstance aRGetBuyerConnectedSupplierDetailsWith:linkedSupplierID
              completionHandler: ^(connectedSupplierDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)

            try {
                // Gets Supplier's details from a buyer.
                connectedSupplierDetails result = apiInstance.aRGetBuyerConnectedSupplierDetails(linkedSupplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerConnectedSupplierDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier

eval {
    my $result = $api_instance->aRGetBuyerConnectedSupplierDetails(linkedSupplierID => $linkedSupplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerConnectedSupplierDetails: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)

try:
    # Gets Supplier's details from a buyer.
    api_response = api_instance.a_r_get_buyer_connected_supplier_details(linkedSupplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerConnectedSupplierDetails: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerConnectedSupplierDetails(linkedSupplierID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required

Responses


aRGetBuyerConnectedSuppliers

Gets all Connected Suppliers from a buyer.

Allows an user to get the summary of one or many connected supplier in account receivable.


/Spenda/Payments/AccountsReceivable/Buyer/ConnectedSuppliersSummary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/ConnectedSuppliersSummary"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

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

        try {
            array[connectedSupplierSummary] result = apiInstance.aRGetBuyerConnectedSuppliers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerConnectedSuppliers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsReceivableApi;

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

        try {
            array[connectedSupplierSummary] result = apiInstance.aRGetBuyerConnectedSuppliers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerConnectedSuppliers");
            e.printStackTrace();
        }
    }
}


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

// Gets all Connected Suppliers from a buyer.
[apiInstance aRGetBuyerConnectedSuppliersWithCompletionHandler: 
              ^(array[connectedSupplierSummary] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Gets all Connected Suppliers from a buyer.
                array[connectedSupplierSummary] result = apiInstance.aRGetBuyerConnectedSuppliers();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerConnectedSuppliers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->aRGetBuyerConnectedSuppliers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerConnectedSuppliers: $@\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.AccountsReceivableApi()

try:
    # Gets all Connected Suppliers from a buyer.
    api_response = api_instance.a_r_get_buyer_connected_suppliers()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerConnectedSuppliers: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerConnectedSuppliers(&context).wait();

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

Scopes

Parameters

Responses


aRGetBuyerCustomerOutstandingStatement

Get all customers outstanding statements from the buyer Context

Allows a user to retrieve all customer statements from database.


/Spenda/Payments/AccountsReceivable/Buyer/CustomerOutstandingStatement/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/CustomerOutstandingStatement/{linkedSupplierID}?asAtDate=2013-10-20T19:20:30+01:00&filterStatementID=56&startDate=2013-10-20T19:20:30+01:00&endDate=2013-10-20T19:20:30+01:00&searchString=searchString_example&searchField=searchField_example&showSelectedOnly=true&hideSelected=true&showPaymentsCreditsOnly=true&showInvoicesOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
        Boolean showSelectedOnly = true; // Boolean | show only those in editing statement or batch
        Boolean hideSelected = true; // Boolean | show only those NOT in editing statement or batch
        Boolean showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
        Boolean showInvoicesOnly = true; // Boolean | only return invoices

        try {
            customerOutstandingStatementsWithStatementInfo result = apiInstance.aRGetBuyerCustomerOutstandingStatement(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String linkedSupplierID = new String(); // String | Supplier Unique Identifier
final Date asAtDate = new Date(); // Date | used to find any documents until specify date
final Integer filterStatementID = new Integer(); // Integer | ignore any date and use StatementID to filter the AR Data
final Date startDate = new Date(); // Date | used to filter statement due date
final Date endDate = new Date(); // Date | used to filter statement due date
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
final Boolean showSelectedOnly = new Boolean(); // Boolean | show only those in editing statement or batch
final Boolean hideSelected = new Boolean(); // Boolean | show only those NOT in editing statement or batch
final Boolean showPaymentsCreditsOnly = new Boolean(); // Boolean | only return payments and credits
final Boolean showInvoicesOnly = new Boolean(); // Boolean | only return invoices

try {
    final result = await api_instance.aRGetBuyerCustomerOutstandingStatement(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetBuyerCustomerOutstandingStatement: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
        Boolean showSelectedOnly = true; // Boolean | show only those in editing statement or batch
        Boolean hideSelected = true; // Boolean | show only those NOT in editing statement or batch
        Boolean showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
        Boolean showInvoicesOnly = true; // Boolean | only return invoices

        try {
            customerOutstandingStatementsWithStatementInfo result = apiInstance.aRGetBuyerCustomerOutstandingStatement(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
String *linkedSupplierID = linkedSupplierID_example; // Supplier Unique Identifier (default to null)
Date *asAtDate = 2013-10-20T19:20:30+01:00; // used to find any documents until specify date (optional) (default to null)
Integer *filterStatementID = 56; // ignore any date and use StatementID to filter the AR Data (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // used to filter statement due date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // used to filter statement due date (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)
Boolean *showSelectedOnly = true; // show only those in editing statement or batch (optional) (default to null)
Boolean *hideSelected = true; // show only those NOT in editing statement or batch (optional) (default to null)
Boolean *showPaymentsCreditsOnly = true; // only return payments and credits (optional) (default to null)
Boolean *showInvoicesOnly = true; // only return invoices (optional) (default to null)

// Get all customers outstanding statements from the buyer Context
[apiInstance aRGetBuyerCustomerOutstandingStatementWith:linkedSupplierID
    asAtDate:asAtDate
    filterStatementID:filterStatementID
    startDate:startDate
    endDate:endDate
    searchString:searchString
    searchField:searchField
    showSelectedOnly:showSelectedOnly
    hideSelected:hideSelected
    showPaymentsCreditsOnly:showPaymentsCreditsOnly
    showInvoicesOnly:showInvoicesOnly
              completionHandler: ^(customerOutstandingStatementsWithStatementInfo output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = linkedSupplierID_example; // {String} Supplier Unique Identifier
var opts = {
  'asAtDate': 2013-10-20T19:20:30+01:00, // {Date} used to find any documents until specify date
  'filterStatementID': 56, // {Integer} ignore any date and use StatementID to filter the AR Data
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} used to filter statement due date
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} used to filter statement due date
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
  'showSelectedOnly': true, // {Boolean} show only those in editing statement or batch
  'hideSelected': true, // {Boolean} show only those NOT in editing statement or batch
  'showPaymentsCreditsOnly': true, // {Boolean} only return payments and credits
  'showInvoicesOnly': true // {Boolean} only return invoices
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = linkedSupplierID_example;  // String | Supplier Unique Identifier (default to null)
            var asAtDate = 2013-10-20T19:20:30+01:00;  // Date | used to find any documents until specify date (optional)  (default to null)
            var filterStatementID = 56;  // Integer | ignore any date and use StatementID to filter the AR Data (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | used to filter statement due date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | used to filter statement due date (optional)  (default to null)
            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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional)  (default to null)
            var showSelectedOnly = true;  // Boolean | show only those in editing statement or batch (optional)  (default to null)
            var hideSelected = true;  // Boolean | show only those NOT in editing statement or batch (optional)  (default to null)
            var showPaymentsCreditsOnly = true;  // Boolean | only return payments and credits (optional)  (default to null)
            var showInvoicesOnly = true;  // Boolean | only return invoices (optional)  (default to null)

            try {
                // Get all customers outstanding statements from the buyer Context
                customerOutstandingStatementsWithStatementInfo result = apiInstance.aRGetBuyerCustomerOutstandingStatement(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerCustomerOutstandingStatement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
$asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
$filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
$startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
$endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
$showSelectedOnly = true; // Boolean | show only those in editing statement or batch
$hideSelected = true; // Boolean | show only those NOT in editing statement or batch
$showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
$showInvoicesOnly = true; // Boolean | only return invoices

try {
    $result = $api_instance->aRGetBuyerCustomerOutstandingStatement($linkedSupplierID, $asAtDate, $filterStatementID, $startDate, $endDate, $searchString, $searchField, $showSelectedOnly, $hideSelected, $showPaymentsCreditsOnly, $showInvoicesOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerCustomerOutstandingStatement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = linkedSupplierID_example; # String | Supplier Unique Identifier
my $asAtDate = 2013-10-20T19:20:30+01:00; # Date | used to find any documents until specify date
my $filterStatementID = 56; # Integer | ignore any date and use StatementID to filter the AR Data
my $startDate = 2013-10-20T19:20:30+01:00; # Date | used to filter statement due date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | used to filter statement due date
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
my $showSelectedOnly = true; # Boolean | show only those in editing statement or batch
my $hideSelected = true; # Boolean | show only those NOT in editing statement or batch
my $showPaymentsCreditsOnly = true; # Boolean | only return payments and credits
my $showInvoicesOnly = true; # Boolean | only return invoices

eval {
    my $result = $api_instance->aRGetBuyerCustomerOutstandingStatement(linkedSupplierID => $linkedSupplierID, asAtDate => $asAtDate, filterStatementID => $filterStatementID, startDate => $startDate, endDate => $endDate, searchString => $searchString, searchField => $searchField, showSelectedOnly => $showSelectedOnly, hideSelected => $hideSelected, showPaymentsCreditsOnly => $showPaymentsCreditsOnly, showInvoicesOnly => $showInvoicesOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerCustomerOutstandingStatement: $@\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.AccountsReceivableApi()
linkedSupplierID = linkedSupplierID_example # String | Supplier Unique Identifier (default to null)
asAtDate = 2013-10-20T19:20:30+01:00 # Date | used to find any documents until specify date (optional) (default to null)
filterStatementID = 56 # Integer | ignore any date and use StatementID to filter the AR Data (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | used to filter statement due date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | used to filter statement due date (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)
showSelectedOnly = true # Boolean | show only those in editing statement or batch (optional) (default to null)
hideSelected = true # Boolean | show only those NOT in editing statement or batch (optional) (default to null)
showPaymentsCreditsOnly = true # Boolean | only return payments and credits (optional) (default to null)
showInvoicesOnly = true # Boolean | only return invoices (optional) (default to null)

try:
    # Get all customers outstanding statements from the buyer Context
    api_response = api_instance.a_r_get_buyer_customer_outstanding_statement(linkedSupplierID, asAtDate=asAtDate, filterStatementID=filterStatementID, startDate=startDate, endDate=endDate, searchString=searchString, searchField=searchField, showSelectedOnly=showSelectedOnly, hideSelected=hideSelected, showPaymentsCreditsOnly=showPaymentsCreditsOnly, showInvoicesOnly=showInvoicesOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerCustomerOutstandingStatement: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = linkedSupplierID_example; // String
    let asAtDate = 2013-10-20T19:20:30+01:00; // Date
    let filterStatementID = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let showSelectedOnly = true; // Boolean
    let hideSelected = true; // Boolean
    let showPaymentsCreditsOnly = true; // Boolean
    let showInvoicesOnly = true; // Boolean

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerCustomerOutstandingStatement(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
String
Supplier Unique Identifier
Required
Query parameters
Name Description
asAtDate
Date (date-time)
used to find any documents until specify date
filterStatementID
Integer (int32)
ignore any date and use StatementID to filter the AR Data
startDate
Date (date-time)
used to filter statement due date
endDate
Date (date-time)
used to filter statement due date
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
showSelectedOnly
Boolean
show only those in editing statement or batch
hideSelected
Boolean
show only those NOT in editing statement or batch
showPaymentsCreditsOnly
Boolean
only return payments and credits
showInvoicesOnly
Boolean
only return invoices

Responses


aRGetBuyerCustomerOutstandingStatementGroupedByVendor

Get all customers outstanding statements from the buyer Context

Allows a user to retrieve all customer statements from database.


/Spenda/Payments/AccountsReceivable/Buyer/CustomerOutstandingStatementGroupedByVendor/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/CustomerOutstandingStatementGroupedByVendor/{linkedSupplierID}?asAtDate=2013-10-20T19:20:30+01:00&filterStatementID=56&startDate=2013-10-20T19:20:30+01:00&endDate=2013-10-20T19:20:30+01:00&searchString=searchString_example&searchField=searchField_example&showSelectedOnly=true&hideSelected=true&showPaymentsCreditsOnly=true&showInvoicesOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
        Boolean showSelectedOnly = true; // Boolean | show only those in editing statement or batch
        Boolean hideSelected = true; // Boolean | show only those NOT in editing statement or batch
        Boolean showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
        Boolean showInvoicesOnly = true; // Boolean | only return invoices

        try {
            customerOutstandingStatementGroupByVendorWithStatementInfo result = apiInstance.aRGetBuyerCustomerOutstandingStatementGroupedByVendor(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerOutstandingStatementGroupedByVendor");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String linkedSupplierID = new String(); // String | Supplier Unique Identifier
final Date asAtDate = new Date(); // Date | used to find any documents until specify date
final Integer filterStatementID = new Integer(); // Integer | ignore any date and use StatementID to filter the AR Data
final Date startDate = new Date(); // Date | used to filter statement due date
final Date endDate = new Date(); // Date | used to filter statement due date
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
final Boolean showSelectedOnly = new Boolean(); // Boolean | show only those in editing statement or batch
final Boolean hideSelected = new Boolean(); // Boolean | show only those NOT in editing statement or batch
final Boolean showPaymentsCreditsOnly = new Boolean(); // Boolean | only return payments and credits
final Boolean showInvoicesOnly = new Boolean(); // Boolean | only return invoices

try {
    final result = await api_instance.aRGetBuyerCustomerOutstandingStatementGroupedByVendor(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetBuyerCustomerOutstandingStatementGroupedByVendor: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
        Boolean showSelectedOnly = true; // Boolean | show only those in editing statement or batch
        Boolean hideSelected = true; // Boolean | show only those NOT in editing statement or batch
        Boolean showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
        Boolean showInvoicesOnly = true; // Boolean | only return invoices

        try {
            customerOutstandingStatementGroupByVendorWithStatementInfo result = apiInstance.aRGetBuyerCustomerOutstandingStatementGroupedByVendor(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerOutstandingStatementGroupedByVendor");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
String *linkedSupplierID = linkedSupplierID_example; // Supplier Unique Identifier (default to null)
Date *asAtDate = 2013-10-20T19:20:30+01:00; // used to find any documents until specify date (optional) (default to null)
Integer *filterStatementID = 56; // ignore any date and use StatementID to filter the AR Data (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // used to filter statement due date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // used to filter statement due date (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)
Boolean *showSelectedOnly = true; // show only those in editing statement or batch (optional) (default to null)
Boolean *hideSelected = true; // show only those NOT in editing statement or batch (optional) (default to null)
Boolean *showPaymentsCreditsOnly = true; // only return payments and credits (optional) (default to null)
Boolean *showInvoicesOnly = true; // only return invoices (optional) (default to null)

// Get all customers outstanding statements from the buyer Context
[apiInstance aRGetBuyerCustomerOutstandingStatementGroupedByVendorWith:linkedSupplierID
    asAtDate:asAtDate
    filterStatementID:filterStatementID
    startDate:startDate
    endDate:endDate
    searchString:searchString
    searchField:searchField
    showSelectedOnly:showSelectedOnly
    hideSelected:hideSelected
    showPaymentsCreditsOnly:showPaymentsCreditsOnly
    showInvoicesOnly:showInvoicesOnly
              completionHandler: ^(customerOutstandingStatementGroupByVendorWithStatementInfo output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = linkedSupplierID_example; // {String} Supplier Unique Identifier
var opts = {
  'asAtDate': 2013-10-20T19:20:30+01:00, // {Date} used to find any documents until specify date
  'filterStatementID': 56, // {Integer} ignore any date and use StatementID to filter the AR Data
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} used to filter statement due date
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} used to filter statement due date
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
  'showSelectedOnly': true, // {Boolean} show only those in editing statement or batch
  'hideSelected': true, // {Boolean} show only those NOT in editing statement or batch
  'showPaymentsCreditsOnly': true, // {Boolean} only return payments and credits
  'showInvoicesOnly': true // {Boolean} only return invoices
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = linkedSupplierID_example;  // String | Supplier Unique Identifier (default to null)
            var asAtDate = 2013-10-20T19:20:30+01:00;  // Date | used to find any documents until specify date (optional)  (default to null)
            var filterStatementID = 56;  // Integer | ignore any date and use StatementID to filter the AR Data (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | used to filter statement due date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | used to filter statement due date (optional)  (default to null)
            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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional)  (default to null)
            var showSelectedOnly = true;  // Boolean | show only those in editing statement or batch (optional)  (default to null)
            var hideSelected = true;  // Boolean | show only those NOT in editing statement or batch (optional)  (default to null)
            var showPaymentsCreditsOnly = true;  // Boolean | only return payments and credits (optional)  (default to null)
            var showInvoicesOnly = true;  // Boolean | only return invoices (optional)  (default to null)

            try {
                // Get all customers outstanding statements from the buyer Context
                customerOutstandingStatementGroupByVendorWithStatementInfo result = apiInstance.aRGetBuyerCustomerOutstandingStatementGroupedByVendor(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerCustomerOutstandingStatementGroupedByVendor: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = linkedSupplierID_example; // String | Supplier Unique Identifier
$asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
$filterStatementID = 56; // Integer | ignore any date and use StatementID to filter the AR Data
$startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
$endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
$showSelectedOnly = true; // Boolean | show only those in editing statement or batch
$hideSelected = true; // Boolean | show only those NOT in editing statement or batch
$showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
$showInvoicesOnly = true; // Boolean | only return invoices

try {
    $result = $api_instance->aRGetBuyerCustomerOutstandingStatementGroupedByVendor($linkedSupplierID, $asAtDate, $filterStatementID, $startDate, $endDate, $searchString, $searchField, $showSelectedOnly, $hideSelected, $showPaymentsCreditsOnly, $showInvoicesOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerCustomerOutstandingStatementGroupedByVendor: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = linkedSupplierID_example; # String | Supplier Unique Identifier
my $asAtDate = 2013-10-20T19:20:30+01:00; # Date | used to find any documents until specify date
my $filterStatementID = 56; # Integer | ignore any date and use StatementID to filter the AR Data
my $startDate = 2013-10-20T19:20:30+01:00; # Date | used to filter statement due date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | used to filter statement due date
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
my $showSelectedOnly = true; # Boolean | show only those in editing statement or batch
my $hideSelected = true; # Boolean | show only those NOT in editing statement or batch
my $showPaymentsCreditsOnly = true; # Boolean | only return payments and credits
my $showInvoicesOnly = true; # Boolean | only return invoices

eval {
    my $result = $api_instance->aRGetBuyerCustomerOutstandingStatementGroupedByVendor(linkedSupplierID => $linkedSupplierID, asAtDate => $asAtDate, filterStatementID => $filterStatementID, startDate => $startDate, endDate => $endDate, searchString => $searchString, searchField => $searchField, showSelectedOnly => $showSelectedOnly, hideSelected => $hideSelected, showPaymentsCreditsOnly => $showPaymentsCreditsOnly, showInvoicesOnly => $showInvoicesOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerCustomerOutstandingStatementGroupedByVendor: $@\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.AccountsReceivableApi()
linkedSupplierID = linkedSupplierID_example # String | Supplier Unique Identifier (default to null)
asAtDate = 2013-10-20T19:20:30+01:00 # Date | used to find any documents until specify date (optional) (default to null)
filterStatementID = 56 # Integer | ignore any date and use StatementID to filter the AR Data (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | used to filter statement due date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | used to filter statement due date (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)
showSelectedOnly = true # Boolean | show only those in editing statement or batch (optional) (default to null)
hideSelected = true # Boolean | show only those NOT in editing statement or batch (optional) (default to null)
showPaymentsCreditsOnly = true # Boolean | only return payments and credits (optional) (default to null)
showInvoicesOnly = true # Boolean | only return invoices (optional) (default to null)

try:
    # Get all customers outstanding statements from the buyer Context
    api_response = api_instance.a_r_get_buyer_customer_outstanding_statement_grouped_by_vendor(linkedSupplierID, asAtDate=asAtDate, filterStatementID=filterStatementID, startDate=startDate, endDate=endDate, searchString=searchString, searchField=searchField, showSelectedOnly=showSelectedOnly, hideSelected=hideSelected, showPaymentsCreditsOnly=showPaymentsCreditsOnly, showInvoicesOnly=showInvoicesOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerCustomerOutstandingStatementGroupedByVendor: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = linkedSupplierID_example; // String
    let asAtDate = 2013-10-20T19:20:30+01:00; // Date
    let filterStatementID = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let showSelectedOnly = true; // Boolean
    let hideSelected = true; // Boolean
    let showPaymentsCreditsOnly = true; // Boolean
    let showInvoicesOnly = true; // Boolean

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerCustomerOutstandingStatementGroupedByVendor(linkedSupplierID, asAtDate, filterStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
String
Supplier Unique Identifier
Required
Query parameters
Name Description
asAtDate
Date (date-time)
used to find any documents until specify date
filterStatementID
Integer (int32)
ignore any date and use StatementID to filter the AR Data
startDate
Date (date-time)
used to filter statement due date
endDate
Date (date-time)
used to filter statement due date
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
showSelectedOnly
Boolean
show only those in editing statement or batch
hideSelected
Boolean
show only those NOT in editing statement or batch
showPaymentsCreditsOnly
Boolean
only return payments and credits
showInvoicesOnly
Boolean
only return invoices

Responses


aRGetBuyerCustomerStatementsByVendor

Gets all Vendor's customer statements from a buyer.

Allows an user to get the summary and the details of an account receivable vendor's customer statement.


/Spenda/Payments/AccountsReceivable/Buyer/CustomerStatementGroupByVendor

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/CustomerStatementGroupByVendor?linkedSupplierID=56&requestedList=56&searchString=searchString_example&maxResults=56&startRow=56&startDate=2013-10-20T19:20:30+01:00&endDate=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.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        Integer requestedList = 56; // Integer | Identifier to look into different transaction types
        String searchString = searchString_example; // String | String of characters to specify an advance search
        Integer maxResults = 56; // Integer | Number of maximum expected results in the response
        Integer startRow = 56; // Integer | Number where the pagination will start counting
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 

        try {
            customerStatementsByVendorResponse result = apiInstance.aRGetBuyerCustomerStatementsByVendor(linkedSupplierID, requestedList, searchString, maxResults, startRow, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerStatementsByVendor");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final Integer requestedList = new Integer(); // Integer | Identifier to look into different transaction types
final String searchString = new String(); // String | String of characters to specify an advance search
final Integer maxResults = new Integer(); // Integer | Number of maximum expected results in the response
final Integer startRow = new Integer(); // Integer | Number where the pagination will start counting
final Date startDate = new Date(); // Date | 
final Date endDate = new Date(); // Date | 

try {
    final result = await api_instance.aRGetBuyerCustomerStatementsByVendor(linkedSupplierID, requestedList, searchString, maxResults, startRow, startDate, endDate);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetBuyerCustomerStatementsByVendor: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        Integer requestedList = 56; // Integer | Identifier to look into different transaction types
        String searchString = searchString_example; // String | String of characters to specify an advance search
        Integer maxResults = 56; // Integer | Number of maximum expected results in the response
        Integer startRow = 56; // Integer | Number where the pagination will start counting
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 

        try {
            customerStatementsByVendorResponse result = apiInstance.aRGetBuyerCustomerStatementsByVendor(linkedSupplierID, requestedList, searchString, maxResults, startRow, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerStatementsByVendor");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
Integer *requestedList = 56; // Identifier to look into different transaction types (default to null)
String *searchString = searchString_example; // String of characters to specify an advance search (optional) (default to null)
Integer *maxResults = 56; // Number of maximum expected results in the response (optional) (default to null)
Integer *startRow = 56; // Number where the pagination will start counting (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)

// Gets all Vendor's customer statements from a buyer.
[apiInstance aRGetBuyerCustomerStatementsByVendorWith:linkedSupplierID
    requestedList:requestedList
    searchString:searchString
    maxResults:maxResults
    startRow:startRow
    startDate:startDate
    endDate:endDate
              completionHandler: ^(customerStatementsByVendorResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var requestedList = 56; // {Integer} Identifier to look into different transaction types
var opts = {
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'maxResults': 56, // {Integer} Number of maximum expected results in the response
  'startRow': 56, // {Integer} Number where the pagination will start counting
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'endDate': 2013-10-20T19:20:30+01:00 // {Date} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var requestedList = 56;  // Integer | Identifier to look into different transaction types (default to null)
            var searchString = searchString_example;  // String | String of characters to specify an advance search (optional)  (default to null)
            var maxResults = 56;  // Integer | Number of maximum expected results in the response (optional)  (default to null)
            var startRow = 56;  // Integer | Number where the pagination will start counting (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)

            try {
                // Gets all Vendor's customer statements from a buyer.
                customerStatementsByVendorResponse result = apiInstance.aRGetBuyerCustomerStatementsByVendor(linkedSupplierID, requestedList, searchString, maxResults, startRow, startDate, endDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerCustomerStatementsByVendor: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$requestedList = 56; // Integer | Identifier to look into different transaction types
$searchString = searchString_example; // String | String of characters to specify an advance search
$maxResults = 56; // Integer | Number of maximum expected results in the response
$startRow = 56; // Integer | Number where the pagination will start counting
$startDate = 2013-10-20T19:20:30+01:00; // Date | 
$endDate = 2013-10-20T19:20:30+01:00; // Date | 

try {
    $result = $api_instance->aRGetBuyerCustomerStatementsByVendor($linkedSupplierID, $requestedList, $searchString, $maxResults, $startRow, $startDate, $endDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerCustomerStatementsByVendor: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $requestedList = 56; # Integer | Identifier to look into different transaction types
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $maxResults = 56; # Integer | Number of maximum expected results in the response
my $startRow = 56; # Integer | Number where the pagination will start counting
my $startDate = 2013-10-20T19:20:30+01:00; # Date | 
my $endDate = 2013-10-20T19:20:30+01:00; # Date | 

eval {
    my $result = $api_instance->aRGetBuyerCustomerStatementsByVendor(linkedSupplierID => $linkedSupplierID, requestedList => $requestedList, searchString => $searchString, maxResults => $maxResults, startRow => $startRow, startDate => $startDate, endDate => $endDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerCustomerStatementsByVendor: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
requestedList = 56 # Integer | Identifier to look into different transaction types (default to null)
searchString = searchString_example # String | String of characters to specify an advance search (optional) (default to null)
maxResults = 56 # Integer | Number of maximum expected results in the response (optional) (default to null)
startRow = 56 # Integer | Number where the pagination will start counting (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)

try:
    # Gets all Vendor's customer statements from a buyer.
    api_response = api_instance.a_r_get_buyer_customer_statements_by_vendor(linkedSupplierID, requestedList, searchString=searchString, maxResults=maxResults, startRow=startRow, startDate=startDate, endDate=endDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerCustomerStatementsByVendor: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let requestedList = 56; // Integer
    let searchString = searchString_example; // String
    let maxResults = 56; // Integer
    let startRow = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerCustomerStatementsByVendor(linkedSupplierID, requestedList, searchString, maxResults, startRow, startDate, endDate, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
requestedList*
Integer (int32)
Identifier to look into different transaction types
Required
searchString
String
String of characters to specify an advance search
maxResults
Integer (int32)
Number of maximum expected results in the response
startRow
Integer (int32)
Number where the pagination will start counting
startDate
Date (date-time)
endDate
Date (date-time)

Responses


aRGetBuyerCustomerStatementsByVendorV2

Gets all Vendor's customer statements from a buyer.

Allows an user to get the summary and the details of an account receivable vendor's customer statement.


/Spenda/Payments/AccountsReceivable/Buyer/CustomerStatementGroupByVendorV2

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/CustomerStatementGroupByVendorV2?linkedSupplierID=56&requestedList=56&IsShowSelectedOnly=true&IsHideSelected=true&searchString=searchString_example&startDate=2013-10-20T19:20:30+01:00&endDate=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.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        Integer requestedList = 56; // Integer | Identifier to look into different transaction types
        Boolean isShowSelectedOnly = true; // Boolean | Show only the invoices which are assigned for a batch payment
        Boolean isHideSelected = true; // Boolean | Hide all invoices which are assigned for a batch payment
        String searchString = searchString_example; // String | String of characters to specify an advance search
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 

        try {
            customerStatementsByVendorResponseV2 result = apiInstance.aRGetBuyerCustomerStatementsByVendorV2(linkedSupplierID, requestedList, isShowSelectedOnly, isHideSelected, searchString, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerStatementsByVendorV2");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final Integer requestedList = new Integer(); // Integer | Identifier to look into different transaction types
final Boolean isShowSelectedOnly = new Boolean(); // Boolean | Show only the invoices which are assigned for a batch payment
final Boolean isHideSelected = new Boolean(); // Boolean | Hide all invoices which are assigned for a batch payment
final String searchString = new String(); // String | String of characters to specify an advance search
final Date startDate = new Date(); // Date | 
final Date endDate = new Date(); // Date | 

try {
    final result = await api_instance.aRGetBuyerCustomerStatementsByVendorV2(linkedSupplierID, requestedList, isShowSelectedOnly, isHideSelected, searchString, startDate, endDate);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetBuyerCustomerStatementsByVendorV2: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        Integer requestedList = 56; // Integer | Identifier to look into different transaction types
        Boolean isShowSelectedOnly = true; // Boolean | Show only the invoices which are assigned for a batch payment
        Boolean isHideSelected = true; // Boolean | Hide all invoices which are assigned for a batch payment
        String searchString = searchString_example; // String | String of characters to specify an advance search
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 

        try {
            customerStatementsByVendorResponseV2 result = apiInstance.aRGetBuyerCustomerStatementsByVendorV2(linkedSupplierID, requestedList, isShowSelectedOnly, isHideSelected, searchString, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerCustomerStatementsByVendorV2");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
Integer *requestedList = 56; // Identifier to look into different transaction types (default to null)
Boolean *isShowSelectedOnly = true; // Show only the invoices which are assigned for a batch payment (optional) (default to null)
Boolean *isHideSelected = true; // Hide all invoices which are assigned for a batch payment (optional) (default to null)
String *searchString = searchString_example; // String of characters to specify an advance search (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)

// Gets all Vendor's customer statements from a buyer.
[apiInstance aRGetBuyerCustomerStatementsByVendorV2With:linkedSupplierID
    requestedList:requestedList
    isShowSelectedOnly:isShowSelectedOnly
    isHideSelected:isHideSelected
    searchString:searchString
    startDate:startDate
    endDate:endDate
              completionHandler: ^(customerStatementsByVendorResponseV2 output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var requestedList = 56; // {Integer} Identifier to look into different transaction types
var opts = {
  'isShowSelectedOnly': true, // {Boolean} Show only the invoices which are assigned for a batch payment
  'isHideSelected': true, // {Boolean} Hide all invoices which are assigned for a batch payment
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'endDate': 2013-10-20T19:20:30+01:00 // {Date} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var requestedList = 56;  // Integer | Identifier to look into different transaction types (default to null)
            var isShowSelectedOnly = true;  // Boolean | Show only the invoices which are assigned for a batch payment (optional)  (default to null)
            var isHideSelected = true;  // Boolean | Hide all invoices which are assigned for a batch payment (optional)  (default to null)
            var searchString = searchString_example;  // String | String of characters to specify an advance search (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)

            try {
                // Gets all Vendor's customer statements from a buyer.
                customerStatementsByVendorResponseV2 result = apiInstance.aRGetBuyerCustomerStatementsByVendorV2(linkedSupplierID, requestedList, isShowSelectedOnly, isHideSelected, searchString, startDate, endDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerCustomerStatementsByVendorV2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$requestedList = 56; // Integer | Identifier to look into different transaction types
$isShowSelectedOnly = true; // Boolean | Show only the invoices which are assigned for a batch payment
$isHideSelected = true; // Boolean | Hide all invoices which are assigned for a batch payment
$searchString = searchString_example; // String | String of characters to specify an advance search
$startDate = 2013-10-20T19:20:30+01:00; // Date | 
$endDate = 2013-10-20T19:20:30+01:00; // Date | 

try {
    $result = $api_instance->aRGetBuyerCustomerStatementsByVendorV2($linkedSupplierID, $requestedList, $isShowSelectedOnly, $isHideSelected, $searchString, $startDate, $endDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerCustomerStatementsByVendorV2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $requestedList = 56; # Integer | Identifier to look into different transaction types
my $isShowSelectedOnly = true; # Boolean | Show only the invoices which are assigned for a batch payment
my $isHideSelected = true; # Boolean | Hide all invoices which are assigned for a batch payment
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $startDate = 2013-10-20T19:20:30+01:00; # Date | 
my $endDate = 2013-10-20T19:20:30+01:00; # Date | 

eval {
    my $result = $api_instance->aRGetBuyerCustomerStatementsByVendorV2(linkedSupplierID => $linkedSupplierID, requestedList => $requestedList, isShowSelectedOnly => $isShowSelectedOnly, isHideSelected => $isHideSelected, searchString => $searchString, startDate => $startDate, endDate => $endDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerCustomerStatementsByVendorV2: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
requestedList = 56 # Integer | Identifier to look into different transaction types (default to null)
isShowSelectedOnly = true # Boolean | Show only the invoices which are assigned for a batch payment (optional) (default to null)
isHideSelected = true # Boolean | Hide all invoices which are assigned for a batch payment (optional) (default to null)
searchString = searchString_example # String | String of characters to specify an advance search (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)

try:
    # Gets all Vendor's customer statements from a buyer.
    api_response = api_instance.a_r_get_buyer_customer_statements_by_vendor_v2(linkedSupplierID, requestedList, isShowSelectedOnly=isShowSelectedOnly, isHideSelected=isHideSelected, searchString=searchString, startDate=startDate, endDate=endDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerCustomerStatementsByVendorV2: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let requestedList = 56; // Integer
    let isShowSelectedOnly = true; // Boolean
    let isHideSelected = true; // Boolean
    let searchString = searchString_example; // String
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerCustomerStatementsByVendorV2(linkedSupplierID, requestedList, isShowSelectedOnly, isHideSelected, searchString, startDate, endDate, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
requestedList*
Integer (int32)
Identifier to look into different transaction types
Required
IsShowSelectedOnly
Boolean
Show only the invoices which are assigned for a batch payment
IsHideSelected
Boolean
Hide all invoices which are assigned for a batch payment
searchString
String
String of characters to specify an advance search
startDate
Date (date-time)
endDate
Date (date-time)

Responses


aRGetBuyerInvoices

Get all Buyer tenant Invoices

Allows an buyer user to retrieve all Invoices.


/Spenda/Payments/AccountsReceivable/Buyer/{linkedSupplierID}/Invoices

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/{linkedSupplierID}/Invoices?searchString=searchString_example&searchField=searchField_example&vendorID=56&salesOrderID=56&status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | Define the peroperty to search
        Integer vendorID = 56; // Integer | Define property to serach for specific vendor
        Integer salesOrderID = 56; // Integer | Define the peroperty to derach for specific saled order
        array[String] status = ; // array[String] | Define the property to serach based on status

        try {
            array[vendorDetails] result = apiInstance.aRGetBuyerInvoices(linkedSupplierID, searchString, searchField, vendorID, salesOrderID, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerInvoices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Supplier unique identifier in the buyer's tenancy
final String searchString = new String(); // String | String of characters to specify an advance search
final String searchField = new String(); // String | Define the peroperty to search
final Integer vendorID = new Integer(); // Integer | Define property to serach for specific vendor
final Integer salesOrderID = new Integer(); // Integer | Define the peroperty to derach for specific saled order
final array[String] status = new array[String](); // array[String] | Define the property to serach based on status

try {
    final result = await api_instance.aRGetBuyerInvoices(linkedSupplierID, searchString, searchField, vendorID, salesOrderID, status);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetBuyerInvoices: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | Define the peroperty to search
        Integer vendorID = 56; // Integer | Define property to serach for specific vendor
        Integer salesOrderID = 56; // Integer | Define the peroperty to derach for specific saled order
        array[String] status = ; // array[String] | Define the property to serach based on status

        try {
            array[vendorDetails] result = apiInstance.aRGetBuyerInvoices(linkedSupplierID, searchString, searchField, vendorID, salesOrderID, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerInvoices");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Supplier unique identifier in the buyer's tenancy (default to null)
String *searchString = searchString_example; // String of characters to specify an advance search (optional) (default to null)
String *searchField = searchField_example; // Define the peroperty to search (optional) (default to null)
Integer *vendorID = 56; // Define property to serach for specific vendor (optional) (default to null)
Integer *salesOrderID = 56; // Define the peroperty to derach for specific saled order (optional) (default to null)
array[String] *status = ; // Define the property to serach based on status (optional) (default to null)

// Get all Buyer tenant Invoices
[apiInstance aRGetBuyerInvoicesWith:linkedSupplierID
    searchString:searchString
    searchField:searchField
    vendorID:vendorID
    salesOrderID:salesOrderID
    status:status
              completionHandler: ^(array[vendorDetails] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Supplier unique identifier in the buyer's tenancy
var opts = {
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} Define the peroperty to search
  'vendorID': 56, // {Integer} Define property to serach for specific vendor
  'salesOrderID': 56, // {Integer} Define the peroperty to derach for specific saled order
  'status':  // {array[String]} Define the property to serach based on status
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Supplier unique identifier in the buyer's tenancy (default to null)
            var searchString = searchString_example;  // String | String of characters to specify an advance search (optional)  (default to null)
            var searchField = searchField_example;  // String | Define the peroperty to search (optional)  (default to null)
            var vendorID = 56;  // Integer | Define property to serach for specific vendor (optional)  (default to null)
            var salesOrderID = 56;  // Integer | Define the peroperty to derach for specific saled order (optional)  (default to null)
            var status = new array[String](); // array[String] | Define the property to serach based on status (optional)  (default to null)

            try {
                // Get all Buyer tenant Invoices
                array[vendorDetails] result = apiInstance.aRGetBuyerInvoices(linkedSupplierID, searchString, searchField, vendorID, salesOrderID, status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | Define the peroperty to search
$vendorID = 56; // Integer | Define property to serach for specific vendor
$salesOrderID = 56; // Integer | Define the peroperty to derach for specific saled order
$status = ; // array[String] | Define the property to serach based on status

try {
    $result = $api_instance->aRGetBuyerInvoices($linkedSupplierID, $searchString, $searchField, $vendorID, $salesOrderID, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerInvoices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Supplier unique identifier in the buyer's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | Define the peroperty to search
my $vendorID = 56; # Integer | Define property to serach for specific vendor
my $salesOrderID = 56; # Integer | Define the peroperty to derach for specific saled order
my $status = []; # array[String] | Define the property to serach based on status

eval {
    my $result = $api_instance->aRGetBuyerInvoices(linkedSupplierID => $linkedSupplierID, searchString => $searchString, searchField => $searchField, vendorID => $vendorID, salesOrderID => $salesOrderID, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerInvoices: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Supplier unique identifier in the buyer's tenancy (default to null)
searchString = searchString_example # String | String of characters to specify an advance search (optional) (default to null)
searchField = searchField_example # String | Define the peroperty to search (optional) (default to null)
vendorID = 56 # Integer | Define property to serach for specific vendor (optional) (default to null)
salesOrderID = 56 # Integer | Define the peroperty to derach for specific saled order (optional) (default to null)
status =  # array[String] | Define the property to serach based on status (optional) (default to null)

try:
    # Get all Buyer tenant Invoices
    api_response = api_instance.a_r_get_buyer_invoices(linkedSupplierID, searchString=searchString, searchField=searchField, vendorID=vendorID, salesOrderID=salesOrderID, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerInvoices: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let vendorID = 56; // Integer
    let salesOrderID = 56; // Integer
    let status = ; // array[String]

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerInvoices(linkedSupplierID, searchString, searchField, vendorID, salesOrderID, status, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Supplier unique identifier in the buyer's tenancy
Required
Query parameters
Name Description
searchString
String
String of characters to specify an advance search
searchField
String
Define the peroperty to search
vendorID
Integer (int32)
Define property to serach for specific vendor
salesOrderID
Integer (int32)
Define the peroperty to derach for specific saled order
status
array[String]
Define the property to serach based on status

Responses


aRGetBuyerPaidInvoices

Get all Customer Paid invoices from the buyer Context

Allows a user to retrieve all customer paid invoices from database.


/Spenda/Payments/AccountsReceivable/Buyer/PaidInvoices/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/PaidInvoices/{linkedSupplierID}?paymentDate=2013-10-20T19:20:30+01:00&searchString=searchString_example&searchField=searchField_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        Date paymentDate = 2013-10-20T19:20:30+01:00; // Date | search all invoices that were paid on this date
        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, 'Amount' or, 'Date'

        try {
            array[paidInvoicesResponse] result = apiInstance.aRGetBuyerPaidInvoices(linkedSupplierID, paymentDate, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerPaidInvoices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Supplier unique identifier in the buyer's tenancy
final Date paymentDate = new Date(); // Date | search all invoices that were paid on this date
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, 'Amount' or, 'Date'

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        Date paymentDate = 2013-10-20T19:20:30+01:00; // Date | search all invoices that were paid on this date
        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, 'Amount' or, 'Date'

        try {
            array[paidInvoicesResponse] result = apiInstance.aRGetBuyerPaidInvoices(linkedSupplierID, paymentDate, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerPaidInvoices");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Supplier unique identifier in the buyer's tenancy (default to null)
Date *paymentDate = 2013-10-20T19:20:30+01:00; // search all invoices that were paid on this date (optional) (default to null)
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, 'Amount' or, 'Date' (optional) (default to null)

// Get all Customer Paid invoices from the buyer Context
[apiInstance aRGetBuyerPaidInvoicesWith:linkedSupplierID
    paymentDate:paymentDate
    searchString:searchString
    searchField:searchField
              completionHandler: ^(array[paidInvoicesResponse] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Supplier unique identifier in the buyer's tenancy
var opts = {
  'paymentDate': 2013-10-20T19:20:30+01:00, // {Date} search all invoices that were paid on this date
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example // {String} must be NULL or empty or, 'InvoiceRefNumber' or, 'Amount' or, 'Date'
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Supplier unique identifier in the buyer's tenancy (default to null)
            var paymentDate = 2013-10-20T19:20:30+01:00;  // Date | search all invoices that were paid on this date (optional)  (default to null)
            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, 'Amount' or, 'Date' (optional)  (default to null)

            try {
                // Get all Customer Paid invoices from the buyer Context
                array[paidInvoicesResponse] result = apiInstance.aRGetBuyerPaidInvoices(linkedSupplierID, paymentDate, searchString, searchField);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerPaidInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
$paymentDate = 2013-10-20T19:20:30+01:00; // Date | search all invoices that were paid on this date
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Amount' or, 'Date'

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Supplier unique identifier in the buyer's tenancy
my $paymentDate = 2013-10-20T19:20:30+01:00; # Date | search all invoices that were paid on this date
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, 'Amount' or, 'Date'

eval {
    my $result = $api_instance->aRGetBuyerPaidInvoices(linkedSupplierID => $linkedSupplierID, paymentDate => $paymentDate, searchString => $searchString, searchField => $searchField);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerPaidInvoices: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Supplier unique identifier in the buyer's tenancy (default to null)
paymentDate = 2013-10-20T19:20:30+01:00 # Date | search all invoices that were paid on this date (optional) (default to null)
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, 'Amount' or, 'Date' (optional) (default to null)

try:
    # Get all Customer Paid invoices from the buyer Context
    api_response = api_instance.a_r_get_buyer_paid_invoices(linkedSupplierID, paymentDate=paymentDate, searchString=searchString, searchField=searchField)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerPaidInvoices: %s\n" % e)
extern crate AccountsReceivableApi;

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

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerPaidInvoices(linkedSupplierID, paymentDate, searchString, searchField, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Supplier unique identifier in the buyer's tenancy
Required
Query parameters
Name Description
paymentDate
Date (date-time)
search all invoices that were paid on this date
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or, 'InvoiceRefNumber' or, 'Amount' or, 'Date'

Responses


aRGetBuyerPaymentHistory

Get all payment history

Allows an user to retrieve all payment history in the buyer context.


/Spenda/Payments/AccountsReceivable/Buyer/PaymentHistory/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/PaymentHistory/{linkedSupplierID}?SearchString=searchString_example&SearchField=searchField_example&dateFrom=2013-10-20T19:20:30+01:00&dateTo=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.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            array[paymentHistory] result = apiInstance.aRGetBuyerPaymentHistory(linkedSupplierID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerPaymentHistory");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Supplier unique identifier in the buyer's tenancy
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
final Date dateFrom = new Date(); // Date | date to filter all IPA that were made from this date
final Date dateTo = new Date(); // Date | date to filter all IPA that were made to this date

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            array[paymentHistory] result = apiInstance.aRGetBuyerPaymentHistory(linkedSupplierID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerPaymentHistory");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Supplier unique identifier in the buyer's tenancy (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
Date *dateFrom = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made from this date (optional) (default to null)
Date *dateTo = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made to this date (optional) (default to null)

// Get all payment history
[apiInstance aRGetBuyerPaymentHistoryWith:linkedSupplierID
    searchString:searchString
    searchField:searchField
    dateFrom:dateFrom
    dateTo:dateTo
              completionHandler: ^(array[paymentHistory] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Supplier unique identifier in the buyer's tenancy
var opts = {
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
  'dateFrom': 2013-10-20T19:20:30+01:00, // {Date} date to filter all IPA that were made from this date
  'dateTo': 2013-10-20T19:20:30+01:00 // {Date} date to filter all IPA that were made to this date
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Supplier unique identifier in the buyer's tenancy (default to null)
            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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional)  (default to null)
            var dateFrom = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made from this date (optional)  (default to null)
            var dateTo = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made to this date (optional)  (default to null)

            try {
                // Get all payment history
                array[paymentHistory] result = apiInstance.aRGetBuyerPaymentHistory(linkedSupplierID, searchString, searchField, dateFrom, dateTo);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerPaymentHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
$dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
$dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

try {
    $result = $api_instance->aRGetBuyerPaymentHistory($linkedSupplierID, $searchString, $searchField, $dateFrom, $dateTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerPaymentHistory: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Supplier unique identifier in the buyer's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
my $dateFrom = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made from this date
my $dateTo = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made to this date

eval {
    my $result = $api_instance->aRGetBuyerPaymentHistory(linkedSupplierID => $linkedSupplierID, searchString => $searchString, searchField => $searchField, dateFrom => $dateFrom, dateTo => $dateTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerPaymentHistory: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Supplier unique identifier in the buyer's tenancy (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
dateFrom = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made from this date (optional) (default to null)
dateTo = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made to this date (optional) (default to null)

try:
    # Get all payment history
    api_response = api_instance.a_r_get_buyer_payment_history(linkedSupplierID, searchString=searchString, searchField=searchField, dateFrom=dateFrom, dateTo=dateTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerPaymentHistory: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let dateFrom = 2013-10-20T19:20:30+01:00; // Date
    let dateTo = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerPaymentHistory(linkedSupplierID, searchString, searchField, dateFrom, dateTo, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Supplier unique identifier in the buyer's tenancy
Required
Query parameters
Name Description
SearchString
String
String of characters to specify an advance search
SearchField
String
must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
dateFrom
Date (date-time)
date to filter all IPA that were made from this date
dateTo
Date (date-time)
date to filter all IPA that were made to this date

Responses


aRGetBuyerPaymentHistoryV2

Get all payment history and upcoming payments (scheduled payments)

Allows an user to retrieve all payment history and upcoming payments in the buyer context.


/Spenda/Payments/AccountsReceivable/Buyer/PaymentHistoryV2/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/PaymentHistoryV2/{linkedSupplierID}?searchString=searchString_example&searchField=searchField_example&dateFrom=2013-10-20T19:20:30+01:00&dateTo=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.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            paymentHistoryV2 result = apiInstance.aRGetBuyerPaymentHistoryV2(linkedSupplierID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerPaymentHistoryV2");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Supplier unique identifier in the buyer's tenancy
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
final Date dateFrom = new Date(); // Date | date to filter all IPA that were made from this date
final Date dateTo = new Date(); // Date | date to filter all IPA that were made to this date

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            paymentHistoryV2 result = apiInstance.aRGetBuyerPaymentHistoryV2(linkedSupplierID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerPaymentHistoryV2");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Supplier unique identifier in the buyer's tenancy (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
Date *dateFrom = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made from this date (optional) (default to null)
Date *dateTo = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made to this date (optional) (default to null)

// Get all payment history and upcoming payments (scheduled payments)
[apiInstance aRGetBuyerPaymentHistoryV2With:linkedSupplierID
    searchString:searchString
    searchField:searchField
    dateFrom:dateFrom
    dateTo:dateTo
              completionHandler: ^(paymentHistoryV2 output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Supplier unique identifier in the buyer's tenancy
var opts = {
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
  'dateFrom': 2013-10-20T19:20:30+01:00, // {Date} date to filter all IPA that were made from this date
  'dateTo': 2013-10-20T19:20:30+01:00 // {Date} date to filter all IPA that were made to this date
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Supplier unique identifier in the buyer's tenancy (default to null)
            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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional)  (default to null)
            var dateFrom = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made from this date (optional)  (default to null)
            var dateTo = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made to this date (optional)  (default to null)

            try {
                // Get all payment history and upcoming payments (scheduled payments)
                paymentHistoryV2 result = apiInstance.aRGetBuyerPaymentHistoryV2(linkedSupplierID, searchString, searchField, dateFrom, dateTo);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerPaymentHistoryV2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
$dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
$dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

try {
    $result = $api_instance->aRGetBuyerPaymentHistoryV2($linkedSupplierID, $searchString, $searchField, $dateFrom, $dateTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetBuyerPaymentHistoryV2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Supplier unique identifier in the buyer's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
my $dateFrom = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made from this date
my $dateTo = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made to this date

eval {
    my $result = $api_instance->aRGetBuyerPaymentHistoryV2(linkedSupplierID => $linkedSupplierID, searchString => $searchString, searchField => $searchField, dateFrom => $dateFrom, dateTo => $dateTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerPaymentHistoryV2: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Supplier unique identifier in the buyer's tenancy (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
dateFrom = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made from this date (optional) (default to null)
dateTo = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made to this date (optional) (default to null)

try:
    # Get all payment history and upcoming payments (scheduled payments)
    api_response = api_instance.a_r_get_buyer_payment_history_v2(linkedSupplierID, searchString=searchString, searchField=searchField, dateFrom=dateFrom, dateTo=dateTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerPaymentHistoryV2: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let dateFrom = 2013-10-20T19:20:30+01:00; // Date
    let dateTo = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerPaymentHistoryV2(linkedSupplierID, searchString, searchField, dateFrom, dateTo, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Supplier unique identifier in the buyer's tenancy
Required
Query parameters
Name Description
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
dateFrom
Date (date-time)
date to filter all IPA that were made from this date
dateTo
Date (date-time)
date to filter all IPA that were made to this date

Responses


aRGetBuyerStatementDetails

Gets an accounts receivable buyer statement details.

Allows an user to get the invoices and/or credit notes added to an unique statement


/Spenda/Payments/AccountsReceivable/Buyer/Statement/{linkedSupplierID}/{statementID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/Statement/{linkedSupplierID}/{statementID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique Identifier linked to buyer's tenancy
        Integer statementID = 56; // Integer | Identifier of the statement being processed

        try {
            statementViewByStatementIDResponse result = apiInstance.aRGetBuyerStatementDetails(linkedSupplierID, statementID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerStatementDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Supplier unique Identifier linked to buyer's tenancy
final Integer statementID = new Integer(); // Integer | Identifier of the statement being processed

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique Identifier linked to buyer's tenancy
        Integer statementID = 56; // Integer | Identifier of the statement being processed

        try {
            statementViewByStatementIDResponse result = apiInstance.aRGetBuyerStatementDetails(linkedSupplierID, statementID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerStatementDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Supplier unique Identifier linked to buyer's tenancy (default to null)
Integer *statementID = 56; // Identifier of the statement being processed (default to null)

// Gets an accounts receivable buyer statement details.
[apiInstance aRGetBuyerStatementDetailsWith:linkedSupplierID
    statementID:statementID
              completionHandler: ^(statementViewByStatementIDResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Supplier unique Identifier linked to buyer's tenancy
var statementID = 56; // {Integer} Identifier of the statement being processed

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Supplier unique Identifier linked to buyer's tenancy (default to null)
            var statementID = 56;  // Integer | Identifier of the statement being processed (default to null)

            try {
                // Gets an accounts receivable buyer statement details.
                statementViewByStatementIDResponse result = apiInstance.aRGetBuyerStatementDetails(linkedSupplierID, statementID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerStatementDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Supplier unique Identifier linked to buyer's tenancy
$statementID = 56; // Integer | Identifier of the statement being processed

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Supplier unique Identifier linked to buyer's tenancy
my $statementID = 56; # Integer | Identifier of the statement being processed

eval {
    my $result = $api_instance->aRGetBuyerStatementDetails(linkedSupplierID => $linkedSupplierID, statementID => $statementID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerStatementDetails: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Supplier unique Identifier linked to buyer's tenancy (default to null)
statementID = 56 # Integer | Identifier of the statement being processed (default to null)

try:
    # Gets an accounts receivable buyer statement details.
    api_response = api_instance.a_r_get_buyer_statement_details(linkedSupplierID, statementID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerStatementDetails: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let statementID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerStatementDetails(linkedSupplierID, statementID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Supplier unique Identifier linked to buyer's tenancy
Required
statementID*
Integer (int32)
Identifier of the statement being processed
Required

Responses


aRGetBuyerStatementSummary

Gets all an accounts receivable buyer statements summary

Allows an user to retrieve all buyer statements in the buyer context.


/Spenda/Payments/AccountsReceivable/Buyer/Statement/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/Statement/{linkedSupplierID}?fromDate=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.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | linked supplier unique identifier in the buyer's tenancy
        Date fromDate = 2013-10-20T19:20:30+01:00; // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months

        try {
            array[statementViewSummary] result = apiInstance.aRGetBuyerStatementSummary(linkedSupplierID, fromDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerStatementSummary");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | linked supplier unique identifier in the buyer's tenancy
final Date fromDate = new Date(); // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | linked supplier unique identifier in the buyer's tenancy
        Date fromDate = 2013-10-20T19:20:30+01:00; // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months

        try {
            array[statementViewSummary] result = apiInstance.aRGetBuyerStatementSummary(linkedSupplierID, fromDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetBuyerStatementSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // linked supplier unique identifier in the buyer's tenancy (default to null)
Date *fromDate = 2013-10-20T19:20:30+01:00; // get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months (optional) (default to null)

// Gets all an accounts receivable buyer statements summary
[apiInstance aRGetBuyerStatementSummaryWith:linkedSupplierID
    fromDate:fromDate
              completionHandler: ^(array[statementViewSummary] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} linked supplier unique identifier in the buyer's tenancy
var opts = {
  'fromDate': 2013-10-20T19:20:30+01:00 // {Date} get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | linked supplier unique identifier in the buyer's tenancy (default to null)
            var fromDate = 2013-10-20T19:20:30+01:00;  // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months (optional)  (default to null)

            try {
                // Gets all an accounts receivable buyer statements summary
                array[statementViewSummary] result = apiInstance.aRGetBuyerStatementSummary(linkedSupplierID, fromDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetBuyerStatementSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | linked supplier unique identifier in the buyer's tenancy
$fromDate = 2013-10-20T19:20:30+01:00; // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | linked supplier unique identifier in the buyer's tenancy
my $fromDate = 2013-10-20T19:20:30+01:00; # Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months

eval {
    my $result = $api_instance->aRGetBuyerStatementSummary(linkedSupplierID => $linkedSupplierID, fromDate => $fromDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetBuyerStatementSummary: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | linked supplier unique identifier in the buyer's tenancy (default to null)
fromDate = 2013-10-20T19:20:30+01:00 # Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months (optional) (default to null)

try:
    # Gets all an accounts receivable buyer statements summary
    api_response = api_instance.a_r_get_buyer_statement_summary(linkedSupplierID, fromDate=fromDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetBuyerStatementSummary: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let fromDate = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetBuyerStatementSummary(linkedSupplierID, fromDate, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
linked supplier unique identifier in the buyer's tenancy
Required
Query parameters
Name Description
fromDate
Date (date-time)
get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months

Responses



aRGetInvoiceBuyerBatch

Get Invoice batch details eg: Selected invoice, assigned Credit Notes

Get the current state of the invoice batch


/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier

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

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRGetInvoiceBuyerBatch(linkedSupplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)

// Get Invoice batch details eg: Selected invoice, assigned Credit Notes
[apiInstance aRGetInvoiceBuyerBatchWith:linkedSupplierID
              completionHandler: ^(accountsReceivableInvoiceBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)

            try {
                // Get Invoice batch details eg: Selected invoice, assigned Credit Notes
                accountsReceivableInvoiceBatchResponse result = apiInstance.aRGetInvoiceBuyerBatch(linkedSupplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetInvoiceBuyerBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier

eval {
    my $result = $api_instance->aRGetInvoiceBuyerBatch(linkedSupplierID => $linkedSupplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetInvoiceBuyerBatch: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)

try:
    # Get Invoice batch details eg: Selected invoice, assigned Credit Notes
    api_response = api_instance.a_r_get_invoice_buyer_batch(linkedSupplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetInvoiceBuyerBatch: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetInvoiceBuyerBatch(linkedSupplierID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required

Responses


aRGetInvoicePaymentAllocationDetails

Gets an accounts receivable payment result (Invoice payment allocation).

Allows a user to get the details of an account receivable payment result within their own tenant.


/Spenda/Payments/AccountsReceivable/InvoicePaymentAllocationDetails/{invoicePaymentAllocationID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/InvoicePaymentAllocationDetails/{invoicePaymentAllocationID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

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

final api_instance = DefaultApi();

final Integer invoicePaymentAllocationID = new Integer(); // Integer | Identifier of the Payment being processed

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

        try {
            accountsReceivableInvoicePaymentAllocationResponse result = apiInstance.aRGetInvoicePaymentAllocationDetails(invoicePaymentAllocationID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetInvoicePaymentAllocationDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *invoicePaymentAllocationID = 56; // Identifier of the Payment being processed (default to null)

// Gets an accounts receivable payment result (Invoice payment allocation).
[apiInstance aRGetInvoicePaymentAllocationDetailsWith:invoicePaymentAllocationID
              completionHandler: ^(accountsReceivableInvoicePaymentAllocationResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var invoicePaymentAllocationID = 56; // {Integer} Identifier of the Payment being processed

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var invoicePaymentAllocationID = 56;  // Integer | Identifier of the Payment being processed (default to null)

            try {
                // Gets an accounts receivable payment result (Invoice payment allocation).
                accountsReceivableInvoicePaymentAllocationResponse result = apiInstance.aRGetInvoicePaymentAllocationDetails(invoicePaymentAllocationID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetInvoicePaymentAllocationDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $invoicePaymentAllocationID = 56; # Integer | Identifier of the Payment being processed

eval {
    my $result = $api_instance->aRGetInvoicePaymentAllocationDetails(invoicePaymentAllocationID => $invoicePaymentAllocationID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetInvoicePaymentAllocationDetails: $@\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.AccountsReceivableApi()
invoicePaymentAllocationID = 56 # Integer | Identifier of the Payment being processed (default to null)

try:
    # Gets an accounts receivable payment result (Invoice payment allocation).
    api_response = api_instance.a_r_get_invoice_payment_allocation_details(invoicePaymentAllocationID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetInvoicePaymentAllocationDetails: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let invoicePaymentAllocationID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetInvoicePaymentAllocationDetails(invoicePaymentAllocationID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invoicePaymentAllocationID*
Integer (int32)
Identifier of the Payment being processed
Required

Responses


aRGetInvoicePaymentAllocationSimulation

Simulate Payment allocations for Supplier or Buyer

Allows a user in the context of the buyer or Supplier to simulate one or all Invoice Payment Allocations.


/Spenda/Payments/AccountsReceivable/InvoicePaymentAllocationSimulation/{accountUsage}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/InvoicePaymentAllocationSimulation/{accountUsage}?linkedSupplierID=56&accountCustomerID=56&invoicePaymentAllocationID=56&datasetRequired=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountUsage = 56; // Integer | Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        Integer accountCustomerID = 56; // Integer | Connected customer Identifier
        Integer invoicePaymentAllocationID = 56; // Integer | Invoice Payment Allocation Identifier
        Integer datasetRequired = 56; // Integer | Dataset result the user will like to get, accepted values: null or values from 1 to 3 

        try {
            invoicePaymentAllocationSimulation result = apiInstance.aRGetInvoicePaymentAllocationSimulation(accountUsage, linkedSupplierID, accountCustomerID, invoicePaymentAllocationID, datasetRequired);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetInvoicePaymentAllocationSimulation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountUsage = new Integer(); // Integer | Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2
final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final Integer accountCustomerID = new Integer(); // Integer | Connected customer Identifier
final Integer invoicePaymentAllocationID = new Integer(); // Integer | Invoice Payment Allocation Identifier
final Integer datasetRequired = new Integer(); // Integer | Dataset result the user will like to get, accepted values: null or values from 1 to 3 

try {
    final result = await api_instance.aRGetInvoicePaymentAllocationSimulation(accountUsage, linkedSupplierID, accountCustomerID, invoicePaymentAllocationID, datasetRequired);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetInvoicePaymentAllocationSimulation: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountUsage = 56; // Integer | Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        Integer accountCustomerID = 56; // Integer | Connected customer Identifier
        Integer invoicePaymentAllocationID = 56; // Integer | Invoice Payment Allocation Identifier
        Integer datasetRequired = 56; // Integer | Dataset result the user will like to get, accepted values: null or values from 1 to 3 

        try {
            invoicePaymentAllocationSimulation result = apiInstance.aRGetInvoicePaymentAllocationSimulation(accountUsage, linkedSupplierID, accountCustomerID, invoicePaymentAllocationID, datasetRequired);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetInvoicePaymentAllocationSimulation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountUsage = 56; // Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2 (default to null)
Integer *linkedSupplierID = 56; // Connected supplier Identifier (optional) (default to null)
Integer *accountCustomerID = 56; // Connected customer Identifier (optional) (default to null)
Integer *invoicePaymentAllocationID = 56; // Invoice Payment Allocation Identifier (optional) (default to null)
Integer *datasetRequired = 56; // Dataset result the user will like to get, accepted values: null or values from 1 to 3  (optional) (default to null)

// Simulate Payment allocations for Supplier or Buyer
[apiInstance aRGetInvoicePaymentAllocationSimulationWith:accountUsage
    linkedSupplierID:linkedSupplierID
    accountCustomerID:accountCustomerID
    invoicePaymentAllocationID:invoicePaymentAllocationID
    datasetRequired:datasetRequired
              completionHandler: ^(invoicePaymentAllocationSimulation output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var accountUsage = 56; // {Integer} Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2
var opts = {
  'linkedSupplierID': 56, // {Integer} Connected supplier Identifier
  'accountCustomerID': 56, // {Integer} Connected customer Identifier
  'invoicePaymentAllocationID': 56, // {Integer} Invoice Payment Allocation Identifier
  'datasetRequired': 56 // {Integer} Dataset result the user will like to get, accepted values: null or values from 1 to 3 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountUsage = 56;  // Integer | Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2 (default to null)
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (optional)  (default to null)
            var accountCustomerID = 56;  // Integer | Connected customer Identifier (optional)  (default to null)
            var invoicePaymentAllocationID = 56;  // Integer | Invoice Payment Allocation Identifier (optional)  (default to null)
            var datasetRequired = 56;  // Integer | Dataset result the user will like to get, accepted values: null or values from 1 to 3  (optional)  (default to null)

            try {
                // Simulate Payment allocations for Supplier or Buyer
                invoicePaymentAllocationSimulation result = apiInstance.aRGetInvoicePaymentAllocationSimulation(accountUsage, linkedSupplierID, accountCustomerID, invoicePaymentAllocationID, datasetRequired);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetInvoicePaymentAllocationSimulation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountUsage = 56; // Integer | Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$accountCustomerID = 56; // Integer | Connected customer Identifier
$invoicePaymentAllocationID = 56; // Integer | Invoice Payment Allocation Identifier
$datasetRequired = 56; // Integer | Dataset result the user will like to get, accepted values: null or values from 1 to 3 

try {
    $result = $api_instance->aRGetInvoicePaymentAllocationSimulation($accountUsage, $linkedSupplierID, $accountCustomerID, $invoicePaymentAllocationID, $datasetRequired);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetInvoicePaymentAllocationSimulation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountUsage = 56; # Integer | Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $accountCustomerID = 56; # Integer | Connected customer Identifier
my $invoicePaymentAllocationID = 56; # Integer | Invoice Payment Allocation Identifier
my $datasetRequired = 56; # Integer | Dataset result the user will like to get, accepted values: null or values from 1 to 3 

eval {
    my $result = $api_instance->aRGetInvoicePaymentAllocationSimulation(accountUsage => $accountUsage, linkedSupplierID => $linkedSupplierID, accountCustomerID => $accountCustomerID, invoicePaymentAllocationID => $invoicePaymentAllocationID, datasetRequired => $datasetRequired);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetInvoicePaymentAllocationSimulation: $@\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.AccountsReceivableApi()
accountUsage = 56 # Integer | Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2 (default to null)
linkedSupplierID = 56 # Integer | Connected supplier Identifier (optional) (default to null)
accountCustomerID = 56 # Integer | Connected customer Identifier (optional) (default to null)
invoicePaymentAllocationID = 56 # Integer | Invoice Payment Allocation Identifier (optional) (default to null)
datasetRequired = 56 # Integer | Dataset result the user will like to get, accepted values: null or values from 1 to 3  (optional) (default to null)

try:
    # Simulate Payment allocations for Supplier or Buyer
    api_response = api_instance.a_r_get_invoice_payment_allocation_simulation(accountUsage, linkedSupplierID=linkedSupplierID, accountCustomerID=accountCustomerID, invoicePaymentAllocationID=invoicePaymentAllocationID, datasetRequired=datasetRequired)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetInvoicePaymentAllocationSimulation: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountUsage = 56; // Integer
    let linkedSupplierID = 56; // Integer
    let accountCustomerID = 56; // Integer
    let invoicePaymentAllocationID = 56; // Integer
    let datasetRequired = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetInvoicePaymentAllocationSimulation(accountUsage, linkedSupplierID, accountCustomerID, invoicePaymentAllocationID, datasetRequired, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
accountUsage*
Integer (int32)
Account Usage for the user making the request. e.g Supplier = 1, Buyer = 2
Required
Query parameters
Name Description
linkedSupplierID
Integer (int32)
Connected supplier Identifier
accountCustomerID
Integer (int32)
Connected customer Identifier
invoicePaymentAllocationID
Integer (int32)
Invoice Payment Allocation Identifier
datasetRequired
Integer (int32)
Dataset result the user will like to get, accepted values: null or values from 1 to 3

Responses


aRGetInvoiceSummary

Get invoice summary

Allows an user to get invoice summary


/Spenda/Payments/AccountsReceivable/Invoices/{invoiceID}/Summary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Invoices/{invoiceID}/Summary"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoiceID = 56; // Integer | The invoice ID

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

final api_instance = DefaultApi();

final Integer invoiceID = new Integer(); // Integer | The invoice ID

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoiceID = 56; // Integer | The invoice ID

        try {
            getInvoiceSummaryResponse result = apiInstance.aRGetInvoiceSummary(invoiceID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetInvoiceSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *invoiceID = 56; // The invoice ID (default to null)

// Get invoice summary
[apiInstance aRGetInvoiceSummaryWith:invoiceID
              completionHandler: ^(getInvoiceSummaryResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var invoiceID = 56; // {Integer} The invoice ID

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var invoiceID = 56;  // Integer | The invoice ID (default to null)

            try {
                // Get invoice summary
                getInvoiceSummaryResponse result = apiInstance.aRGetInvoiceSummary(invoiceID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetInvoiceSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$invoiceID = 56; // Integer | The invoice ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $invoiceID = 56; # Integer | The invoice ID

eval {
    my $result = $api_instance->aRGetInvoiceSummary(invoiceID => $invoiceID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetInvoiceSummary: $@\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.AccountsReceivableApi()
invoiceID = 56 # Integer | The invoice ID (default to null)

try:
    # Get invoice summary
    api_response = api_instance.a_r_get_invoice_summary(invoiceID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetInvoiceSummary: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let invoiceID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetInvoiceSummary(invoiceID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invoiceID*
Integer (int32)
The invoice ID
Required

Responses


aRGetLastCustomerStatement

Get Last Customer Statement

Allows a user to retrieve last customer statements from database.


/Spenda/Payments/AccountsReceivable/LastCustomerStatement

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/LastCustomerStatement?accountCustomerID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | account customer ID

        try {
            array[customerStatementResponse] result = apiInstance.aRGetLastCustomerStatement(accountCustomerID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetLastCustomerStatement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | account customer ID

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | account customer ID

        try {
            array[customerStatementResponse] result = apiInstance.aRGetLastCustomerStatement(accountCustomerID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetLastCustomerStatement");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // account customer ID (optional) (default to null)

// Get Last Customer Statement
[apiInstance aRGetLastCustomerStatementWith:accountCustomerID
              completionHandler: ^(array[customerStatementResponse] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'accountCustomerID': 56 // {Integer} account customer ID
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | account customer ID (optional)  (default to null)

            try {
                // Get Last Customer Statement
                array[customerStatementResponse] result = apiInstance.aRGetLastCustomerStatement(accountCustomerID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetLastCustomerStatement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | account customer ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | account customer ID

eval {
    my $result = $api_instance->aRGetLastCustomerStatement(accountCustomerID => $accountCustomerID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetLastCustomerStatement: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | account customer ID (optional) (default to null)

try:
    # Get Last Customer Statement
    api_response = api_instance.a_r_get_last_customer_statement(accountCustomerID=accountCustomerID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetLastCustomerStatement: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetLastCustomerStatement(accountCustomerID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
accountCustomerID
Integer (int32)
account customer ID

Responses


aRGetOutStandingStatementSummary

Get all outstanding customer statements summary

Allows a user to retrieve all customer statements from database.


/Spenda/Payments/AccountsReceivable/Supplier/OutStandingStatementSummary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/OutStandingStatementSummary?asAtDate=2013-10-20T19:20:30+01:00&searchString=searchString_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        String searchString = searchString_example; // String | alpha numeric character used to find any matches in the tenant records

        try {
            customerOutStandingStatementSummaries result = apiInstance.aRGetOutStandingStatementSummary(asAtDate, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetOutStandingStatementSummary");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Date asAtDate = new Date(); // Date | used to find any documents until specify date
final String searchString = new String(); // String | alpha numeric character used to find any matches in the tenant records

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        String searchString = searchString_example; // String | alpha numeric character used to find any matches in the tenant records

        try {
            customerOutStandingStatementSummaries result = apiInstance.aRGetOutStandingStatementSummary(asAtDate, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetOutStandingStatementSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Date *asAtDate = 2013-10-20T19:20:30+01:00; // used to find any documents until specify date (optional) (default to null)
String *searchString = searchString_example; // alpha numeric character used to find any matches in the tenant records (optional) (default to null)

// Get all outstanding customer statements summary
[apiInstance aRGetOutStandingStatementSummaryWith:asAtDate
    searchString:searchString
              completionHandler: ^(customerOutStandingStatementSummaries output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'asAtDate': 2013-10-20T19:20:30+01:00, // {Date} used to find any documents until specify date
  'searchString': searchString_example // {String} alpha numeric character used to find any matches in the tenant records
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var asAtDate = 2013-10-20T19:20:30+01:00;  // Date | used to find any documents until specify date (optional)  (default to null)
            var searchString = searchString_example;  // String | alpha numeric character used to find any matches in the tenant records (optional)  (default to null)

            try {
                // Get all outstanding customer statements summary
                customerOutStandingStatementSummaries result = apiInstance.aRGetOutStandingStatementSummary(asAtDate, searchString);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetOutStandingStatementSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
$searchString = searchString_example; // String | alpha numeric character used to find any matches in the tenant records

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $asAtDate = 2013-10-20T19:20:30+01:00; # Date | used to find any documents until specify date
my $searchString = searchString_example; # String | alpha numeric character used to find any matches in the tenant records

eval {
    my $result = $api_instance->aRGetOutStandingStatementSummary(asAtDate => $asAtDate, searchString => $searchString);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetOutStandingStatementSummary: $@\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.AccountsReceivableApi()
asAtDate = 2013-10-20T19:20:30+01:00 # Date | used to find any documents until specify date (optional) (default to null)
searchString = searchString_example # String | alpha numeric character used to find any matches in the tenant records (optional) (default to null)

try:
    # Get all outstanding customer statements summary
    api_response = api_instance.a_r_get_out_standing_statement_summary(asAtDate=asAtDate, searchString=searchString)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetOutStandingStatementSummary: %s\n" % e)
extern crate AccountsReceivableApi;

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

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetOutStandingStatementSummary(asAtDate, searchString, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
asAtDate
Date (date-time)
used to find any documents until specify date
searchString
String
alpha numeric character used to find any matches in the tenant records

Responses


aRGetSupplierAgedCustomerOutstandingStatement

Get all aged customers outstanding statements from the Supplier Context

Allows a user to retrieve all aged customer statements from database.


/Spenda/Payments/AccountsReceivable/Supplier/AgedCustomerOutstandingStatement/{timelineGroup}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/AgedCustomerOutstandingStatement/{timelineGroup}?accountCustomerID=accountCustomerID_example&asAtDate=2013-10-20T19:20:30+01:00&editingStatementID=56&SearchString=searchString_example&searchField=searchField_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer timelineGroup = 56; // Integer | selected range to filter out customer statements
        String accountCustomerID = accountCustomerID_example; // String | Account customer Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer editingStatementID = 56; // Integer | pass through if user is editing the statement on Supplier side
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

        try {
            timelineViewTotals result = apiInstance.aRGetSupplierAgedCustomerOutstandingStatement(timelineGroup, accountCustomerID, asAtDate, editingStatementID, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierAgedCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer timelineGroup = new Integer(); // Integer | selected range to filter out customer statements
final String accountCustomerID = new String(); // String | Account customer Unique Identifier
final Date asAtDate = new Date(); // Date | used to find any documents until specify date
final Integer editingStatementID = new Integer(); // Integer | pass through if user is editing the statement on Supplier side
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

try {
    final result = await api_instance.aRGetSupplierAgedCustomerOutstandingStatement(timelineGroup, accountCustomerID, asAtDate, editingStatementID, searchString, searchField);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetSupplierAgedCustomerOutstandingStatement: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer timelineGroup = 56; // Integer | selected range to filter out customer statements
        String accountCustomerID = accountCustomerID_example; // String | Account customer Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer editingStatementID = 56; // Integer | pass through if user is editing the statement on Supplier side
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

        try {
            timelineViewTotals result = apiInstance.aRGetSupplierAgedCustomerOutstandingStatement(timelineGroup, accountCustomerID, asAtDate, editingStatementID, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierAgedCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *timelineGroup = 56; // selected range to filter out customer statements (default to null)
String *accountCustomerID = accountCustomerID_example; // Account customer Unique Identifier (optional) (default to null)
Date *asAtDate = 2013-10-20T19:20:30+01:00; // used to find any documents until specify date (optional) (default to null)
Integer *editingStatementID = 56; // pass through if user is editing the statement on Supplier side (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)

// Get all aged customers outstanding statements from the Supplier Context
[apiInstance aRGetSupplierAgedCustomerOutstandingStatementWith:timelineGroup
    accountCustomerID:accountCustomerID
    asAtDate:asAtDate
    editingStatementID:editingStatementID
    searchString:searchString
    searchField:searchField
              completionHandler: ^(timelineViewTotals output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var timelineGroup = 56; // {Integer} selected range to filter out customer statements
var opts = {
  'accountCustomerID': accountCustomerID_example, // {String} Account customer Unique Identifier
  'asAtDate': 2013-10-20T19:20:30+01:00, // {Date} used to find any documents until specify date
  'editingStatementID': 56, // {Integer} pass through if user is editing the statement on Supplier side
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example // {String} must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var timelineGroup = 56;  // Integer | selected range to filter out customer statements (default to null)
            var accountCustomerID = accountCustomerID_example;  // String | Account customer Unique Identifier (optional)  (default to null)
            var asAtDate = 2013-10-20T19:20:30+01:00;  // Date | used to find any documents until specify date (optional)  (default to null)
            var editingStatementID = 56;  // Integer | pass through if user is editing the statement on Supplier side (optional)  (default to null)
            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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional)  (default to null)

            try {
                // Get all aged customers outstanding statements from the Supplier Context
                timelineViewTotals result = apiInstance.aRGetSupplierAgedCustomerOutstandingStatement(timelineGroup, accountCustomerID, asAtDate, editingStatementID, searchString, searchField);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierAgedCustomerOutstandingStatement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$timelineGroup = 56; // Integer | selected range to filter out customer statements
$accountCustomerID = accountCustomerID_example; // String | Account customer Unique Identifier
$asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
$editingStatementID = 56; // Integer | pass through if user is editing the statement on Supplier side
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

try {
    $result = $api_instance->aRGetSupplierAgedCustomerOutstandingStatement($timelineGroup, $accountCustomerID, $asAtDate, $editingStatementID, $searchString, $searchField);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetSupplierAgedCustomerOutstandingStatement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $timelineGroup = 56; # Integer | selected range to filter out customer statements
my $accountCustomerID = accountCustomerID_example; # String | Account customer Unique Identifier
my $asAtDate = 2013-10-20T19:20:30+01:00; # Date | used to find any documents until specify date
my $editingStatementID = 56; # Integer | pass through if user is editing the statement on Supplier side
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

eval {
    my $result = $api_instance->aRGetSupplierAgedCustomerOutstandingStatement(timelineGroup => $timelineGroup, accountCustomerID => $accountCustomerID, asAtDate => $asAtDate, editingStatementID => $editingStatementID, searchString => $searchString, searchField => $searchField);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierAgedCustomerOutstandingStatement: $@\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.AccountsReceivableApi()
timelineGroup = 56 # Integer | selected range to filter out customer statements (default to null)
accountCustomerID = accountCustomerID_example # String | Account customer Unique Identifier (optional) (default to null)
asAtDate = 2013-10-20T19:20:30+01:00 # Date | used to find any documents until specify date (optional) (default to null)
editingStatementID = 56 # Integer | pass through if user is editing the statement on Supplier side (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)

try:
    # Get all aged customers outstanding statements from the Supplier Context
    api_response = api_instance.a_r_get_supplier_aged_customer_outstanding_statement(timelineGroup, accountCustomerID=accountCustomerID, asAtDate=asAtDate, editingStatementID=editingStatementID, searchString=searchString, searchField=searchField)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierAgedCustomerOutstandingStatement: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let timelineGroup = 56; // Integer
    let accountCustomerID = accountCustomerID_example; // String
    let asAtDate = 2013-10-20T19:20:30+01:00; // Date
    let editingStatementID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierAgedCustomerOutstandingStatement(timelineGroup, accountCustomerID, asAtDate, editingStatementID, searchString, searchField, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
timelineGroup*
Integer (int32)
selected range to filter out customer statements
Required
Query parameters
Name Description
accountCustomerID
String
Account customer Unique Identifier
asAtDate
Date (date-time)
used to find any documents until specify date
editingStatementID
Integer (int32)
pass through if user is editing the statement on Supplier side
SearchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'

Responses


aRGetSupplierConnectedCustomerDetails

Gets Customer's details from a supplier.

Allows an user to get the connected customer's detail information in account receivable.


/Spenda/Payments/AccountsReceivable/Supplier/ConnectedCustomerDetails/{accountCustomerID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/ConnectedCustomerDetails/{accountCustomerID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Connected account customer Identifier

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

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | Connected account customer Identifier

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Connected account customer Identifier

        try {
            connectedCustomerDetails result = apiInstance.aRGetSupplierConnectedCustomerDetails(accountCustomerID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierConnectedCustomerDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // Connected account customer Identifier (default to null)

// Gets Customer's details from a supplier.
[apiInstance aRGetSupplierConnectedCustomerDetailsWith:accountCustomerID
              completionHandler: ^(connectedCustomerDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var accountCustomerID = 56; // {Integer} Connected account customer Identifier

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | Connected account customer Identifier (default to null)

            try {
                // Gets Customer's details from a supplier.
                connectedCustomerDetails result = apiInstance.aRGetSupplierConnectedCustomerDetails(accountCustomerID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierConnectedCustomerDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | Connected account customer Identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | Connected account customer Identifier

eval {
    my $result = $api_instance->aRGetSupplierConnectedCustomerDetails(accountCustomerID => $accountCustomerID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierConnectedCustomerDetails: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | Connected account customer Identifier (default to null)

try:
    # Gets Customer's details from a supplier.
    api_response = api_instance.a_r_get_supplier_connected_customer_details(accountCustomerID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierConnectedCustomerDetails: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierConnectedCustomerDetails(accountCustomerID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
accountCustomerID*
Integer (int32)
Connected account customer Identifier
Required

Responses


aRGetSupplierCustomerOutstandingStatement

Get all customers outstanding statements from the Supplier Context

Allows a user to retrieve all customer statements from database.


/Spenda/Payments/AccountsReceivable/Supplier/CustomerOutstandingStatement

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/CustomerOutstandingStatement?accountCustomerID=accountCustomerID_example&asAtDate=2013-10-20T19:20:30+01:00&editingStatementID=56&startDate=2013-10-20T19:20:30+01:00&endDate=2013-10-20T19:20:30+01:00&searchString=searchString_example&searchField=searchField_example&showSelectedOnly=true&hideSelected=true&showPaymentsCreditsOnly=true&showInvoicesOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String accountCustomerID = accountCustomerID_example; // String | Account customer Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer editingStatementID = 56; // Integer | pass through if user is editing the statement on Supplier side
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
        Boolean showSelectedOnly = true; // Boolean | show only those in editing statement or batch
        Boolean hideSelected = true; // Boolean | show only those NOT in editing statement or batch
        Boolean showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
        Boolean showInvoicesOnly = true; // Boolean | only return invoices

        try {
            customerOutstandingStatementsWithStatementInfo result = apiInstance.aRGetSupplierCustomerOutstandingStatement(accountCustomerID, asAtDate, editingStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accountCustomerID = new String(); // String | Account customer Unique Identifier
final Date asAtDate = new Date(); // Date | used to find any documents until specify date
final Integer editingStatementID = new Integer(); // Integer | pass through if user is editing the statement on Supplier side
final Date startDate = new Date(); // Date | used to filter statement due date
final Date endDate = new Date(); // Date | used to filter statement due date
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
final Boolean showSelectedOnly = new Boolean(); // Boolean | show only those in editing statement or batch
final Boolean hideSelected = new Boolean(); // Boolean | show only those NOT in editing statement or batch
final Boolean showPaymentsCreditsOnly = new Boolean(); // Boolean | only return payments and credits
final Boolean showInvoicesOnly = new Boolean(); // Boolean | only return invoices

try {
    final result = await api_instance.aRGetSupplierCustomerOutstandingStatement(accountCustomerID, asAtDate, editingStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetSupplierCustomerOutstandingStatement: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String accountCustomerID = accountCustomerID_example; // String | Account customer Unique Identifier
        Date asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
        Integer editingStatementID = 56; // Integer | pass through if user is editing the statement on Supplier side
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
        Boolean showSelectedOnly = true; // Boolean | show only those in editing statement or batch
        Boolean hideSelected = true; // Boolean | show only those NOT in editing statement or batch
        Boolean showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
        Boolean showInvoicesOnly = true; // Boolean | only return invoices

        try {
            customerOutstandingStatementsWithStatementInfo result = apiInstance.aRGetSupplierCustomerOutstandingStatement(accountCustomerID, asAtDate, editingStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierCustomerOutstandingStatement");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
String *accountCustomerID = accountCustomerID_example; // Account customer Unique Identifier (optional) (default to null)
Date *asAtDate = 2013-10-20T19:20:30+01:00; // used to find any documents until specify date (optional) (default to null)
Integer *editingStatementID = 56; // pass through if user is editing the statement on Supplier side (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // used to filter statement due date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // used to filter statement due date (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)
Boolean *showSelectedOnly = true; // show only those in editing statement or batch (optional) (default to null)
Boolean *hideSelected = true; // show only those NOT in editing statement or batch (optional) (default to null)
Boolean *showPaymentsCreditsOnly = true; // only return payments and credits (optional) (default to null)
Boolean *showInvoicesOnly = true; // only return invoices (optional) (default to null)

// Get all customers outstanding statements from the Supplier Context
[apiInstance aRGetSupplierCustomerOutstandingStatementWith:accountCustomerID
    asAtDate:asAtDate
    editingStatementID:editingStatementID
    startDate:startDate
    endDate:endDate
    searchString:searchString
    searchField:searchField
    showSelectedOnly:showSelectedOnly
    hideSelected:hideSelected
    showPaymentsCreditsOnly:showPaymentsCreditsOnly
    showInvoicesOnly:showInvoicesOnly
              completionHandler: ^(customerOutstandingStatementsWithStatementInfo output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'accountCustomerID': accountCustomerID_example, // {String} Account customer Unique Identifier
  'asAtDate': 2013-10-20T19:20:30+01:00, // {Date} used to find any documents until specify date
  'editingStatementID': 56, // {Integer} pass through if user is editing the statement on Supplier side
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} used to filter statement due date
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} used to filter statement due date
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
  'showSelectedOnly': true, // {Boolean} show only those in editing statement or batch
  'hideSelected': true, // {Boolean} show only those NOT in editing statement or batch
  'showPaymentsCreditsOnly': true, // {Boolean} only return payments and credits
  'showInvoicesOnly': true // {Boolean} only return invoices
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = accountCustomerID_example;  // String | Account customer Unique Identifier (optional)  (default to null)
            var asAtDate = 2013-10-20T19:20:30+01:00;  // Date | used to find any documents until specify date (optional)  (default to null)
            var editingStatementID = 56;  // Integer | pass through if user is editing the statement on Supplier side (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | used to filter statement due date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | used to filter statement due date (optional)  (default to null)
            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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional)  (default to null)
            var showSelectedOnly = true;  // Boolean | show only those in editing statement or batch (optional)  (default to null)
            var hideSelected = true;  // Boolean | show only those NOT in editing statement or batch (optional)  (default to null)
            var showPaymentsCreditsOnly = true;  // Boolean | only return payments and credits (optional)  (default to null)
            var showInvoicesOnly = true;  // Boolean | only return invoices (optional)  (default to null)

            try {
                // Get all customers outstanding statements from the Supplier Context
                customerOutstandingStatementsWithStatementInfo result = apiInstance.aRGetSupplierCustomerOutstandingStatement(accountCustomerID, asAtDate, editingStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierCustomerOutstandingStatement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = accountCustomerID_example; // String | Account customer Unique Identifier
$asAtDate = 2013-10-20T19:20:30+01:00; // Date | used to find any documents until specify date
$editingStatementID = 56; // Integer | pass through if user is editing the statement on Supplier side
$startDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
$endDate = 2013-10-20T19:20:30+01:00; // Date | used to filter statement due date
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
$showSelectedOnly = true; // Boolean | show only those in editing statement or batch
$hideSelected = true; // Boolean | show only those NOT in editing statement or batch
$showPaymentsCreditsOnly = true; // Boolean | only return payments and credits
$showInvoicesOnly = true; // Boolean | only return invoices

try {
    $result = $api_instance->aRGetSupplierCustomerOutstandingStatement($accountCustomerID, $asAtDate, $editingStatementID, $startDate, $endDate, $searchString, $searchField, $showSelectedOnly, $hideSelected, $showPaymentsCreditsOnly, $showInvoicesOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetSupplierCustomerOutstandingStatement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = accountCustomerID_example; # String | Account customer Unique Identifier
my $asAtDate = 2013-10-20T19:20:30+01:00; # Date | used to find any documents until specify date
my $editingStatementID = 56; # Integer | pass through if user is editing the statement on Supplier side
my $startDate = 2013-10-20T19:20:30+01:00; # Date | used to filter statement due date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | used to filter statement due date
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
my $showSelectedOnly = true; # Boolean | show only those in editing statement or batch
my $hideSelected = true; # Boolean | show only those NOT in editing statement or batch
my $showPaymentsCreditsOnly = true; # Boolean | only return payments and credits
my $showInvoicesOnly = true; # Boolean | only return invoices

eval {
    my $result = $api_instance->aRGetSupplierCustomerOutstandingStatement(accountCustomerID => $accountCustomerID, asAtDate => $asAtDate, editingStatementID => $editingStatementID, startDate => $startDate, endDate => $endDate, searchString => $searchString, searchField => $searchField, showSelectedOnly => $showSelectedOnly, hideSelected => $hideSelected, showPaymentsCreditsOnly => $showPaymentsCreditsOnly, showInvoicesOnly => $showInvoicesOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierCustomerOutstandingStatement: $@\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.AccountsReceivableApi()
accountCustomerID = accountCustomerID_example # String | Account customer Unique Identifier (optional) (default to null)
asAtDate = 2013-10-20T19:20:30+01:00 # Date | used to find any documents until specify date (optional) (default to null)
editingStatementID = 56 # Integer | pass through if user is editing the statement on Supplier side (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | used to filter statement due date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | used to filter statement due date (optional) (default to null)
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 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount' (optional) (default to null)
showSelectedOnly = true # Boolean | show only those in editing statement or batch (optional) (default to null)
hideSelected = true # Boolean | show only those NOT in editing statement or batch (optional) (default to null)
showPaymentsCreditsOnly = true # Boolean | only return payments and credits (optional) (default to null)
showInvoicesOnly = true # Boolean | only return invoices (optional) (default to null)

try:
    # Get all customers outstanding statements from the Supplier Context
    api_response = api_instance.a_r_get_supplier_customer_outstanding_statement(accountCustomerID=accountCustomerID, asAtDate=asAtDate, editingStatementID=editingStatementID, startDate=startDate, endDate=endDate, searchString=searchString, searchField=searchField, showSelectedOnly=showSelectedOnly, hideSelected=hideSelected, showPaymentsCreditsOnly=showPaymentsCreditsOnly, showInvoicesOnly=showInvoicesOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierCustomerOutstandingStatement: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = accountCustomerID_example; // String
    let asAtDate = 2013-10-20T19:20:30+01:00; // Date
    let editingStatementID = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let showSelectedOnly = true; // Boolean
    let hideSelected = true; // Boolean
    let showPaymentsCreditsOnly = true; // Boolean
    let showInvoicesOnly = true; // Boolean

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierCustomerOutstandingStatement(accountCustomerID, asAtDate, editingStatementID, startDate, endDate, searchString, searchField, showSelectedOnly, hideSelected, showPaymentsCreditsOnly, showInvoicesOnly, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
accountCustomerID
String
Account customer Unique Identifier
asAtDate
Date (date-time)
used to find any documents until specify date
editingStatementID
Integer (int32)
pass through if user is editing the statement on Supplier side
startDate
Date (date-time)
used to filter statement due date
endDate
Date (date-time)
used to filter statement due date
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or 'CustomerName', 'RefNumber' or 'VendorName' or 'Amount'
showSelectedOnly
Boolean
show only those in editing statement or batch
hideSelected
Boolean
show only those NOT in editing statement or batch
showPaymentsCreditsOnly
Boolean
only return payments and credits
showInvoicesOnly
Boolean
only return invoices

Responses


aRGetSupplierInvoices

Get all Supplier tenant Invoices

Allows an supplier user to retrieve all Invoices.


/Spenda/Payments/AccountsReceivable/Supplier/Invoices

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/Invoices?accountCustomerID=56&searchString=searchString_example&searchField=searchField_example&vendorID=56&salesOrderID=56&status="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the supplier's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | Define the peroperty to search
        Integer vendorID = 56; // Integer | Define property to serach for specific vendor
        Integer salesOrderID = 56; // Integer | Define the peroperty to derach for specific saled order
        array[String] status = ; // array[String] | Define the property to serach based on status

        try {
            array[getInvoiceResponse] result = apiInstance.aRGetSupplierInvoices(accountCustomerID, searchString, searchField, vendorID, salesOrderID, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierInvoices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | Account customer unique identifier in the supplier's tenancy
final String searchString = new String(); // String | String of characters to specify an advance search
final String searchField = new String(); // String | Define the peroperty to search
final Integer vendorID = new Integer(); // Integer | Define property to serach for specific vendor
final Integer salesOrderID = new Integer(); // Integer | Define the peroperty to derach for specific saled order
final array[String] status = new array[String](); // array[String] | Define the property to serach based on status

try {
    final result = await api_instance.aRGetSupplierInvoices(accountCustomerID, searchString, searchField, vendorID, salesOrderID, status);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->aRGetSupplierInvoices: $e\n');
}

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the supplier's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | Define the peroperty to search
        Integer vendorID = 56; // Integer | Define property to serach for specific vendor
        Integer salesOrderID = 56; // Integer | Define the peroperty to derach for specific saled order
        array[String] status = ; // array[String] | Define the property to serach based on status

        try {
            array[getInvoiceResponse] result = apiInstance.aRGetSupplierInvoices(accountCustomerID, searchString, searchField, vendorID, salesOrderID, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierInvoices");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // Account customer unique identifier in the supplier's tenancy (optional) (default to null)
String *searchString = searchString_example; // String of characters to specify an advance search (optional) (default to null)
String *searchField = searchField_example; // Define the peroperty to search (optional) (default to null)
Integer *vendorID = 56; // Define property to serach for specific vendor (optional) (default to null)
Integer *salesOrderID = 56; // Define the peroperty to derach for specific saled order (optional) (default to null)
array[String] *status = ; // Define the property to serach based on status (optional) (default to null)

// Get all Supplier tenant Invoices
[apiInstance aRGetSupplierInvoicesWith:accountCustomerID
    searchString:searchString
    searchField:searchField
    vendorID:vendorID
    salesOrderID:salesOrderID
    status:status
              completionHandler: ^(array[getInvoiceResponse] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'accountCustomerID': 56, // {Integer} Account customer unique identifier in the supplier's tenancy
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} Define the peroperty to search
  'vendorID': 56, // {Integer} Define property to serach for specific vendor
  'salesOrderID': 56, // {Integer} Define the peroperty to derach for specific saled order
  'status':  // {array[String]} Define the property to serach based on status
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | Account customer unique identifier in the supplier's tenancy (optional)  (default to null)
            var searchString = searchString_example;  // String | String of characters to specify an advance search (optional)  (default to null)
            var searchField = searchField_example;  // String | Define the peroperty to search (optional)  (default to null)
            var vendorID = 56;  // Integer | Define property to serach for specific vendor (optional)  (default to null)
            var salesOrderID = 56;  // Integer | Define the peroperty to derach for specific saled order (optional)  (default to null)
            var status = new array[String](); // array[String] | Define the property to serach based on status (optional)  (default to null)

            try {
                // Get all Supplier tenant Invoices
                array[getInvoiceResponse] result = apiInstance.aRGetSupplierInvoices(accountCustomerID, searchString, searchField, vendorID, salesOrderID, status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | Account customer unique identifier in the supplier's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | Define the peroperty to search
$vendorID = 56; // Integer | Define property to serach for specific vendor
$salesOrderID = 56; // Integer | Define the peroperty to derach for specific saled order
$status = ; // array[String] | Define the property to serach based on status

try {
    $result = $api_instance->aRGetSupplierInvoices($accountCustomerID, $searchString, $searchField, $vendorID, $salesOrderID, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetSupplierInvoices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | Account customer unique identifier in the supplier's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | Define the peroperty to search
my $vendorID = 56; # Integer | Define property to serach for specific vendor
my $salesOrderID = 56; # Integer | Define the peroperty to derach for specific saled order
my $status = []; # array[String] | Define the property to serach based on status

eval {
    my $result = $api_instance->aRGetSupplierInvoices(accountCustomerID => $accountCustomerID, searchString => $searchString, searchField => $searchField, vendorID => $vendorID, salesOrderID => $salesOrderID, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierInvoices: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | Account customer unique identifier in the supplier's tenancy (optional) (default to null)
searchString = searchString_example # String | String of characters to specify an advance search (optional) (default to null)
searchField = searchField_example # String | Define the peroperty to search (optional) (default to null)
vendorID = 56 # Integer | Define property to serach for specific vendor (optional) (default to null)
salesOrderID = 56 # Integer | Define the peroperty to derach for specific saled order (optional) (default to null)
status =  # array[String] | Define the property to serach based on status (optional) (default to null)

try:
    # Get all Supplier tenant Invoices
    api_response = api_instance.a_r_get_supplier_invoices(accountCustomerID=accountCustomerID, searchString=searchString, searchField=searchField, vendorID=vendorID, salesOrderID=salesOrderID, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierInvoices: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let vendorID = 56; // Integer
    let salesOrderID = 56; // Integer
    let status = ; // array[String]

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierInvoices(accountCustomerID, searchString, searchField, vendorID, salesOrderID, status, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
accountCustomerID
Integer (int32)
Account customer unique identifier in the supplier's tenancy
searchString
String
String of characters to specify an advance search
searchField
String
Define the peroperty to search
vendorID
Integer (int32)
Define property to serach for specific vendor
salesOrderID
Integer (int32)
Define the peroperty to derach for specific saled order
status
array[String]
Define the property to serach based on status

Responses


aRGetSupplierPaidInvoices

Get all Customer Paid invoices from the supplier Context

Allows a user to retrieve all customer paid invoices from database.


/Spenda/Payments/AccountsReceivable/Supplier/PaidInvoices

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/PaidInvoices?accountCustomerID=56&paymentDate=2013-10-20T19:20:30+01:00&searchString=searchString_example&searchField=searchField_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        Date paymentDate = 2013-10-20T19:20:30+01:00; // Date | search all invoices that were paid on this date
        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, 'Amount' or, 'Date'

        try {
            array[paidInvoicesResponse] result = apiInstance.aRGetSupplierPaidInvoices(accountCustomerID, paymentDate, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierPaidInvoices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | Account customer unique identifier in the merchant's tenancy
final Date paymentDate = new Date(); // Date | search all invoices that were paid on this date
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, 'Amount' or, 'Date'

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        Date paymentDate = 2013-10-20T19:20:30+01:00; // Date | search all invoices that were paid on this date
        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, 'Amount' or, 'Date'

        try {
            array[paidInvoicesResponse] result = apiInstance.aRGetSupplierPaidInvoices(accountCustomerID, paymentDate, searchString, searchField);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierPaidInvoices");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // Account customer unique identifier in the merchant's tenancy (optional) (default to null)
Date *paymentDate = 2013-10-20T19:20:30+01:00; // search all invoices that were paid on this date (optional) (default to null)
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, 'Amount' or, 'Date' (optional) (default to null)

// Get all Customer Paid invoices from the supplier Context
[apiInstance aRGetSupplierPaidInvoicesWith:accountCustomerID
    paymentDate:paymentDate
    searchString:searchString
    searchField:searchField
              completionHandler: ^(array[paidInvoicesResponse] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'accountCustomerID': 56, // {Integer} Account customer unique identifier in the merchant's tenancy
  'paymentDate': 2013-10-20T19:20:30+01:00, // {Date} search all invoices that were paid on this date
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example // {String} must be NULL or empty or, 'InvoiceRefNumber' or, 'Amount' or, 'Date'
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | Account customer unique identifier in the merchant's tenancy (optional)  (default to null)
            var paymentDate = 2013-10-20T19:20:30+01:00;  // Date | search all invoices that were paid on this date (optional)  (default to null)
            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, 'Amount' or, 'Date' (optional)  (default to null)

            try {
                // Get all Customer Paid invoices from the supplier Context
                array[paidInvoicesResponse] result = apiInstance.aRGetSupplierPaidInvoices(accountCustomerID, paymentDate, searchString, searchField);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierPaidInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
$paymentDate = 2013-10-20T19:20:30+01:00; // Date | search all invoices that were paid on this date
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or, 'InvoiceRefNumber' or, 'Amount' or, 'Date'

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | Account customer unique identifier in the merchant's tenancy
my $paymentDate = 2013-10-20T19:20:30+01:00; # Date | search all invoices that were paid on this date
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, 'Amount' or, 'Date'

eval {
    my $result = $api_instance->aRGetSupplierPaidInvoices(accountCustomerID => $accountCustomerID, paymentDate => $paymentDate, searchString => $searchString, searchField => $searchField);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierPaidInvoices: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | Account customer unique identifier in the merchant's tenancy (optional) (default to null)
paymentDate = 2013-10-20T19:20:30+01:00 # Date | search all invoices that were paid on this date (optional) (default to null)
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, 'Amount' or, 'Date' (optional) (default to null)

try:
    # Get all Customer Paid invoices from the supplier Context
    api_response = api_instance.a_r_get_supplier_paid_invoices(accountCustomerID=accountCustomerID, paymentDate=paymentDate, searchString=searchString, searchField=searchField)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierPaidInvoices: %s\n" % e)
extern crate AccountsReceivableApi;

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

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierPaidInvoices(accountCustomerID, paymentDate, searchString, searchField, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
accountCustomerID
Integer (int32)
Account customer unique identifier in the merchant's tenancy
paymentDate
Date (date-time)
search all invoices that were paid on this date
searchString
String
String of characters to specify an advance search
searchField
String
must be NULL or empty or, 'InvoiceRefNumber' or, 'Amount' or, 'Date'

Responses


aRGetSupplierPaymentHistory

Get all payment history

Allows an user to retrieve all payment history in the Supplier context.


/Spenda/Payments/AccountsReceivable/Supplier/PaymentHistory

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/PaymentHistory?accountCustomerID=56&SearchString=searchString_example&SearchField=searchField_example&dateFrom=2013-10-20T19:20:30+01:00&dateTo=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.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            array[groupedPaymentHistory] result = apiInstance.aRGetSupplierPaymentHistory(accountCustomerID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierPaymentHistory");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | Account customer unique identifier in the merchant's tenancy
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
final Date dateFrom = new Date(); // Date | date to filter all IPA that were made from this date
final Date dateTo = new Date(); // Date | date to filter all IPA that were made to this date

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            array[groupedPaymentHistory] result = apiInstance.aRGetSupplierPaymentHistory(accountCustomerID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierPaymentHistory");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // Account customer unique identifier in the merchant's tenancy (optional) (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
Date *dateFrom = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made from this date (optional) (default to null)
Date *dateTo = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made to this date (optional) (default to null)

// Get all payment history
[apiInstance aRGetSupplierPaymentHistoryWith:accountCustomerID
    searchString:searchString
    searchField:searchField
    dateFrom:dateFrom
    dateTo:dateTo
              completionHandler: ^(array[groupedPaymentHistory] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'accountCustomerID': 56, // {Integer} Account customer unique identifier in the merchant's tenancy
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
  'dateFrom': 2013-10-20T19:20:30+01:00, // {Date} date to filter all IPA that were made from this date
  'dateTo': 2013-10-20T19:20:30+01:00 // {Date} date to filter all IPA that were made to this date
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | Account customer unique identifier in the merchant's tenancy (optional)  (default to null)
            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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional)  (default to null)
            var dateFrom = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made from this date (optional)  (default to null)
            var dateTo = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made to this date (optional)  (default to null)

            try {
                // Get all payment history
                array[groupedPaymentHistory] result = apiInstance.aRGetSupplierPaymentHistory(accountCustomerID, searchString, searchField, dateFrom, dateTo);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierPaymentHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
$dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
$dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

try {
    $result = $api_instance->aRGetSupplierPaymentHistory($accountCustomerID, $searchString, $searchField, $dateFrom, $dateTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetSupplierPaymentHistory: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | Account customer unique identifier in the merchant's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
my $dateFrom = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made from this date
my $dateTo = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made to this date

eval {
    my $result = $api_instance->aRGetSupplierPaymentHistory(accountCustomerID => $accountCustomerID, searchString => $searchString, searchField => $searchField, dateFrom => $dateFrom, dateTo => $dateTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierPaymentHistory: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | Account customer unique identifier in the merchant's tenancy (optional) (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
dateFrom = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made from this date (optional) (default to null)
dateTo = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made to this date (optional) (default to null)

try:
    # Get all payment history
    api_response = api_instance.a_r_get_supplier_payment_history(accountCustomerID=accountCustomerID, searchString=searchString, searchField=searchField, dateFrom=dateFrom, dateTo=dateTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierPaymentHistory: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let dateFrom = 2013-10-20T19:20:30+01:00; // Date
    let dateTo = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierPaymentHistory(accountCustomerID, searchString, searchField, dateFrom, dateTo, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
accountCustomerID
Integer (int32)
Account customer unique identifier in the merchant's tenancy
SearchString
String
String of characters to specify an advance search
SearchField
String
must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
dateFrom
Date (date-time)
date to filter all IPA that were made from this date
dateTo
Date (date-time)
date to filter all IPA that were made to this date

Responses


aRGetSupplierPaymentHistoryV2

Get all payment history and upcoming payments (scheduled payments)

Allows an user to retrieve all payment history and upcoming payments in the Supplier context.


/Spenda/Payments/AccountsReceivable/Supplier/PaymentHistoryV2

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/PaymentHistoryV2?accountCustomerID=56&SearchString=searchString_example&SearchField=searchField_example&dateFrom=2013-10-20T19:20:30+01:00&dateTo=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.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            groupedPaymentHistoryV2 result = apiInstance.aRGetSupplierPaymentHistoryV2(accountCustomerID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierPaymentHistoryV2");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | Account customer unique identifier in the merchant's tenancy
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
final Date dateFrom = new Date(); // Date | date to filter all IPA that were made from this date
final Date dateTo = new Date(); // Date | date to filter all IPA that were made to this date

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search
        String searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
        Date dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
        Date dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

        try {
            groupedPaymentHistoryV2 result = apiInstance.aRGetSupplierPaymentHistoryV2(accountCustomerID, searchString, searchField, dateFrom, dateTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierPaymentHistoryV2");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // Account customer unique identifier in the merchant's tenancy (optional) (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
Date *dateFrom = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made from this date (optional) (default to null)
Date *dateTo = 2013-10-20T19:20:30+01:00; // date to filter all IPA that were made to this date (optional) (default to null)

// Get all payment history and upcoming payments (scheduled payments)
[apiInstance aRGetSupplierPaymentHistoryV2With:accountCustomerID
    searchString:searchString
    searchField:searchField
    dateFrom:dateFrom
    dateTo:dateTo
              completionHandler: ^(groupedPaymentHistoryV2 output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'accountCustomerID': 56, // {Integer} Account customer unique identifier in the merchant's tenancy
  'searchString': searchString_example, // {String} String of characters to specify an advance search
  'searchField': searchField_example, // {String} must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
  'dateFrom': 2013-10-20T19:20:30+01:00, // {Date} date to filter all IPA that were made from this date
  'dateTo': 2013-10-20T19:20:30+01:00 // {Date} date to filter all IPA that were made to this date
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | Account customer unique identifier in the merchant's tenancy (optional)  (default to null)
            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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional)  (default to null)
            var dateFrom = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made from this date (optional)  (default to null)
            var dateTo = 2013-10-20T19:20:30+01:00;  // Date | date to filter all IPA that were made to this date (optional)  (default to null)

            try {
                // Get all payment history and upcoming payments (scheduled payments)
                groupedPaymentHistoryV2 result = apiInstance.aRGetSupplierPaymentHistoryV2(accountCustomerID, searchString, searchField, dateFrom, dateTo);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierPaymentHistoryV2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search
$searchField = searchField_example; // String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
$dateFrom = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made from this date
$dateTo = 2013-10-20T19:20:30+01:00; // Date | date to filter all IPA that were made to this date

try {
    $result = $api_instance->aRGetSupplierPaymentHistoryV2($accountCustomerID, $searchString, $searchField, $dateFrom, $dateTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsReceivableApi->aRGetSupplierPaymentHistoryV2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsReceivableApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | Account customer unique identifier in the merchant's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search
my $searchField = searchField_example; # String | must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
my $dateFrom = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made from this date
my $dateTo = 2013-10-20T19:20:30+01:00; # Date | date to filter all IPA that were made to this date

eval {
    my $result = $api_instance->aRGetSupplierPaymentHistoryV2(accountCustomerID => $accountCustomerID, searchString => $searchString, searchField => $searchField, dateFrom => $dateFrom, dateTo => $dateTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierPaymentHistoryV2: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | Account customer unique identifier in the merchant's tenancy (optional) (default to null)
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 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount' (optional) (default to null)
dateFrom = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made from this date (optional) (default to null)
dateTo = 2013-10-20T19:20:30+01:00 # Date | date to filter all IPA that were made to this date (optional) (default to null)

try:
    # Get all payment history and upcoming payments (scheduled payments)
    api_response = api_instance.a_r_get_supplier_payment_history_v2(accountCustomerID=accountCustomerID, searchString=searchString, searchField=searchField, dateFrom=dateFrom, dateTo=dateTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierPaymentHistoryV2: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = 56; // Integer
    let searchString = searchString_example; // String
    let searchField = searchField_example; // String
    let dateFrom = 2013-10-20T19:20:30+01:00; // Date
    let dateTo = 2013-10-20T19:20:30+01:00; // Date

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierPaymentHistoryV2(accountCustomerID, searchString, searchField, dateFrom, dateTo, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
accountCustomerID
Integer (int32)
Account customer unique identifier in the merchant's tenancy
SearchString
String
String of characters to specify an advance search
SearchField
String
must be NULL or empty or 'VendorName', 'InvoiceRefNumber' or 'CustomerName' or 'RefNumber' or, 'Amount'
dateFrom
Date (date-time)
date to filter all IPA that were made from this date
dateTo
Date (date-time)
date to filter all IPA that were made to this date

Responses


aRGetSupplierStatementDetails

Gets an accounts receivable supplier statement details.

Allows an user to get the invoices and/or credit notes added to an unique statement


/Spenda/Payments/AccountsReceivable/Supplier/Statement/{accountCustomerID}/{statementID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/Statement/{accountCustomerID}/{statementID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Buyer unique Identifier linked to supplier's tenancy
        Integer statementID = 56; // Integer | Identifier of the statement being processed

        try {
            statementViewByStatementIDResponse result = apiInstance.aRGetSupplierStatementDetails(accountCustomerID, statementID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierStatementDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | Buyer unique Identifier linked to supplier's tenancy
final Integer statementID = new Integer(); // Integer | Identifier of the statement being processed

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Buyer unique Identifier linked to supplier's tenancy
        Integer statementID = 56; // Integer | Identifier of the statement being processed

        try {
            statementViewByStatementIDResponse result = apiInstance.aRGetSupplierStatementDetails(accountCustomerID, statementID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierStatementDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // Buyer unique Identifier linked to supplier's tenancy (default to null)
Integer *statementID = 56; // Identifier of the statement being processed (default to null)

// Gets an accounts receivable supplier statement details.
[apiInstance aRGetSupplierStatementDetailsWith:accountCustomerID
    statementID:statementID
              completionHandler: ^(statementViewByStatementIDResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var accountCustomerID = 56; // {Integer} Buyer unique Identifier linked to supplier's tenancy
var statementID = 56; // {Integer} Identifier of the statement being processed

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | Buyer unique Identifier linked to supplier's tenancy (default to null)
            var statementID = 56;  // Integer | Identifier of the statement being processed (default to null)

            try {
                // Gets an accounts receivable supplier statement details.
                statementViewByStatementIDResponse result = apiInstance.aRGetSupplierStatementDetails(accountCustomerID, statementID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierStatementDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | Buyer unique Identifier linked to supplier's tenancy
$statementID = 56; // Integer | Identifier of the statement being processed

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | Buyer unique Identifier linked to supplier's tenancy
my $statementID = 56; # Integer | Identifier of the statement being processed

eval {
    my $result = $api_instance->aRGetSupplierStatementDetails(accountCustomerID => $accountCustomerID, statementID => $statementID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierStatementDetails: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | Buyer unique Identifier linked to supplier's tenancy (default to null)
statementID = 56 # Integer | Identifier of the statement being processed (default to null)

try:
    # Gets an accounts receivable supplier statement details.
    api_response = api_instance.a_r_get_supplier_statement_details(accountCustomerID, statementID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierStatementDetails: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = 56; // Integer
    let statementID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierStatementDetails(accountCustomerID, statementID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
accountCustomerID*
Integer (int32)
Buyer unique Identifier linked to supplier's tenancy
Required
statementID*
Integer (int32)
Identifier of the statement being processed
Required

Responses


aRGetSupplierStatementSummary

Gets all an accounts receivable supplier statements summary

Allows an user to retrieve all supplier statements in the Supplier context.


/Spenda/Payments/AccountsReceivable/Supplier/Statement/{accountCustomerID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/Statement/{accountCustomerID}?fromDate=2013-10-20T19:20:30+01:00&isIncludeCancelled=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        Date fromDate = 2013-10-20T19:20:30+01:00; // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
        Boolean isIncludeCancelled = true; // Boolean | will defined it the result will include statemes cancel by the user

        try {
            array[statementViewSummary] result = apiInstance.aRGetSupplierStatementSummary(accountCustomerID, fromDate, isIncludeCancelled);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierStatementSummary");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accountCustomerID = new Integer(); // Integer | Account customer unique identifier in the merchant's tenancy
final Date fromDate = new Date(); // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
final Boolean isIncludeCancelled = new Boolean(); // Boolean | will defined it the result will include statemes cancel by the user

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
        Date fromDate = 2013-10-20T19:20:30+01:00; // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
        Boolean isIncludeCancelled = true; // Boolean | will defined it the result will include statemes cancel by the user

        try {
            array[statementViewSummary] result = apiInstance.aRGetSupplierStatementSummary(accountCustomerID, fromDate, isIncludeCancelled);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetSupplierStatementSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *accountCustomerID = 56; // Account customer unique identifier in the merchant's tenancy (default to null)
Date *fromDate = 2013-10-20T19:20:30+01:00; // get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months (optional) (default to null)
Boolean *isIncludeCancelled = true; // will defined it the result will include statemes cancel by the user (optional) (default to null)

// Gets all an accounts receivable supplier statements summary
[apiInstance aRGetSupplierStatementSummaryWith:accountCustomerID
    fromDate:fromDate
    isIncludeCancelled:isIncludeCancelled
              completionHandler: ^(array[statementViewSummary] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var accountCustomerID = 56; // {Integer} Account customer unique identifier in the merchant's tenancy
var opts = {
  'fromDate': 2013-10-20T19:20:30+01:00, // {Date} get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
  'isIncludeCancelled': true // {Boolean} will defined it the result will include statemes cancel by the user
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var accountCustomerID = 56;  // Integer | Account customer unique identifier in the merchant's tenancy (default to null)
            var fromDate = 2013-10-20T19:20:30+01:00;  // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months (optional)  (default to null)
            var isIncludeCancelled = true;  // Boolean | will defined it the result will include statemes cancel by the user (optional)  (default to null)

            try {
                // Gets all an accounts receivable supplier statements summary
                array[statementViewSummary] result = apiInstance.aRGetSupplierStatementSummary(accountCustomerID, fromDate, isIncludeCancelled);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetSupplierStatementSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$accountCustomerID = 56; // Integer | Account customer unique identifier in the merchant's tenancy
$fromDate = 2013-10-20T19:20:30+01:00; // Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
$isIncludeCancelled = true; // Boolean | will defined it the result will include statemes cancel by the user

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $accountCustomerID = 56; # Integer | Account customer unique identifier in the merchant's tenancy
my $fromDate = 2013-10-20T19:20:30+01:00; # Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
my $isIncludeCancelled = true; # Boolean | will defined it the result will include statemes cancel by the user

eval {
    my $result = $api_instance->aRGetSupplierStatementSummary(accountCustomerID => $accountCustomerID, fromDate => $fromDate, isIncludeCancelled => $isIncludeCancelled);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetSupplierStatementSummary: $@\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.AccountsReceivableApi()
accountCustomerID = 56 # Integer | Account customer unique identifier in the merchant's tenancy (default to null)
fromDate = 2013-10-20T19:20:30+01:00 # Date | get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months (optional) (default to null)
isIncludeCancelled = true # Boolean | will defined it the result will include statemes cancel by the user (optional) (default to null)

try:
    # Gets all an accounts receivable supplier statements summary
    api_response = api_instance.a_r_get_supplier_statement_summary(accountCustomerID, fromDate=fromDate, isIncludeCancelled=isIncludeCancelled)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetSupplierStatementSummary: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let accountCustomerID = 56; // Integer
    let fromDate = 2013-10-20T19:20:30+01:00; // Date
    let isIncludeCancelled = true; // Boolean

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetSupplierStatementSummary(accountCustomerID, fromDate, isIncludeCancelled, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
accountCustomerID*
Integer (int32)
Account customer unique identifier in the merchant's tenancy
Required
Query parameters
Name Description
fromDate
Date (date-time)
get a statement list from the date specified onwards, if null, its value will retrieve the statements within last 2 months
isIncludeCancelled
Boolean
will defined it the result will include statemes cancel by the user

Responses


aRGetVendors

Get all tenant vendors

Allows an user to retrieve all vendors in the supplier or buyer context.


/Spenda/Payments/AccountsReceivable/Vendors

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Vendors?linkedSupplierID=56&searchString=searchString_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search

        try {
            array[vendorDetails] result = apiInstance.aRGetVendors(linkedSupplierID, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetVendors");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Supplier unique identifier in the buyer's tenancy
final String searchString = new String(); // String | String of characters to specify an advance search

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
        String searchString = searchString_example; // String | String of characters to specify an advance search

        try {
            array[vendorDetails] result = apiInstance.aRGetVendors(linkedSupplierID, searchString);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRGetVendors");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Supplier unique identifier in the buyer's tenancy (optional) (default to null)
String *searchString = searchString_example; // String of characters to specify an advance search (optional) (default to null)

// Get all tenant vendors
[apiInstance aRGetVendorsWith:linkedSupplierID
    searchString:searchString
              completionHandler: ^(array[vendorDetails] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'linkedSupplierID': 56, // {Integer} Supplier unique identifier in the buyer's tenancy
  'searchString': searchString_example // {String} String of characters to specify an advance search
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Supplier unique identifier in the buyer's tenancy (optional)  (default to null)
            var searchString = searchString_example;  // String | String of characters to specify an advance search (optional)  (default to null)

            try {
                // Get all tenant vendors
                array[vendorDetails] result = apiInstance.aRGetVendors(linkedSupplierID, searchString);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRGetVendors: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Supplier unique identifier in the buyer's tenancy
$searchString = searchString_example; // String | String of characters to specify an advance search

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Supplier unique identifier in the buyer's tenancy
my $searchString = searchString_example; # String | String of characters to specify an advance search

eval {
    my $result = $api_instance->aRGetVendors(linkedSupplierID => $linkedSupplierID, searchString => $searchString);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRGetVendors: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Supplier unique identifier in the buyer's tenancy (optional) (default to null)
searchString = searchString_example # String | String of characters to specify an advance search (optional) (default to null)

try:
    # Get all tenant vendors
    api_response = api_instance.a_r_get_vendors(linkedSupplierID=linkedSupplierID, searchString=searchString)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRGetVendors: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let searchString = searchString_example; // String

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRGetVendors(linkedSupplierID, searchString, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
linkedSupplierID
Integer (int32)
Supplier unique identifier in the buyer's tenancy
searchString
String
String of characters to specify an advance search

Responses


aRProcessBuyerPayment

Processes an accounts receivable payment from the context of the buyer tenant.

Allows a user to process a payment within the tenancy of a connected supplier.


/Spenda/Payments/AccountsReceivable/Buyer/Payment

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/Payment" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        BuyerAccountsReceivablePaymentRequest buyerAccountsReceivablePaymentRequest = {"claims":[{"id":0}],"payment":{"supplierPaymentOption":{"supplierPaymentOptionID":0},"amount":0,"surchargeAmount":0,"transactionFeeAmount":0,"paymentMethod":"Cash","creditCard":{"cardHolderName":"string","cardNumber":"string","expiryMMYY":"string","cardVerificationNumber":"string"},"paymentAccount":{"paymentAccountGUID":"string"},"isLoyaltyPoints":true,"isPrepayment":true,"paymentDescription":"string","scheduledDateTimeUtc":"string","metadata":{}},"linkedSupplierID":0,"invoiceBatch":{"invoicePaymentAllocationID":0,"versionDateTimeUtc":"string"},"invoices":[{"id":0,"appliedAmount":0}],"salesOrders":[{"salesOrderID":0}],"creditNotes":[{"id":0}],"authorisation":{"token":"string"}}; // BuyerAccountsReceivablePaymentRequest | 

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

final api_instance = DefaultApi();

final BuyerAccountsReceivablePaymentRequest buyerAccountsReceivablePaymentRequest = new BuyerAccountsReceivablePaymentRequest(); // BuyerAccountsReceivablePaymentRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        BuyerAccountsReceivablePaymentRequest buyerAccountsReceivablePaymentRequest = {"claims":[{"id":0}],"payment":{"supplierPaymentOption":{"supplierPaymentOptionID":0},"amount":0,"surchargeAmount":0,"transactionFeeAmount":0,"paymentMethod":"Cash","creditCard":{"cardHolderName":"string","cardNumber":"string","expiryMMYY":"string","cardVerificationNumber":"string"},"paymentAccount":{"paymentAccountGUID":"string"},"isLoyaltyPoints":true,"isPrepayment":true,"paymentDescription":"string","scheduledDateTimeUtc":"string","metadata":{}},"linkedSupplierID":0,"invoiceBatch":{"invoicePaymentAllocationID":0,"versionDateTimeUtc":"string"},"invoices":[{"id":0,"appliedAmount":0}],"salesOrders":[{"salesOrderID":0}],"creditNotes":[{"id":0}],"authorisation":{"token":"string"}}; // BuyerAccountsReceivablePaymentRequest | 

        try {
            accountsReceivablePaymentResponse result = apiInstance.aRProcessBuyerPayment(buyerAccountsReceivablePaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRProcessBuyerPayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
BuyerAccountsReceivablePaymentRequest *buyerAccountsReceivablePaymentRequest = {"claims":[{"id":0}],"payment":{"supplierPaymentOption":{"supplierPaymentOptionID":0},"amount":0,"surchargeAmount":0,"transactionFeeAmount":0,"paymentMethod":"Cash","creditCard":{"cardHolderName":"string","cardNumber":"string","expiryMMYY":"string","cardVerificationNumber":"string"},"paymentAccount":{"paymentAccountGUID":"string"},"isLoyaltyPoints":true,"isPrepayment":true,"paymentDescription":"string","scheduledDateTimeUtc":"string","metadata":{}},"linkedSupplierID":0,"invoiceBatch":{"invoicePaymentAllocationID":0,"versionDateTimeUtc":"string"},"invoices":[{"id":0,"appliedAmount":0}],"salesOrders":[{"salesOrderID":0}],"creditNotes":[{"id":0}],"authorisation":{"token":"string"}}; //  (optional)

// Processes an accounts receivable payment from the context of the buyer tenant.
[apiInstance aRProcessBuyerPaymentWith:buyerAccountsReceivablePaymentRequest
              completionHandler: ^(accountsReceivablePaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'buyerAccountsReceivablePaymentRequest': {"claims":[{"id":0}],"payment":{"supplierPaymentOption":{"supplierPaymentOptionID":0},"amount":0,"surchargeAmount":0,"transactionFeeAmount":0,"paymentMethod":"Cash","creditCard":{"cardHolderName":"string","cardNumber":"string","expiryMMYY":"string","cardVerificationNumber":"string"},"paymentAccount":{"paymentAccountGUID":"string"},"isLoyaltyPoints":true,"isPrepayment":true,"paymentDescription":"string","scheduledDateTimeUtc":"string","metadata":{}},"linkedSupplierID":0,"invoiceBatch":{"invoicePaymentAllocationID":0,"versionDateTimeUtc":"string"},"invoices":[{"id":0,"appliedAmount":0}],"salesOrders":[{"salesOrderID":0}],"creditNotes":[{"id":0}],"authorisation":{"token":"string"}} // {BuyerAccountsReceivablePaymentRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var buyerAccountsReceivablePaymentRequest = new BuyerAccountsReceivablePaymentRequest(); // BuyerAccountsReceivablePaymentRequest |  (optional) 

            try {
                // Processes an accounts receivable payment from the context of the buyer tenant.
                accountsReceivablePaymentResponse result = apiInstance.aRProcessBuyerPayment(buyerAccountsReceivablePaymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRProcessBuyerPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$buyerAccountsReceivablePaymentRequest = {"claims":[{"id":0}],"payment":{"supplierPaymentOption":{"supplierPaymentOptionID":0},"amount":0,"surchargeAmount":0,"transactionFeeAmount":0,"paymentMethod":"Cash","creditCard":{"cardHolderName":"string","cardNumber":"string","expiryMMYY":"string","cardVerificationNumber":"string"},"paymentAccount":{"paymentAccountGUID":"string"},"isLoyaltyPoints":true,"isPrepayment":true,"paymentDescription":"string","scheduledDateTimeUtc":"string","metadata":{}},"linkedSupplierID":0,"invoiceBatch":{"invoicePaymentAllocationID":0,"versionDateTimeUtc":"string"},"invoices":[{"id":0,"appliedAmount":0}],"salesOrders":[{"salesOrderID":0}],"creditNotes":[{"id":0}],"authorisation":{"token":"string"}}; // BuyerAccountsReceivablePaymentRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $buyerAccountsReceivablePaymentRequest = WWW::OPenAPIClient::Object::BuyerAccountsReceivablePaymentRequest->new(); # BuyerAccountsReceivablePaymentRequest | 

eval {
    my $result = $api_instance->aRProcessBuyerPayment(buyerAccountsReceivablePaymentRequest => $buyerAccountsReceivablePaymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRProcessBuyerPayment: $@\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.AccountsReceivableApi()
buyerAccountsReceivablePaymentRequest = {"claims":[{"id":0}],"payment":{"supplierPaymentOption":{"supplierPaymentOptionID":0},"amount":0,"surchargeAmount":0,"transactionFeeAmount":0,"paymentMethod":"Cash","creditCard":{"cardHolderName":"string","cardNumber":"string","expiryMMYY":"string","cardVerificationNumber":"string"},"paymentAccount":{"paymentAccountGUID":"string"},"isLoyaltyPoints":true,"isPrepayment":true,"paymentDescription":"string","scheduledDateTimeUtc":"string","metadata":{}},"linkedSupplierID":0,"invoiceBatch":{"invoicePaymentAllocationID":0,"versionDateTimeUtc":"string"},"invoices":[{"id":0,"appliedAmount":0}],"salesOrders":[{"salesOrderID":0}],"creditNotes":[{"id":0}],"authorisation":{"token":"string"}} # BuyerAccountsReceivablePaymentRequest |  (optional)

try:
    # Processes an accounts receivable payment from the context of the buyer tenant.
    api_response = api_instance.a_r_process_buyer_payment(buyerAccountsReceivablePaymentRequest=buyerAccountsReceivablePaymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRProcessBuyerPayment: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let buyerAccountsReceivablePaymentRequest = {"claims":[{"id":0}],"payment":{"supplierPaymentOption":{"supplierPaymentOptionID":0},"amount":0,"surchargeAmount":0,"transactionFeeAmount":0,"paymentMethod":"Cash","creditCard":{"cardHolderName":"string","cardNumber":"string","expiryMMYY":"string","cardVerificationNumber":"string"},"paymentAccount":{"paymentAccountGUID":"string"},"isLoyaltyPoints":true,"isPrepayment":true,"paymentDescription":"string","scheduledDateTimeUtc":"string","metadata":{}},"linkedSupplierID":0,"invoiceBatch":{"invoicePaymentAllocationID":0,"versionDateTimeUtc":"string"},"invoices":[{"id":0,"appliedAmount":0}],"salesOrders":[{"salesOrderID":0}],"creditNotes":[{"id":0}],"authorisation":{"token":"string"}}; // BuyerAccountsReceivablePaymentRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRProcessBuyerPayment(buyerAccountsReceivablePaymentRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
buyerAccountsReceivablePaymentRequest

Responses


aRProcessCustomerStatementsManualTrigger

Trigger Automated Customer Statements manually.

Trigger Automated Customer Statements manually.


/Spenda/Payments/AccountsReceivable/Supplier/ProcessCustomerStatementsManualTrigger

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountsReceivableApi;

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

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


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

// Trigger Automated Customer Statements manually.
[apiInstance aRProcessCustomerStatementsManualTriggerWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

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

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

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

            try {
                // Trigger Automated Customer Statements manually.
                apiInstance.aRProcessCustomerStatementsManualTrigger();
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRProcessCustomerStatementsManualTrigger: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    $api_instance->aRProcessCustomerStatementsManualTrigger();
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRProcessCustomerStatementsManualTrigger: $@\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.AccountsReceivableApi()

try:
    # Trigger Automated Customer Statements manually.
    api_instance.a_r_process_customer_statements_manual_trigger()
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRProcessCustomerStatementsManualTrigger: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRProcessCustomerStatementsManualTrigger(&context).wait();

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

Scopes

Parameters

Responses



aRProcessSupplierCustomerStatements

Processes an accounts receivable payment from the context of the buyer tenant.

Allows a user to process a payment within the tenancy of a connected supplier.


/Spenda/Payments/AccountsReceivable/Supplier/ProcessCustomerStatements

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/ProcessCustomerStatements" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        ProcessSupplierCustomerStatementsRequest processSupplierCustomerStatementsRequest = {"alertID":0,"accountCustomerIDs":[0],"invoiceID":0,"timelineGroup":0,"timelineSubGroupID":0,"asAtDate":"string"}; // ProcessSupplierCustomerStatementsRequest | 

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

final api_instance = DefaultApi();

final ProcessSupplierCustomerStatementsRequest processSupplierCustomerStatementsRequest = new ProcessSupplierCustomerStatementsRequest(); // ProcessSupplierCustomerStatementsRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        ProcessSupplierCustomerStatementsRequest processSupplierCustomerStatementsRequest = {"alertID":0,"accountCustomerIDs":[0],"invoiceID":0,"timelineGroup":0,"timelineSubGroupID":0,"asAtDate":"string"}; // ProcessSupplierCustomerStatementsRequest | 

        try {
            'Integer' result = apiInstance.aRProcessSupplierCustomerStatements(processSupplierCustomerStatementsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRProcessSupplierCustomerStatements");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
ProcessSupplierCustomerStatementsRequest *processSupplierCustomerStatementsRequest = {"alertID":0,"accountCustomerIDs":[0],"invoiceID":0,"timelineGroup":0,"timelineSubGroupID":0,"asAtDate":"string"}; //  (optional)

// Processes an accounts receivable payment from the context of the buyer tenant.
[apiInstance aRProcessSupplierCustomerStatementsWith:processSupplierCustomerStatementsRequest
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'processSupplierCustomerStatementsRequest': {"alertID":0,"accountCustomerIDs":[0],"invoiceID":0,"timelineGroup":0,"timelineSubGroupID":0,"asAtDate":"string"} // {ProcessSupplierCustomerStatementsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var processSupplierCustomerStatementsRequest = new ProcessSupplierCustomerStatementsRequest(); // ProcessSupplierCustomerStatementsRequest |  (optional) 

            try {
                // Processes an accounts receivable payment from the context of the buyer tenant.
                'Integer' result = apiInstance.aRProcessSupplierCustomerStatements(processSupplierCustomerStatementsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRProcessSupplierCustomerStatements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$processSupplierCustomerStatementsRequest = {"alertID":0,"accountCustomerIDs":[0],"invoiceID":0,"timelineGroup":0,"timelineSubGroupID":0,"asAtDate":"string"}; // ProcessSupplierCustomerStatementsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $processSupplierCustomerStatementsRequest = WWW::OPenAPIClient::Object::ProcessSupplierCustomerStatementsRequest->new(); # ProcessSupplierCustomerStatementsRequest | 

eval {
    my $result = $api_instance->aRProcessSupplierCustomerStatements(processSupplierCustomerStatementsRequest => $processSupplierCustomerStatementsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRProcessSupplierCustomerStatements: $@\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.AccountsReceivableApi()
processSupplierCustomerStatementsRequest = {"alertID":0,"accountCustomerIDs":[0],"invoiceID":0,"timelineGroup":0,"timelineSubGroupID":0,"asAtDate":"string"} # ProcessSupplierCustomerStatementsRequest |  (optional)

try:
    # Processes an accounts receivable payment from the context of the buyer tenant.
    api_response = api_instance.a_r_process_supplier_customer_statements(processSupplierCustomerStatementsRequest=processSupplierCustomerStatementsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRProcessSupplierCustomerStatements: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let processSupplierCustomerStatementsRequest = {"alertID":0,"accountCustomerIDs":[0],"invoiceID":0,"timelineGroup":0,"timelineSubGroupID":0,"asAtDate":"string"}; // ProcessSupplierCustomerStatementsRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRProcessSupplierCustomerStatements(processSupplierCustomerStatementsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
processSupplierCustomerStatementsRequest

Responses


aRQueryBuyerPayment

Gets an accounts receivable payment from the context of the buyer tenant.

Allows a user to check the status of an accounts receivable payment within their supplier's tenant.


/Spenda/Payments/AccountsReceivable/Buyer/Payment/{supplierID}/{invoicePaymentAllocationID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/Payment/{supplierID}/{invoicePaymentAllocationID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer supplierID = 56; // Integer | Identifier of the Supplier processing the payment
        Integer invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

        try {
            accountsReceivablePaymentResponse result = apiInstance.aRQueryBuyerPayment(supplierID, invoicePaymentAllocationID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRQueryBuyerPayment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | Identifier of the Supplier processing the payment
final Integer invoicePaymentAllocationID = new Integer(); // Integer | Identifier of the Payment being processed

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer supplierID = 56; // Integer | Identifier of the Supplier processing the payment
        Integer invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

        try {
            accountsReceivablePaymentResponse result = apiInstance.aRQueryBuyerPayment(supplierID, invoicePaymentAllocationID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRQueryBuyerPayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *supplierID = 56; // Identifier of the Supplier processing the payment (default to null)
Integer *invoicePaymentAllocationID = 56; // Identifier of the Payment being processed (default to null)

// Gets an accounts receivable payment from the context of the buyer tenant.
[apiInstance aRQueryBuyerPaymentWith:supplierID
    invoicePaymentAllocationID:invoicePaymentAllocationID
              completionHandler: ^(accountsReceivablePaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var supplierID = 56; // {Integer} Identifier of the Supplier processing the payment
var invoicePaymentAllocationID = 56; // {Integer} Identifier of the Payment being processed

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var supplierID = 56;  // Integer | Identifier of the Supplier processing the payment (default to null)
            var invoicePaymentAllocationID = 56;  // Integer | Identifier of the Payment being processed (default to null)

            try {
                // Gets an accounts receivable payment from the context of the buyer tenant.
                accountsReceivablePaymentResponse result = apiInstance.aRQueryBuyerPayment(supplierID, invoicePaymentAllocationID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRQueryBuyerPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$supplierID = 56; // Integer | Identifier of the Supplier processing the payment
$invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $supplierID = 56; # Integer | Identifier of the Supplier processing the payment
my $invoicePaymentAllocationID = 56; # Integer | Identifier of the Payment being processed

eval {
    my $result = $api_instance->aRQueryBuyerPayment(supplierID => $supplierID, invoicePaymentAllocationID => $invoicePaymentAllocationID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRQueryBuyerPayment: $@\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.AccountsReceivableApi()
supplierID = 56 # Integer | Identifier of the Supplier processing the payment (default to null)
invoicePaymentAllocationID = 56 # Integer | Identifier of the Payment being processed (default to null)

try:
    # Gets an accounts receivable payment from the context of the buyer tenant.
    api_response = api_instance.a_r_query_buyer_payment(supplierID, invoicePaymentAllocationID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRQueryBuyerPayment: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let supplierID = 56; // Integer
    let invoicePaymentAllocationID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRQueryBuyerPayment(supplierID, invoicePaymentAllocationID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
Identifier of the Supplier processing the payment
Required
invoicePaymentAllocationID*
Integer (int32)
Identifier of the Payment being processed
Required

Responses


aRQueryBuyerPaymentOptions

Gets available payment options to use with an Accounts Receivable Payment.

Returns payment options saved for a specific supplier as well as those available through Spenda Payment Services.


/Spenda/Payments/AccountsReceivable/Buyer/Payment/{supplierID}/PaymentMethods

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/Payment/{supplierID}/PaymentMethods"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer supplierID = 56; // Integer | Identifier of the Supplier to retrieve payment options for.

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

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | Identifier of the Supplier to retrieve payment options for.

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer supplierID = 56; // Integer | Identifier of the Supplier to retrieve payment options for.

        try {
            getBuyerPaymentOptionsResponse result = apiInstance.aRQueryBuyerPaymentOptions(supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRQueryBuyerPaymentOptions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *supplierID = 56; // Identifier of the Supplier to retrieve payment options for. (default to null)

// Gets available payment options to use with an Accounts Receivable Payment.
[apiInstance aRQueryBuyerPaymentOptionsWith:supplierID
              completionHandler: ^(getBuyerPaymentOptionsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var supplierID = 56; // {Integer} Identifier of the Supplier to retrieve payment options for.

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var supplierID = 56;  // Integer | Identifier of the Supplier to retrieve payment options for. (default to null)

            try {
                // Gets available payment options to use with an Accounts Receivable Payment.
                getBuyerPaymentOptionsResponse result = apiInstance.aRQueryBuyerPaymentOptions(supplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRQueryBuyerPaymentOptions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$supplierID = 56; // Integer | Identifier of the Supplier to retrieve payment options for.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $supplierID = 56; # Integer | Identifier of the Supplier to retrieve payment options for.

eval {
    my $result = $api_instance->aRQueryBuyerPaymentOptions(supplierID => $supplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRQueryBuyerPaymentOptions: $@\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.AccountsReceivableApi()
supplierID = 56 # Integer | Identifier of the Supplier to retrieve payment options for. (default to null)

try:
    # Gets available payment options to use with an Accounts Receivable Payment.
    api_response = api_instance.a_r_query_buyer_payment_options(supplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRQueryBuyerPaymentOptions: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let supplierID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRQueryBuyerPaymentOptions(supplierID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
Identifier of the Supplier to retrieve payment options for.
Required

Responses


aRQuerySupplierPayment

Gets an accounts receivable payment from the context of the supplier's tenant.

Allows a user to check the status of an accounts receivable payment within their own tenant.


/Spenda/Payments/AccountsReceivable/Supplier/Payment/{invoicePaymentAllocationID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/Payment/{invoicePaymentAllocationID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

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

final api_instance = DefaultApi();

final Integer invoicePaymentAllocationID = new Integer(); // Integer | Identifier of the Payment being processed

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

        try {
            accountsReceivablePaymentResponse result = apiInstance.aRQuerySupplierPayment(invoicePaymentAllocationID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRQuerySupplierPayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *invoicePaymentAllocationID = 56; // Identifier of the Payment being processed (default to null)

// Gets an accounts receivable payment from the context of the supplier's tenant.
[apiInstance aRQuerySupplierPaymentWith:invoicePaymentAllocationID
              completionHandler: ^(accountsReceivablePaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var invoicePaymentAllocationID = 56; // {Integer} Identifier of the Payment being processed

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var invoicePaymentAllocationID = 56;  // Integer | Identifier of the Payment being processed (default to null)

            try {
                // Gets an accounts receivable payment from the context of the supplier's tenant.
                accountsReceivablePaymentResponse result = apiInstance.aRQuerySupplierPayment(invoicePaymentAllocationID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRQuerySupplierPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$invoicePaymentAllocationID = 56; // Integer | Identifier of the Payment being processed

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $invoicePaymentAllocationID = 56; # Integer | Identifier of the Payment being processed

eval {
    my $result = $api_instance->aRQuerySupplierPayment(invoicePaymentAllocationID => $invoicePaymentAllocationID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRQuerySupplierPayment: $@\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.AccountsReceivableApi()
invoicePaymentAllocationID = 56 # Integer | Identifier of the Payment being processed (default to null)

try:
    # Gets an accounts receivable payment from the context of the supplier's tenant.
    api_response = api_instance.a_r_query_supplier_payment(invoicePaymentAllocationID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRQuerySupplierPayment: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let invoicePaymentAllocationID = 56; // Integer

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRQuerySupplierPayment(invoicePaymentAllocationID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invoicePaymentAllocationID*
Integer (int32)
Identifier of the Payment being processed
Required

Responses


aRRetryInvoiceBuyerBatch

Retry invoice batch by restoring the selected failed one, and save (stash) any existing invoice batch.

Allows a user to retry a failed payment of an invoices batch.


/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}/retry

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}/retry" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchRetryRequest buyerAccountsReceivableInvoiceBatchRetryRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchRetryRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRRetryInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRetryRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRRetryInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final BuyerAccountsReceivableInvoiceBatchRetryRequest buyerAccountsReceivableInvoiceBatchRetryRequest = new BuyerAccountsReceivableInvoiceBatchRetryRequest(); // BuyerAccountsReceivableInvoiceBatchRetryRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchRetryRequest buyerAccountsReceivableInvoiceBatchRetryRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchRetryRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRRetryInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRetryRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRRetryInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
BuyerAccountsReceivableInvoiceBatchRetryRequest *buyerAccountsReceivableInvoiceBatchRetryRequest = {"invoicePaymentAllocationID":0}; //  (optional)

// Retry invoice batch by restoring the selected failed one, and save (stash) any existing invoice batch.
[apiInstance aRRetryInvoiceBuyerBatchWith:linkedSupplierID
    buyerAccountsReceivableInvoiceBatchRetryRequest:buyerAccountsReceivableInvoiceBatchRetryRequest
              completionHandler: ^(accountsReceivableInvoiceBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var opts = {
  'buyerAccountsReceivableInvoiceBatchRetryRequest': {"invoicePaymentAllocationID":0} // {BuyerAccountsReceivableInvoiceBatchRetryRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var buyerAccountsReceivableInvoiceBatchRetryRequest = new BuyerAccountsReceivableInvoiceBatchRetryRequest(); // BuyerAccountsReceivableInvoiceBatchRetryRequest |  (optional) 

            try {
                // Retry invoice batch by restoring the selected failed one, and save (stash) any existing invoice batch.
                accountsReceivableInvoiceBatchResponse result = apiInstance.aRRetryInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRetryRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRRetryInvoiceBuyerBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$buyerAccountsReceivableInvoiceBatchRetryRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchRetryRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $buyerAccountsReceivableInvoiceBatchRetryRequest = WWW::OPenAPIClient::Object::BuyerAccountsReceivableInvoiceBatchRetryRequest->new(); # BuyerAccountsReceivableInvoiceBatchRetryRequest | 

eval {
    my $result = $api_instance->aRRetryInvoiceBuyerBatch(linkedSupplierID => $linkedSupplierID, buyerAccountsReceivableInvoiceBatchRetryRequest => $buyerAccountsReceivableInvoiceBatchRetryRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRRetryInvoiceBuyerBatch: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
buyerAccountsReceivableInvoiceBatchRetryRequest = {"invoicePaymentAllocationID":0} # BuyerAccountsReceivableInvoiceBatchRetryRequest |  (optional)

try:
    # Retry invoice batch by restoring the selected failed one, and save (stash) any existing invoice batch.
    api_response = api_instance.a_r_retry_invoice_buyer_batch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRetryRequest=buyerAccountsReceivableInvoiceBatchRetryRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRRetryInvoiceBuyerBatch: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let buyerAccountsReceivableInvoiceBatchRetryRequest = {"invoicePaymentAllocationID":0}; // BuyerAccountsReceivableInvoiceBatchRetryRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRRetryInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRetryRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
Body parameters
Name Description
buyerAccountsReceivableInvoiceBatchRetryRequest

Responses


aRSaveInvoiceBuyerBatch

Save Invoice batch details eg: Selected invoice, assigned Credit Notes

Allows a user to prepare invoices and credit notes before payment without losing their work.


/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchRequest buyerAccountsReceivableInvoiceBatchRequest = {"operationActions":[{"datTypeID":"Tenants","id":0,"action":"Add"}]}; // BuyerAccountsReceivableInvoiceBatchRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRSaveInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRSaveInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final BuyerAccountsReceivableInvoiceBatchRequest buyerAccountsReceivableInvoiceBatchRequest = new BuyerAccountsReceivableInvoiceBatchRequest(); // BuyerAccountsReceivableInvoiceBatchRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchRequest buyerAccountsReceivableInvoiceBatchRequest = {"operationActions":[{"datTypeID":"Tenants","id":0,"action":"Add"}]}; // BuyerAccountsReceivableInvoiceBatchRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRSaveInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRSaveInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
BuyerAccountsReceivableInvoiceBatchRequest *buyerAccountsReceivableInvoiceBatchRequest = {"operationActions":[{"datTypeID":"Tenants","id":0,"action":"Add"}]}; //  (optional)

// Save Invoice batch details eg: Selected invoice, assigned Credit Notes
[apiInstance aRSaveInvoiceBuyerBatchWith:linkedSupplierID
    buyerAccountsReceivableInvoiceBatchRequest:buyerAccountsReceivableInvoiceBatchRequest
              completionHandler: ^(accountsReceivableInvoiceBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var opts = {
  'buyerAccountsReceivableInvoiceBatchRequest': {"operationActions":[{"datTypeID":"Tenants","id":0,"action":"Add"}]} // {BuyerAccountsReceivableInvoiceBatchRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var buyerAccountsReceivableInvoiceBatchRequest = new BuyerAccountsReceivableInvoiceBatchRequest(); // BuyerAccountsReceivableInvoiceBatchRequest |  (optional) 

            try {
                // Save Invoice batch details eg: Selected invoice, assigned Credit Notes
                accountsReceivableInvoiceBatchResponse result = apiInstance.aRSaveInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRSaveInvoiceBuyerBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$buyerAccountsReceivableInvoiceBatchRequest = {"operationActions":[{"datTypeID":"Tenants","id":0,"action":"Add"}]}; // BuyerAccountsReceivableInvoiceBatchRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $buyerAccountsReceivableInvoiceBatchRequest = WWW::OPenAPIClient::Object::BuyerAccountsReceivableInvoiceBatchRequest->new(); # BuyerAccountsReceivableInvoiceBatchRequest | 

eval {
    my $result = $api_instance->aRSaveInvoiceBuyerBatch(linkedSupplierID => $linkedSupplierID, buyerAccountsReceivableInvoiceBatchRequest => $buyerAccountsReceivableInvoiceBatchRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRSaveInvoiceBuyerBatch: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
buyerAccountsReceivableInvoiceBatchRequest = {"operationActions":[{"datTypeID":"Tenants","id":0,"action":"Add"}]} # BuyerAccountsReceivableInvoiceBatchRequest |  (optional)

try:
    # Save Invoice batch details eg: Selected invoice, assigned Credit Notes
    api_response = api_instance.a_r_save_invoice_buyer_batch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRequest=buyerAccountsReceivableInvoiceBatchRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRSaveInvoiceBuyerBatch: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let buyerAccountsReceivableInvoiceBatchRequest = {"operationActions":[{"datTypeID":"Tenants","id":0,"action":"Add"}]}; // BuyerAccountsReceivableInvoiceBatchRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRSaveInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
Body parameters
Name Description
buyerAccountsReceivableInvoiceBatchRequest

Responses


aRSavePaymentAccountGUIDOnInvoiceBuyerBatch

Save Payment Account GUID on Invoice batch

Keeps track of the payment method the user changes


/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}/setPaymentAccountGUID

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/InvoiceBatch/{linkedSupplierID}/setPaymentAccountGUID" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = {"invoicePaymentAllocationID":0,"paymentAccountGUID":"string"}; // BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRSavePaymentAccountGUIDOnInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRSavePaymentAccountGUIDOnInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = new BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest(); // BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = {"invoicePaymentAllocationID":0,"paymentAccountGUID":"string"}; // BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest | 

        try {
            accountsReceivableInvoiceBatchResponse result = apiInstance.aRSavePaymentAccountGUIDOnInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRSavePaymentAccountGUIDOnInvoiceBuyerBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest *buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = {"invoicePaymentAllocationID":0,"paymentAccountGUID":"string"}; //  (optional)

// Save Payment Account GUID on Invoice batch
[apiInstance aRSavePaymentAccountGUIDOnInvoiceBuyerBatchWith:linkedSupplierID
    buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest:buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest
              completionHandler: ^(accountsReceivableInvoiceBatchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var opts = {
  'buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest': {"invoicePaymentAllocationID":0,"paymentAccountGUID":"string"} // {BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = new BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest(); // BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest |  (optional) 

            try {
                // Save Payment Account GUID on Invoice batch
                accountsReceivableInvoiceBatchResponse result = apiInstance.aRSavePaymentAccountGUIDOnInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRSavePaymentAccountGUIDOnInvoiceBuyerBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = {"invoicePaymentAllocationID":0,"paymentAccountGUID":"string"}; // BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = WWW::OPenAPIClient::Object::BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest->new(); # BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest | 

eval {
    my $result = $api_instance->aRSavePaymentAccountGUIDOnInvoiceBuyerBatch(linkedSupplierID => $linkedSupplierID, buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest => $buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRSavePaymentAccountGUIDOnInvoiceBuyerBatch: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = {"invoicePaymentAllocationID":0,"paymentAccountGUID":"string"} # BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest |  (optional)

try:
    # Save Payment Account GUID on Invoice batch
    api_response = api_instance.a_r_save_payment_account_guidon_invoice_buyer_batch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest=buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRSavePaymentAccountGUIDOnInvoiceBuyerBatch: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest = {"invoicePaymentAllocationID":0,"paymentAccountGUID":"string"}; // BuyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRSavePaymentAccountGUIDOnInvoiceBuyerBatch(linkedSupplierID, buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
Body parameters
Name Description
buyerAccountsReceivableInvoiceBatchSetAccountPaymentGUIDRequest

Responses


aRSendApprovalCodeForCustomerInvitationAndLinking

Sends approval code for a invoice details.

Allows a customer to send approval code for a invoice details


/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SendApprovalCode

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SendApprovalCode"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String magicLink = magicLink_example; // String | magic Link for the invoice details

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

final api_instance = DefaultApi();

final String magicLink = new String(); // String | magic Link for the invoice details

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String magicLink = magicLink_example; // String | magic Link for the invoice details

        try {
            Object result = apiInstance.aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRSendApprovalCodeForCustomerInvitationAndLinking");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
String *magicLink = magicLink_example; // magic Link for the invoice details (default to null)

// Sends approval code for a invoice details.
[apiInstance aRSendApprovalCodeForCustomerInvitationAndLinkingWith:magicLink
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var magicLink = magicLink_example; // {String} magic Link for the invoice details

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var magicLink = magicLink_example;  // String | magic Link for the invoice details (default to null)

            try {
                // Sends approval code for a invoice details.
                Object result = apiInstance.aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRSendApprovalCodeForCustomerInvitationAndLinking: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$magicLink = magicLink_example; // String | magic Link for the invoice details

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $magicLink = magicLink_example; # String | magic Link for the invoice details

eval {
    my $result = $api_instance->aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink => $magicLink);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRSendApprovalCodeForCustomerInvitationAndLinking: $@\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.AccountsReceivableApi()
magicLink = magicLink_example # String | magic Link for the invoice details (default to null)

try:
    # Sends approval code for a invoice details.
    api_response = api_instance.a_r_send_approval_code_for_customer_invitation_and_linking(magicLink)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRSendApprovalCodeForCustomerInvitationAndLinking: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let magicLink = magicLink_example; // String

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
magicLink*

Responses


aRSubmitApprovalCodeForCustomerInvitationAndLinking

Gets customer invitation using a magic link from a supplier.

Allows an user to get customer invitation using a magic link from a supplier


/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SubmitApprovalCode

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SubmitApprovalCode"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String magicLink = magicLink_example; // String | The invitation code

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

final api_instance = DefaultApi();

final String magicLink = new String(); // String | The invitation code

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        String magicLink = magicLink_example; // String | The invitation code

        try {
            submitApprovalCodeForCustomerInvitationAndLinkingResponse result = apiInstance.aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRSubmitApprovalCodeForCustomerInvitationAndLinking");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
String *magicLink = magicLink_example; // The invitation code (default to null)

// Gets customer invitation using a magic link from a supplier.
[apiInstance aRSubmitApprovalCodeForCustomerInvitationAndLinkingWith:magicLink
              completionHandler: ^(submitApprovalCodeForCustomerInvitationAndLinkingResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var magicLink = magicLink_example; // {String} The invitation code

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var magicLink = magicLink_example;  // String | The invitation code (default to null)

            try {
                // Gets customer invitation using a magic link from a supplier.
                submitApprovalCodeForCustomerInvitationAndLinkingResponse result = apiInstance.aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRSubmitApprovalCodeForCustomerInvitationAndLinking: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$magicLink = magicLink_example; // String | The invitation code

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $magicLink = magicLink_example; # String | The invitation code

eval {
    my $result = $api_instance->aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink => $magicLink);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRSubmitApprovalCodeForCustomerInvitationAndLinking: $@\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.AccountsReceivableApi()
magicLink = magicLink_example # String | The invitation code (default to null)

try:
    # Gets customer invitation using a magic link from a supplier.
    api_response = api_instance.a_r_submit_approval_code_for_customer_invitation_and_linking(magicLink)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRSubmitApprovalCodeForCustomerInvitationAndLinking: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let magicLink = magicLink_example; // String

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
magicLink*

Responses


aRSupplierStatement

Executes an defined operation for a supplier Statement view

Allows a user to executes an operation for a statement view.


/Spenda/Payments/AccountsReceivable/Supplier/Statement

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Supplier/Statement" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        SupplierStatementRequest supplierStatementRequest = {"statementID":0,"accountCustomerID":0,"statementDeltas":[{"datTypeID":"Tenants","id":0,"action":"Add"}],"name":"string","endDate_string":"string","finaliseStatement":true,"operation":"New"}; // SupplierStatementRequest | 

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

final api_instance = DefaultApi();

final SupplierStatementRequest supplierStatementRequest = new SupplierStatementRequest(); // SupplierStatementRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        SupplierStatementRequest supplierStatementRequest = {"statementID":0,"accountCustomerID":0,"statementDeltas":[{"datTypeID":"Tenants","id":0,"action":"Add"}],"name":"string","endDate_string":"string","finaliseStatement":true,"operation":"New"}; // SupplierStatementRequest | 

        try {
            statementViewStatusResponse result = apiInstance.aRSupplierStatement(supplierStatementRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRSupplierStatement");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
SupplierStatementRequest *supplierStatementRequest = {"statementID":0,"accountCustomerID":0,"statementDeltas":[{"datTypeID":"Tenants","id":0,"action":"Add"}],"name":"string","endDate_string":"string","finaliseStatement":true,"operation":"New"}; //  (optional)

// Executes an defined operation for a supplier Statement view
[apiInstance aRSupplierStatementWith:supplierStatementRequest
              completionHandler: ^(statementViewStatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var opts = {
  'supplierStatementRequest': {"statementID":0,"accountCustomerID":0,"statementDeltas":[{"datTypeID":"Tenants","id":0,"action":"Add"}],"name":"string","endDate_string":"string","finaliseStatement":true,"operation":"New"} // {SupplierStatementRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var supplierStatementRequest = new SupplierStatementRequest(); // SupplierStatementRequest |  (optional) 

            try {
                // Executes an defined operation for a supplier Statement view
                statementViewStatusResponse result = apiInstance.aRSupplierStatement(supplierStatementRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRSupplierStatement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$supplierStatementRequest = {"statementID":0,"accountCustomerID":0,"statementDeltas":[{"datTypeID":"Tenants","id":0,"action":"Add"}],"name":"string","endDate_string":"string","finaliseStatement":true,"operation":"New"}; // SupplierStatementRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $supplierStatementRequest = WWW::OPenAPIClient::Object::SupplierStatementRequest->new(); # SupplierStatementRequest | 

eval {
    my $result = $api_instance->aRSupplierStatement(supplierStatementRequest => $supplierStatementRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRSupplierStatement: $@\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.AccountsReceivableApi()
supplierStatementRequest = {"statementID":0,"accountCustomerID":0,"statementDeltas":[{"datTypeID":"Tenants","id":0,"action":"Add"}],"name":"string","endDate_string":"string","finaliseStatement":true,"operation":"New"} # SupplierStatementRequest |  (optional)

try:
    # Executes an defined operation for a supplier Statement view
    api_response = api_instance.a_r_supplier_statement(supplierStatementRequest=supplierStatementRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRSupplierStatement: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let supplierStatementRequest = {"statementID":0,"accountCustomerID":0,"statementDeltas":[{"datTypeID":"Tenants","id":0,"action":"Add"}],"name":"string","endDate_string":"string","finaliseStatement":true,"operation":"New"}; // SupplierStatementRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRSupplierStatement(supplierStatementRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
supplierStatementRequest

StatementViewRequest Json payload with data to save

Responses


aRUpdateBuyerScheduledPayment

Update scheduled payment

Allows a user in the context of the buyer to update an in progress scheduled invoice payment allocation or prepayment.


/Spenda/Payments/AccountsReceivable/Buyer/ScheduledPayment/{linkedSupplierID}/update

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Buyer/ScheduledPayment/{linkedSupplierID}/update" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableScheduledIPARequest buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest | 

        try {
            invoicePaymentAllocation result = apiInstance.aRUpdateBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRUpdateBuyerScheduledPayment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer linkedSupplierID = new Integer(); // Integer | Connected supplier Identifier
final BuyerAccountsReceivableScheduledIPARequest buyerAccountsReceivableScheduledIPARequest = new BuyerAccountsReceivableScheduledIPARequest(); // BuyerAccountsReceivableScheduledIPARequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer linkedSupplierID = 56; // Integer | Connected supplier Identifier
        BuyerAccountsReceivableScheduledIPARequest buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest | 

        try {
            invoicePaymentAllocation result = apiInstance.aRUpdateBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRUpdateBuyerScheduledPayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *linkedSupplierID = 56; // Connected supplier Identifier (default to null)
BuyerAccountsReceivableScheduledIPARequest *buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; //  (optional)

// Update scheduled payment
[apiInstance aRUpdateBuyerScheduledPaymentWith:linkedSupplierID
    buyerAccountsReceivableScheduledIPARequest:buyerAccountsReceivableScheduledIPARequest
              completionHandler: ^(invoicePaymentAllocation output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var linkedSupplierID = 56; // {Integer} Connected supplier Identifier
var opts = {
  'buyerAccountsReceivableScheduledIPARequest': {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"} // {BuyerAccountsReceivableScheduledIPARequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var linkedSupplierID = 56;  // Integer | Connected supplier Identifier (default to null)
            var buyerAccountsReceivableScheduledIPARequest = new BuyerAccountsReceivableScheduledIPARequest(); // BuyerAccountsReceivableScheduledIPARequest |  (optional) 

            try {
                // Update scheduled payment
                invoicePaymentAllocation result = apiInstance.aRUpdateBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRUpdateBuyerScheduledPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$linkedSupplierID = 56; // Integer | Connected supplier Identifier
$buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $linkedSupplierID = 56; # Integer | Connected supplier Identifier
my $buyerAccountsReceivableScheduledIPARequest = WWW::OPenAPIClient::Object::BuyerAccountsReceivableScheduledIPARequest->new(); # BuyerAccountsReceivableScheduledIPARequest | 

eval {
    my $result = $api_instance->aRUpdateBuyerScheduledPayment(linkedSupplierID => $linkedSupplierID, buyerAccountsReceivableScheduledIPARequest => $buyerAccountsReceivableScheduledIPARequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRUpdateBuyerScheduledPayment: $@\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.AccountsReceivableApi()
linkedSupplierID = 56 # Integer | Connected supplier Identifier (default to null)
buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"} # BuyerAccountsReceivableScheduledIPARequest |  (optional)

try:
    # Update scheduled payment
    api_response = api_instance.a_r_update_buyer_scheduled_payment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest=buyerAccountsReceivableScheduledIPARequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRUpdateBuyerScheduledPayment: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let linkedSupplierID = 56; // Integer
    let buyerAccountsReceivableScheduledIPARequest = {"transactionID":0,"datTypeID":"Tenants","scheduleDatetime":"string"}; // BuyerAccountsReceivableScheduledIPARequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRUpdateBuyerScheduledPayment(linkedSupplierID, buyerAccountsReceivableScheduledIPARequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
linkedSupplierID*
Integer (int32)
Connected supplier Identifier
Required
Body parameters
Name Description
buyerAccountsReceivableScheduledIPARequest

Responses


aRVoidManualPayment

Void a manual payment allowed only for admin users.

Void a manual payment allowed only for admin users.


/Spenda/Payments/AccountsReceivable/Payments/{paymentID}/VoidManual

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/Payments/{paymentID}/VoidManual" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsReceivableApi;

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

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

        // Create an instance of the API class
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer paymentID = 56; // Integer | Payment Identifier
        AccountsReceivableVoidManualPaymentRequest accountsReceivableVoidManualPaymentRequest = {"voidReason":"string"}; // AccountsReceivableVoidManualPaymentRequest | 

        try {
            accountsReceivableVoidManualPaymentResponse result = apiInstance.aRVoidManualPayment(paymentID, accountsReceivableVoidManualPaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRVoidManualPayment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer paymentID = new Integer(); // Integer | Payment Identifier
final AccountsReceivableVoidManualPaymentRequest accountsReceivableVoidManualPaymentRequest = new AccountsReceivableVoidManualPaymentRequest(); // AccountsReceivableVoidManualPaymentRequest | 

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

import org.openapitools.client.api.AccountsReceivableApi;

public class AccountsReceivableApiExample {
    public static void main(String[] args) {
        AccountsReceivableApi apiInstance = new AccountsReceivableApi();
        Integer paymentID = 56; // Integer | Payment Identifier
        AccountsReceivableVoidManualPaymentRequest accountsReceivableVoidManualPaymentRequest = {"voidReason":"string"}; // AccountsReceivableVoidManualPaymentRequest | 

        try {
            accountsReceivableVoidManualPaymentResponse result = apiInstance.aRVoidManualPayment(paymentID, accountsReceivableVoidManualPaymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountsReceivableApi#aRVoidManualPayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountsReceivableApi *apiInstance = [[AccountsReceivableApi alloc] init];
Integer *paymentID = 56; // Payment Identifier (default to null)
AccountsReceivableVoidManualPaymentRequest *accountsReceivableVoidManualPaymentRequest = {"voidReason":"string"}; //  (optional)

// Void a manual payment allowed only for admin users.
[apiInstance aRVoidManualPaymentWith:paymentID
    accountsReceivableVoidManualPaymentRequest:accountsReceivableVoidManualPaymentRequest
              completionHandler: ^(accountsReceivableVoidManualPaymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.AccountsReceivableApi()
var paymentID = 56; // {Integer} Payment Identifier
var opts = {
  'accountsReceivableVoidManualPaymentRequest': {"voidReason":"string"} // {AccountsReceivableVoidManualPaymentRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new AccountsReceivableApi();
            var paymentID = 56;  // Integer | Payment Identifier (default to null)
            var accountsReceivableVoidManualPaymentRequest = new AccountsReceivableVoidManualPaymentRequest(); // AccountsReceivableVoidManualPaymentRequest |  (optional) 

            try {
                // Void a manual payment allowed only for admin users.
                accountsReceivableVoidManualPaymentResponse result = apiInstance.aRVoidManualPayment(paymentID, accountsReceivableVoidManualPaymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountsReceivableApi.aRVoidManualPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsReceivableApi();
$paymentID = 56; // Integer | Payment Identifier
$accountsReceivableVoidManualPaymentRequest = {"voidReason":"string"}; // AccountsReceivableVoidManualPaymentRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsReceivableApi->new();
my $paymentID = 56; # Integer | Payment Identifier
my $accountsReceivableVoidManualPaymentRequest = WWW::OPenAPIClient::Object::AccountsReceivableVoidManualPaymentRequest->new(); # AccountsReceivableVoidManualPaymentRequest | 

eval {
    my $result = $api_instance->aRVoidManualPayment(paymentID => $paymentID, accountsReceivableVoidManualPaymentRequest => $accountsReceivableVoidManualPaymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountsReceivableApi->aRVoidManualPayment: $@\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.AccountsReceivableApi()
paymentID = 56 # Integer | Payment Identifier (default to null)
accountsReceivableVoidManualPaymentRequest = {"voidReason":"string"} # AccountsReceivableVoidManualPaymentRequest |  (optional)

try:
    # Void a manual payment allowed only for admin users.
    api_response = api_instance.a_r_void_manual_payment(paymentID, accountsReceivableVoidManualPaymentRequest=accountsReceivableVoidManualPaymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountsReceivableApi->aRVoidManualPayment: %s\n" % e)
extern crate AccountsReceivableApi;

pub fn main() {
    let paymentID = 56; // Integer
    let accountsReceivableVoidManualPaymentRequest = {"voidReason":"string"}; // AccountsReceivableVoidManualPaymentRequest

    let mut context = AccountsReceivableApi::Context::default();
    let result = client.aRVoidManualPayment(paymentID, accountsReceivableVoidManualPaymentRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
paymentID*
Integer (int32)
Payment Identifier
Required
Body parameters
Name Description
accountsReceivableVoidManualPaymentRequest

Responses


Public



aRSendApprovalCodeForCustomerInvitationAndLinking

Sends approval code for a invoice details.

Allows a customer to send approval code for a invoice details


/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SendApprovalCode

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SendApprovalCode"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PublicApi;

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String magicLink = magicLink_example; // String | magic Link for the invoice details

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

final api_instance = DefaultApi();

final String magicLink = new String(); // String | magic Link for the invoice details

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String magicLink = magicLink_example; // String | magic Link for the invoice details

        try {
            Object result = apiInstance.aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#aRSendApprovalCodeForCustomerInvitationAndLinking");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *magicLink = magicLink_example; // magic Link for the invoice details (default to null)

// Sends approval code for a invoice details.
[apiInstance aRSendApprovalCodeForCustomerInvitationAndLinkingWith:magicLink
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.PublicApi()
var magicLink = magicLink_example; // {String} magic Link for the invoice details

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var magicLink = magicLink_example;  // String | magic Link for the invoice details (default to null)

            try {
                // Sends approval code for a invoice details.
                Object result = apiInstance.aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.aRSendApprovalCodeForCustomerInvitationAndLinking: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$magicLink = magicLink_example; // String | magic Link for the invoice details

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $magicLink = magicLink_example; # String | magic Link for the invoice details

eval {
    my $result = $api_instance->aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink => $magicLink);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicApi->aRSendApprovalCodeForCustomerInvitationAndLinking: $@\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.PublicApi()
magicLink = magicLink_example # String | magic Link for the invoice details (default to null)

try:
    # Sends approval code for a invoice details.
    api_response = api_instance.a_r_send_approval_code_for_customer_invitation_and_linking(magicLink)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->aRSendApprovalCodeForCustomerInvitationAndLinking: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let magicLink = magicLink_example; // String

    let mut context = PublicApi::Context::default();
    let result = client.aRSendApprovalCodeForCustomerInvitationAndLinking(magicLink, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
magicLink*

Responses


aRSubmitApprovalCodeForCustomerInvitationAndLinking

Gets customer invitation using a magic link from a supplier.

Allows an user to get customer invitation using a magic link from a supplier


/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SubmitApprovalCode

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Payments/AccountsReceivable/InvoicePaymentInvitation/{magicLink}/SubmitApprovalCode"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PublicApi;

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String magicLink = magicLink_example; // String | The invitation code

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

final api_instance = DefaultApi();

final String magicLink = new String(); // String | The invitation code

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String magicLink = magicLink_example; // String | The invitation code

        try {
            submitApprovalCodeForCustomerInvitationAndLinkingResponse result = apiInstance.aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#aRSubmitApprovalCodeForCustomerInvitationAndLinking");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *magicLink = magicLink_example; // The invitation code (default to null)

// Gets customer invitation using a magic link from a supplier.
[apiInstance aRSubmitApprovalCodeForCustomerInvitationAndLinkingWith:magicLink
              completionHandler: ^(submitApprovalCodeForCustomerInvitationAndLinkingResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesSupplierPayments = require('spenda_services_supplier_payments');

// Create an instance of the API class
var api = new SpendaServicesSupplierPayments.PublicApi()
var magicLink = magicLink_example; // {String} The invitation code

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var magicLink = magicLink_example;  // String | The invitation code (default to null)

            try {
                // Gets customer invitation using a magic link from a supplier.
                submitApprovalCodeForCustomerInvitationAndLinkingResponse result = apiInstance.aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.aRSubmitApprovalCodeForCustomerInvitationAndLinking: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$magicLink = magicLink_example; // String | The invitation code

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $magicLink = magicLink_example; # String | The invitation code

eval {
    my $result = $api_instance->aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink => $magicLink);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicApi->aRSubmitApprovalCodeForCustomerInvitationAndLinking: $@\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.PublicApi()
magicLink = magicLink_example # String | The invitation code (default to null)

try:
    # Gets customer invitation using a magic link from a supplier.
    api_response = api_instance.a_r_submit_approval_code_for_customer_invitation_and_linking(magicLink)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->aRSubmitApprovalCodeForCustomerInvitationAndLinking: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let magicLink = magicLink_example; // String

    let mut context = PublicApi::Context::default();
    let result = client.aRSubmitApprovalCodeForCustomerInvitationAndLinking(magicLink, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
magicLink*

Responses