aPGETAgedPayables
AP_GET_AgedPayables
Gets a collection of Transactions - Purchase Invoices, Credit Notes and Unallocated Payments - grouped by Supplier, that can be used for constructing Payment Batches.
/v3/ap/agedPayables
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json,application/problem+json" \
"https://api.dev.spenda.co/api/v3/ap/agedPayables"
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 {
AgedPayables result = apiInstance.aPGETAgedPayables();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsPayableApi#aPGETAgedPayables");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
try {
final result = await api_instance.aPGETAgedPayables();
print(result);
} catch (e) {
print('Exception when calling DefaultApi->aPGETAgedPayables: $e\n');
}
import org.openapitools.client.api.AccountsPayableApi;
public class AccountsPayableApiExample {
public static void main(String[] args) {
AccountsPayableApi apiInstance = new AccountsPayableApi();
try {
AgedPayables result = apiInstance.aPGETAgedPayables();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsPayableApi#aPGETAgedPayables");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
// AP_GET_AgedPayables
[apiInstance aPGETAgedPayablesWithCompletionHandler:
^(AgedPayables output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SpendaApi = require('spenda_api');
// Create an instance of the API class
var api = new SpendaApi.AccountsPayableApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.aPGETAgedPayables(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class aPGETAgedPayablesExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AccountsPayableApi();
try {
// AP_GET_AgedPayables
AgedPayables result = apiInstance.aPGETAgedPayables();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AccountsPayableApi.aPGETAgedPayables: " + 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->aPGETAgedPayables();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsPayableApi->aPGETAgedPayables: ', $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->aPGETAgedPayables();
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountsPayableApi->aPGETAgedPayables: $@\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:
# AP_GET_AgedPayables
api_response = api_instance.a_pget_aged_payables()
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsPayableApi->aPGETAgedPayables: %s\n" % e)
extern crate AccountsPayableApi;
pub fn main() {
let mut context = AccountsPayableApi::Context::default();
let result = client.aPGETAgedPayables(&context).wait();
println!("{:?}", result);
}