customerGetT
Customer_GetT
/v2/Customer/Get
Usage and SDK Samples
curl -X PUT \
-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/v2/Customer/Get" \
-d '{
"WebsiteID" : 5,
"TenantID" : 5,
"UserID" : 2,
"IsGetNewTemplate" : true,
"IsGetExtraInfo" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"IsAutoAddClaimRequests" : true,
"CustomerID" : 0,
"DebtorCode" : "DebtorCode",
"ID" : 1,
"IsReturnEmptyCustomerIfNotFound" : true,
"BusinessID" : 6
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<CustomerEditRequest>
<CustomerID>123</CustomerID>
<BusinessID>123</BusinessID>
<IsAutoAddClaimRequests>true</IsAutoAddClaimRequests>
<DebtorCode>aeiou</DebtorCode>
<IsReturnEmptyCustomerIfNotFound>true</IsReturnEmptyCustomerIfNotFound>
<IsGetNewTemplate>true</IsGetNewTemplate>
<ID>123</ID>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<IsGetExtraInfo>true</IsGetExtraInfo>
<TenantID>123</TenantID>
<WebsiteID>123</WebsiteID>
<UserID>123</UserID>
</CustomerEditRequest>' \
-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();
CustomerEditRequest customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest |
try {
Object result = apiInstance.customerGetT(customerEditRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#customerGetT");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final CustomerEditRequest customerEditRequest = new CustomerEditRequest(); // CustomerEditRequest |
try {
final result = await api_instance.customerGetT(customerEditRequest);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->customerGetT: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
CustomerEditRequest customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest |
try {
Object result = apiInstance.customerGetT(customerEditRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#customerGetT");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerEditRequest *customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // (optional)
// Customer_GetT
[apiInstance customerGetTWith:customerEditRequest
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiCustomerV2 = require('as_server_api_customer_v2');
// Create an instance of the API class
var api = new AsServerApiCustomerV2.DefaultApi()
var opts = {
'customerEditRequest': {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerEditRequest}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.customerGetT(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class customerGetTExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var customerEditRequest = new CustomerEditRequest(); // CustomerEditRequest | (optional)
try {
// Customer_GetT
Object result = apiInstance.customerGetT(customerEditRequest);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.customerGetT: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest |
try {
$result = $api_instance->customerGetT($customerEditRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->customerGetT: ', $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 $customerEditRequest = WWW::OPenAPIClient::Object::CustomerEditRequest->new(); # CustomerEditRequest |
eval {
my $result = $api_instance->customerGetT(customerEditRequest => $customerEditRequest);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->customerGetT: $@\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()
customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerEditRequest | (optional)
try:
# Customer_GetT
api_response = api_instance.customer_get_t(customerEditRequest=customerEditRequest)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->customerGetT: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest
let mut context = DefaultApi::Context::default();
let result = client.customerGetT(customerEditRequest, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Body parameters
| Name | Description |
|---|---|
| customerEditRequest |