accountAuthoriserGet
Gets the collection of authorisers and authorisation rules for a payment account.
Gets the collection of authorisers and authorisation rules for a payment account.
/PaymentServices/Account/{paymentProviderName}/{paymentAccountGUID}/Authorisers
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"https://api.dev.spenda.co/api/PaymentServices/Account/{paymentProviderName}/{paymentAccountGUID}/Authorisers"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsApi;
import java.io.File;
import java.util.*;
public class AccountsApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AccountsApi apiInstance = new AccountsApi();
String paymentProviderName = paymentProviderName_example; // String | Identifier of the Payment Services Provider the account belongs to
UUID paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The identifier of the Payment Account to retrieve the Authorisers.
try {
getAuthorisersResponse result = apiInstance.accountAuthoriserGet(paymentProviderName, paymentAccountGUID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#accountAuthoriserGet");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String paymentProviderName = new String(); // String | Identifier of the Payment Services Provider the account belongs to
final UUID paymentAccountGUID = new UUID(); // UUID | The identifier of the Payment Account to retrieve the Authorisers.
try {
final result = await api_instance.accountAuthoriserGet(paymentProviderName, paymentAccountGUID);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->accountAuthoriserGet: $e\n');
}
import org.openapitools.client.api.AccountsApi;
public class AccountsApiExample {
public static void main(String[] args) {
AccountsApi apiInstance = new AccountsApi();
String paymentProviderName = paymentProviderName_example; // String | Identifier of the Payment Services Provider the account belongs to
UUID paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The identifier of the Payment Account to retrieve the Authorisers.
try {
getAuthorisersResponse result = apiInstance.accountAuthoriserGet(paymentProviderName, paymentAccountGUID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#accountAuthoriserGet");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AccountsApi *apiInstance = [[AccountsApi alloc] init];
String *paymentProviderName = paymentProviderName_example; // Identifier of the Payment Services Provider the account belongs to (default to null)
UUID *paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The identifier of the Payment Account to retrieve the Authorisers. (default to null)
// Gets the collection of authorisers and authorisation rules for a payment account.
[apiInstance accountAuthoriserGetWith:paymentProviderName
paymentAccountGUID:paymentAccountGUID
completionHandler: ^(getAuthorisersResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SpendaServicesPaymentServices = require('spenda_services_payment_services');
// Create an instance of the API class
var api = new SpendaServicesPaymentServices.AccountsApi()
var paymentProviderName = paymentProviderName_example; // {String} Identifier of the Payment Services Provider the account belongs to
var paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The identifier of the Payment Account to retrieve the Authorisers.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.accountAuthoriserGet(paymentProviderName, paymentAccountGUID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class accountAuthoriserGetExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AccountsApi();
var paymentProviderName = paymentProviderName_example; // String | Identifier of the Payment Services Provider the account belongs to (default to null)
var paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The identifier of the Payment Account to retrieve the Authorisers. (default to null)
try {
// Gets the collection of authorisers and authorisation rules for a payment account.
getAuthorisersResponse result = apiInstance.accountAuthoriserGet(paymentProviderName, paymentAccountGUID);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AccountsApi.accountAuthoriserGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsApi();
$paymentProviderName = paymentProviderName_example; // String | Identifier of the Payment Services Provider the account belongs to
$paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The identifier of the Payment Account to retrieve the Authorisers.
try {
$result = $api_instance->accountAuthoriserGet($paymentProviderName, $paymentAccountGUID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->accountAuthoriserGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsApi->new();
my $paymentProviderName = paymentProviderName_example; # String | Identifier of the Payment Services Provider the account belongs to
my $paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The identifier of the Payment Account to retrieve the Authorisers.
eval {
my $result = $api_instance->accountAuthoriserGet(paymentProviderName => $paymentProviderName, paymentAccountGUID => $paymentAccountGUID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountsApi->accountAuthoriserGet: $@\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.AccountsApi()
paymentProviderName = paymentProviderName_example # String | Identifier of the Payment Services Provider the account belongs to (default to null)
paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The identifier of the Payment Account to retrieve the Authorisers. (default to null)
try:
# Gets the collection of authorisers and authorisation rules for a payment account.
api_response = api_instance.account_authoriser_get(paymentProviderName, paymentAccountGUID)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->accountAuthoriserGet: %s\n" % e)
extern crate AccountsApi;
pub fn main() {
let paymentProviderName = paymentProviderName_example; // String
let paymentAccountGUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let mut context = AccountsApi::Context::default();
let result = client.accountAuthoriserGet(paymentProviderName, paymentAccountGUID, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| paymentProviderName* |
String
Identifier of the Payment Services Provider the account belongs to
Required
|
| paymentAccountGUID* |
UUID
(uuid)
The identifier of the Payment Account to retrieve the Authorisers.
Required
|