getBusinessPartnerAccounts
Retrieve all business partner's accounts valid to date
/api/cca/bp/{id}/accounts
Usage and SDK Samples
curl -X GET "https://localhost/core/services/rest/core/api/cca/bp/{id}/accounts?date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CcabusinessPartnerApi;
import java.io.File;
import java.util.*;
public class CcabusinessPartnerApiExample {
public static void main(String[] args) {
CcabusinessPartnerApi apiInstance = new CcabusinessPartnerApi();
Integer id = 56; // Integer | Business partner identifier
date date = 2013-10-20; // date | Date for which accounts should be valid
try {
array[APIBankAccount] result = apiInstance.getBusinessPartnerAccounts(id, date);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CcabusinessPartnerApi#getBusinessPartnerAccounts");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CcabusinessPartnerApi;
public class CcabusinessPartnerApiExample {
public static void main(String[] args) {
CcabusinessPartnerApi apiInstance = new CcabusinessPartnerApi();
Integer id = 56; // Integer | Business partner identifier
date date = 2013-10-20; // date | Date for which accounts should be valid
try {
array[APIBankAccount] result = apiInstance.getBusinessPartnerAccounts(id, date);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CcabusinessPartnerApi#getBusinessPartnerAccounts");
e.printStackTrace();
}
}
}
Integer *id = 56; // Business partner identifier
date *date = 2013-10-20; // Date for which accounts should be valid
CcabusinessPartnerApi *apiInstance = [[CcabusinessPartnerApi alloc] init];
// Retrieve all business partner's accounts valid to date
[apiInstance getBusinessPartnerAccountsWith:id
date:date
completionHandler: ^(array[APIBankAccount] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EmpiricaCoreApi = require('empirica_core_api');
var api = new EmpiricaCoreApi.CcabusinessPartnerApi()
var id = 56; // {Integer} Business partner identifier
var date = 2013-10-20; // {date} Date for which accounts should be valid
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getBusinessPartnerAccounts(id, date, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getBusinessPartnerAccountsExample
{
public void main()
{
var apiInstance = new CcabusinessPartnerApi();
var id = 56; // Integer | Business partner identifier
var date = 2013-10-20; // date | Date for which accounts should be valid
try
{
// Retrieve all business partner's accounts valid to date
array[APIBankAccount] result = apiInstance.getBusinessPartnerAccounts(id, date);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CcabusinessPartnerApi.getBusinessPartnerAccounts: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CcabusinessPartnerApi();
$id = 56; // Integer | Business partner identifier
$date = 2013-10-20; // date | Date for which accounts should be valid
try {
$result = $api_instance->getBusinessPartnerAccounts($id, $date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CcabusinessPartnerApi->getBusinessPartnerAccounts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CcabusinessPartnerApi;
my $api_instance = WWW::SwaggerClient::CcabusinessPartnerApi->new();
my $id = 56; # Integer | Business partner identifier
my $date = 2013-10-20; # date | Date for which accounts should be valid
eval {
my $result = $api_instance->getBusinessPartnerAccounts(id => $id, date => $date);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CcabusinessPartnerApi->getBusinessPartnerAccounts: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CcabusinessPartnerApi()
id = 56 # Integer | Business partner identifier
date = 2013-10-20 # date | Date for which accounts should be valid
try:
# Retrieve all business partner's accounts valid to date
api_response = api_instance.get_business_partner_accounts(id, date)
pprint(api_response)
except ApiException as e:
print("Exception when calling CcabusinessPartnerApi->getBusinessPartnerAccounts: %s\n" % e)
Parameters
Name | Description |
---|---|
id* |
Integer
(int32)
Business partner identifier
Required
|
Name | Description |
---|---|
date* |
date
(date)
Date for which accounts should be valid
Required
|