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);
}