AS Server - API - ConnectedCustomer

Default

connectedCustomerGet

ConnectedCustomer_Get


/ConnectedCustomer/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/ConnectedCustomer/{id}?filterOnActiveContactsOnly=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        Integer filterOnActiveContactsOnly = 56; // Integer | Format - int32.

        try {
            ConnectedCustomer result = apiInstance.connectedCustomerGet(id, filterOnActiveContactsOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#connectedCustomerGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.
final Integer filterOnActiveContactsOnly = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        Integer filterOnActiveContactsOnly = 56; // Integer | Format - int32.

        try {
            ConnectedCustomer result = apiInstance.connectedCustomerGet(id, filterOnActiveContactsOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#connectedCustomerGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)
Integer *filterOnActiveContactsOnly = 56; // Format - int32. (optional) (default to null)

// ConnectedCustomer_Get
[apiInstance connectedCustomerGetWith:id
    filterOnActiveContactsOnly:filterOnActiveContactsOnly
              completionHandler: ^(ConnectedCustomer output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiConnectedCustomer = require('as_server_api_connected_customer');

// Create an instance of the API class
var api = new AsServerApiConnectedCustomer.DefaultApi()
var id = 56; // {Integer} Format - int32.
var opts = {
  'filterOnActiveContactsOnly': 56 // {Integer} Format - int32.
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)
            var filterOnActiveContactsOnly = 56;  // Integer | Format - int32. (optional)  (default to null)

            try {
                // ConnectedCustomer_Get
                ConnectedCustomer result = apiInstance.connectedCustomerGet(id, filterOnActiveContactsOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.connectedCustomerGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.
$filterOnActiveContactsOnly = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.
my $filterOnActiveContactsOnly = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->connectedCustomerGet(id => $id, filterOnActiveContactsOnly => $filterOnActiveContactsOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->connectedCustomerGet: $@\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.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)
filterOnActiveContactsOnly = 56 # Integer | Format - int32. (optional) (default to null)

try:
    # ConnectedCustomer_Get
    api_response = api_instance.connected_customer_get(id, filterOnActiveContactsOnly=filterOnActiveContactsOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->connectedCustomerGet: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.connectedCustomerGet(id, filterOnActiveContactsOnly, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required
Query parameters
Name Description
filterOnActiveContactsOnly
Integer (int32)
Format - int32.

Responses


connectedCustomerGetLastAlert

ConnectedCustomer_GetLastAlert


/ConnectedCustomer/{id}/lastreminder

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/ConnectedCustomer/{id}/lastreminder"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            LastSentReminder result = apiInstance.connectedCustomerGetLastAlert(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#connectedCustomerGetLastAlert");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)

// ConnectedCustomer_GetLastAlert
[apiInstance connectedCustomerGetLastAlertWith:id
              completionHandler: ^(LastSentReminder output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiConnectedCustomer = require('as_server_api_connected_customer');

// Create an instance of the API class
var api = new AsServerApiConnectedCustomer.DefaultApi()
var id = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)

            try {
                // ConnectedCustomer_GetLastAlert
                LastSentReminder result = apiInstance.connectedCustomerGetLastAlert(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.connectedCustomerGetLastAlert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->connectedCustomerGetLastAlert(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->connectedCustomerGetLastAlert: $@\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.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)

try:
    # ConnectedCustomer_GetLastAlert
    api_response = api_instance.connected_customer_get_last_alert(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->connectedCustomerGetLastAlert: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.connectedCustomerGetLastAlert(id, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required

Responses


connectedCustomerGetLastInvoiceSentReminder

ConnectedCustomer_GetLastInvoiceSentReminder


/ConnectedCustomer/{invoiceId}/lastinvoicesentreminder

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/ConnectedCustomer/{invoiceId}/lastinvoicesentreminder"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer invoiceId = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final Integer invoiceId = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer invoiceId = 56; // Integer | Format - int32.

        try {
            LastSentReminder result = apiInstance.connectedCustomerGetLastInvoiceSentReminder(invoiceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#connectedCustomerGetLastInvoiceSentReminder");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *invoiceId = 56; // Format - int32. (default to null)

// ConnectedCustomer_GetLastInvoiceSentReminder
[apiInstance connectedCustomerGetLastInvoiceSentReminderWith:invoiceId
              completionHandler: ^(LastSentReminder output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiConnectedCustomer = require('as_server_api_connected_customer');

// Create an instance of the API class
var api = new AsServerApiConnectedCustomer.DefaultApi()
var invoiceId = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var invoiceId = 56;  // Integer | Format - int32. (default to null)

            try {
                // ConnectedCustomer_GetLastInvoiceSentReminder
                LastSentReminder result = apiInstance.connectedCustomerGetLastInvoiceSentReminder(invoiceId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.connectedCustomerGetLastInvoiceSentReminder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$invoiceId = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $invoiceId = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->connectedCustomerGetLastInvoiceSentReminder(invoiceId => $invoiceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->connectedCustomerGetLastInvoiceSentReminder: $@\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.DefaultApi()
invoiceId = 56 # Integer | Format - int32. (default to null)

try:
    # ConnectedCustomer_GetLastInvoiceSentReminder
    api_response = api_instance.connected_customer_get_last_invoice_sent_reminder(invoiceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->connectedCustomerGetLastInvoiceSentReminder: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.connectedCustomerGetLastInvoiceSentReminder(invoiceId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invoiceId*
Integer (int32)
Format - int32.
Required

Responses


connectedCustomerGetMerchantSurcharge

ConnectedCustomer_GetMerchantSurcharge


/ConnectedCustomer/{customerID}/merchantsurcharge/{paymentMethod}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/ConnectedCustomer/{customerID}/merchantsurcharge/{paymentMethod}" \
 -d '{
  "AppliedAmountString" : "AppliedAmountString",
  "AmountString" : "AmountString",
  "ClaimDescription" : "ClaimDescription",
  "TransType" : "TransType",
  "GUIDstring" : "GUIDstring",
  "MerchantSurcharge" : 1.0246457001441578,
  "ID" : 3,
  "AppliedCredit" : 7.457744773683766,
  "Status" : "Status",
  "AppliedDate" : "2000-01-23T04:56:07.000+00:00",
  "Amount" : 2.027123023002322,
  "RefNumber" : "RefNumber",
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "AppliedAmount" : 7.386281948385884,
  "TotalInc" : 9.301444243932576,
  "AppliedTransID" : 6,
  "ClaimRequestID" : 1,
  "AppliedDateString" : "AppliedDateString",
  "TransSubType" : "TransSubType",
  "TransTypeID" : 4,
  "BSID" : "BSID",
  "Summary" : "Summary",
  "MerchantSurchargeLineID" : 1,
  "Balance" : 1.2315135367772556,
  "IsEarlyClaimShortPayment" : true
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<null>
  <AmountString>aeiou</AmountString>
  <AppliedAmountString>aeiou</AppliedAmountString>
  <AppliedDateString>aeiou</AppliedDateString>
  <Summary>aeiou</Summary>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <Status>aeiou</Status>
  <TotalInc>3.149</TotalInc>
  <ID>123</ID>
  <GUIDstring>aeiou</GUIDstring>
  <BSID>aeiou</BSID>
  <Amount>3.149</Amount>
  <TransTypeID>123</TransTypeID>
  <TransType>aeiou</TransType>
  <RefNumber>aeiou</RefNumber>
  <AppliedDate>2000-01-23T04:56:07.000Z</AppliedDate>
  <AppliedAmount>3.149</AppliedAmount>
  <Balance>3.149</Balance>
  <MerchantSurcharge>3.149</MerchantSurcharge>
  <MerchantSurchargeLineID>123</MerchantSurchargeLineID>
  <TransSubType>aeiou</TransSubType>
  <AppliedTransID>123</AppliedTransID>
  <AppliedCredit>3.149</AppliedCredit>
  <ClaimRequestID>123</ClaimRequestID>
  <ClaimDescription>aeiou</ClaimDescription>
  <IsEarlyClaimShortPayment>true</IsEarlyClaimShortPayment>
</null>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer customerID = 56; // Integer | Format - int32.
        String paymentMethod = paymentMethod_example; // String | 
        array[RefBusTranT] refBusTranT = [{"AmountString":"string","AppliedAmountString":"string","AppliedDateString":"string","Summary":"string","GUID":"00000000-0000-0000-0000-000000000000","Status":"string","TotalInc":0,"ID":0,"GUIDstring":"string","BSID":"string","Amount":0,"TransTypeID":0,"TransType":"string","RefNumber":"string","AppliedDate":"string","AppliedAmount":0,"Balance":0,"MerchantSurcharge":0,"MerchantSurchargeLineID":0,"TransSubType":"string","AppliedTransID":0,"AppliedCredit":0,"ClaimRequestID":0,"ClaimDescription":"string","IsEarlyClaimShortPayment":true}]; // array[RefBusTranT] | 

        try {
            ActionResults_MerchantSurcharge_ result = apiInstance.connectedCustomerGetMerchantSurcharge(customerID, paymentMethod, refBusTranT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#connectedCustomerGetMerchantSurcharge");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer customerID = new Integer(); // Integer | Format - int32.
final String paymentMethod = new String(); // String | 
final array[RefBusTranT] refBusTranT = new array[RefBusTranT](); // array[RefBusTranT] | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer customerID = 56; // Integer | Format - int32.
        String paymentMethod = paymentMethod_example; // String | 
        array[RefBusTranT] refBusTranT = [{"AmountString":"string","AppliedAmountString":"string","AppliedDateString":"string","Summary":"string","GUID":"00000000-0000-0000-0000-000000000000","Status":"string","TotalInc":0,"ID":0,"GUIDstring":"string","BSID":"string","Amount":0,"TransTypeID":0,"TransType":"string","RefNumber":"string","AppliedDate":"string","AppliedAmount":0,"Balance":0,"MerchantSurcharge":0,"MerchantSurchargeLineID":0,"TransSubType":"string","AppliedTransID":0,"AppliedCredit":0,"ClaimRequestID":0,"ClaimDescription":"string","IsEarlyClaimShortPayment":true}]; // array[RefBusTranT] | 

        try {
            ActionResults_MerchantSurcharge_ result = apiInstance.connectedCustomerGetMerchantSurcharge(customerID, paymentMethod, refBusTranT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#connectedCustomerGetMerchantSurcharge");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *customerID = 56; // Format - int32. (default to null)
String *paymentMethod = paymentMethod_example; //  (default to null)
array[RefBusTranT] *refBusTranT = [{"AmountString":"string","AppliedAmountString":"string","AppliedDateString":"string","Summary":"string","GUID":"00000000-0000-0000-0000-000000000000","Status":"string","TotalInc":0,"ID":0,"GUIDstring":"string","BSID":"string","Amount":0,"TransTypeID":0,"TransType":"string","RefNumber":"string","AppliedDate":"string","AppliedAmount":0,"Balance":0,"MerchantSurcharge":0,"MerchantSurchargeLineID":0,"TransSubType":"string","AppliedTransID":0,"AppliedCredit":0,"ClaimRequestID":0,"ClaimDescription":"string","IsEarlyClaimShortPayment":true}]; //  (optional)

// ConnectedCustomer_GetMerchantSurcharge
[apiInstance connectedCustomerGetMerchantSurchargeWith:customerID
    paymentMethod:paymentMethod
    refBusTranT:refBusTranT
              completionHandler: ^(ActionResults_MerchantSurcharge_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiConnectedCustomer = require('as_server_api_connected_customer');

// Create an instance of the API class
var api = new AsServerApiConnectedCustomer.DefaultApi()
var customerID = 56; // {Integer} Format - int32.
var paymentMethod = paymentMethod_example; // {String} 
var opts = {
  'refBusTranT': [{"AmountString":"string","AppliedAmountString":"string","AppliedDateString":"string","Summary":"string","GUID":"00000000-0000-0000-0000-000000000000","Status":"string","TotalInc":0,"ID":0,"GUIDstring":"string","BSID":"string","Amount":0,"TransTypeID":0,"TransType":"string","RefNumber":"string","AppliedDate":"string","AppliedAmount":0,"Balance":0,"MerchantSurcharge":0,"MerchantSurchargeLineID":0,"TransSubType":"string","AppliedTransID":0,"AppliedCredit":0,"ClaimRequestID":0,"ClaimDescription":"string","IsEarlyClaimShortPayment":true}] // {array[RefBusTranT]} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerID = 56;  // Integer | Format - int32. (default to null)
            var paymentMethod = paymentMethod_example;  // String |  (default to null)
            var refBusTranT = new array[RefBusTranT](); // array[RefBusTranT] |  (optional) 

            try {
                // ConnectedCustomer_GetMerchantSurcharge
                ActionResults_MerchantSurcharge_ result = apiInstance.connectedCustomerGetMerchantSurcharge(customerID, paymentMethod, refBusTranT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.connectedCustomerGetMerchantSurcharge: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerID = 56; // Integer | Format - int32.
$paymentMethod = paymentMethod_example; // String | 
$refBusTranT = [{"AmountString":"string","AppliedAmountString":"string","AppliedDateString":"string","Summary":"string","GUID":"00000000-0000-0000-0000-000000000000","Status":"string","TotalInc":0,"ID":0,"GUIDstring":"string","BSID":"string","Amount":0,"TransTypeID":0,"TransType":"string","RefNumber":"string","AppliedDate":"string","AppliedAmount":0,"Balance":0,"MerchantSurcharge":0,"MerchantSurchargeLineID":0,"TransSubType":"string","AppliedTransID":0,"AppliedCredit":0,"ClaimRequestID":0,"ClaimDescription":"string","IsEarlyClaimShortPayment":true}]; // array[RefBusTranT] | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerID = 56; # Integer | Format - int32.
my $paymentMethod = paymentMethod_example; # String | 
my $refBusTranT = [WWW::OPenAPIClient::Object::array[RefBusTranT]->new()]; # array[RefBusTranT] | 

eval {
    my $result = $api_instance->connectedCustomerGetMerchantSurcharge(customerID => $customerID, paymentMethod => $paymentMethod, refBusTranT => $refBusTranT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->connectedCustomerGetMerchantSurcharge: $@\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.DefaultApi()
customerID = 56 # Integer | Format - int32. (default to null)
paymentMethod = paymentMethod_example # String |  (default to null)
refBusTranT = [{"AmountString":"string","AppliedAmountString":"string","AppliedDateString":"string","Summary":"string","GUID":"00000000-0000-0000-0000-000000000000","Status":"string","TotalInc":0,"ID":0,"GUIDstring":"string","BSID":"string","Amount":0,"TransTypeID":0,"TransType":"string","RefNumber":"string","AppliedDate":"string","AppliedAmount":0,"Balance":0,"MerchantSurcharge":0,"MerchantSurchargeLineID":0,"TransSubType":"string","AppliedTransID":0,"AppliedCredit":0,"ClaimRequestID":0,"ClaimDescription":"string","IsEarlyClaimShortPayment":true}] # array[RefBusTranT] |  (optional)

try:
    # ConnectedCustomer_GetMerchantSurcharge
    api_response = api_instance.connected_customer_get_merchant_surcharge(customerID, paymentMethod, refBusTranT=refBusTranT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->connectedCustomerGetMerchantSurcharge: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerID = 56; // Integer
    let paymentMethod = paymentMethod_example; // String
    let refBusTranT = [{"AmountString":"string","AppliedAmountString":"string","AppliedDateString":"string","Summary":"string","GUID":"00000000-0000-0000-0000-000000000000","Status":"string","TotalInc":0,"ID":0,"GUIDstring":"string","BSID":"string","Amount":0,"TransTypeID":0,"TransType":"string","RefNumber":"string","AppliedDate":"string","AppliedAmount":0,"Balance":0,"MerchantSurcharge":0,"MerchantSurchargeLineID":0,"TransSubType":"string","AppliedTransID":0,"AppliedCredit":0,"ClaimRequestID":0,"ClaimDescription":"string","IsEarlyClaimShortPayment":true}]; // array[RefBusTranT]

    let mut context = DefaultApi::Context::default();
    let result = client.connectedCustomerGetMerchantSurcharge(customerID, paymentMethod, refBusTranT, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
customerID*
Integer (int32)
Format - int32.
Required
paymentMethod*
String
Required
Body parameters
Name Description
refBusTranT

Responses