OpenTHC API

Authentication

authOpen

Authenticate to the System

Authenticates to the system with a username & password or other credentials, responds with a cookie and a session identifer


/auth/open

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/auth/open"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationApi;

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

public class AuthenticationApiExample {

    public static void main(String[] args) {
        
        AuthenticationApi apiInstance = new AuthenticationApi();
        String cre = cre_example; // String | 
        String serviceKey = serviceKey_example; // String | 
        String company = company_example; // String | 
        String license = license_example; // String | 
        String licenseKey = licenseKey_example; // String | 
        String username = username_example; // String | 
        String password = password_example; // String | 
        try {
            inline_response_200 result = apiInstance.authOpen(cre, serviceKey, company, license, licenseKey, username, password);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#authOpen");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationApi;

public class AuthenticationApiExample {

    public static void main(String[] args) {
        AuthenticationApi apiInstance = new AuthenticationApi();
        String cre = cre_example; // String | 
        String serviceKey = serviceKey_example; // String | 
        String company = company_example; // String | 
        String license = license_example; // String | 
        String licenseKey = licenseKey_example; // String | 
        String username = username_example; // String | 
        String password = password_example; // String | 
        try {
            inline_response_200 result = apiInstance.authOpen(cre, serviceKey, company, license, licenseKey, username, password);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#authOpen");
            e.printStackTrace();
        }
    }
}
String *cre = cre_example; // 
String *serviceKey = serviceKey_example; // 
String *company = company_example; // 
String *license = license_example; // 
String *licenseKey = licenseKey_example; // 
String *username = username_example; // 
String *password = password_example; // 

AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];

// Authenticate to the System
[apiInstance authOpenWith:cre
    serviceKey:serviceKey
    company:company
    license:license
    licenseKey:licenseKey
    username:username
    password:password
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.AuthenticationApi()
var cre = cre_example; // {{String}} 
var serviceKey = serviceKey_example; // {{String}} 
var company = company_example; // {{String}} 
var license = license_example; // {{String}} 
var licenseKey = licenseKey_example; // {{String}} 
var username = username_example; // {{String}} 
var password = password_example; // {{String}} 

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

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

            var apiInstance = new AuthenticationApi();
            var cre = cre_example;  // String | 
            var serviceKey = serviceKey_example;  // String | 
            var company = company_example;  // String | 
            var license = license_example;  // String | 
            var licenseKey = licenseKey_example;  // String | 
            var username = username_example;  // String | 
            var password = password_example;  // String | 

            try
            {
                // Authenticate to the System
                inline_response_200 result = apiInstance.authOpen(cre, serviceKey, company, license, licenseKey, username, password);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.authOpen: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationApi();
$cre = cre_example; // String | 
$serviceKey = serviceKey_example; // String | 
$company = company_example; // String | 
$license = license_example; // String | 
$licenseKey = licenseKey_example; // String | 
$username = username_example; // String | 
$password = password_example; // String | 

try {
    $result = $api_instance->authOpen($cre, $serviceKey, $company, $license, $licenseKey, $username, $password);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationApi->authOpen: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationApi;

my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();
my $cre = cre_example; # String | 
my $serviceKey = serviceKey_example; # String | 
my $company = company_example; # String | 
my $license = license_example; # String | 
my $licenseKey = licenseKey_example; # String | 
my $username = username_example; # String | 
my $password = password_example; # String | 

eval { 
    my $result = $api_instance->authOpen(cre => $cre, serviceKey => $serviceKey, company => $company, license => $license, licenseKey => $licenseKey, username => $username, password => $password);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationApi->authOpen: $@\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.AuthenticationApi()
cre = cre_example # String | 
serviceKey = serviceKey_example # String | 
company = company_example # String | 
license = license_example # String | 
licenseKey = licenseKey_example # String | 
username = username_example # String | 
password = password_example # String | 

try: 
    # Authenticate to the System
    api_response = api_instance.auth_open(cre, serviceKey, company, license, licenseKey, username, password)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->authOpen: %s\n" % e)

Parameters

Form parameters
Name Description
cre*
String
Required
service-key*
String
Required
company*
String
Required
license*
String
Required
license-key*
String
Required
username*
String
Required
password*
String
Required

Responses

Status: 200 - Success! Responds with a Set-Cookie and also provides the session token via data

Status: 400 - General Failure Response

Status: 403 - General Failure Response


authPing

Validate a Session Token

Verify a Session Token is still valid, provide one of the following parameters


/auth/ping

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/auth/ping"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationApi;

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

public class AuthenticationApiExample {

    public static void main(String[] args) {
        
        AuthenticationApi apiInstance = new AuthenticationApi();
        String authorization = authorization_example; // String | JWT provided via Bearer token, it's probablly the best one to use
        String openthc = openthc_example; // String | Session ID provided via cookie
        try {
            inline_response_200_1 result = apiInstance.authPing(authorization, openthc);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#authPing");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationApi;

public class AuthenticationApiExample {

    public static void main(String[] args) {
        AuthenticationApi apiInstance = new AuthenticationApi();
        String authorization = authorization_example; // String | JWT provided via Bearer token, it's probablly the best one to use
        String openthc = openthc_example; // String | Session ID provided via cookie
        try {
            inline_response_200_1 result = apiInstance.authPing(authorization, openthc);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#authPing");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // JWT provided via Bearer token, it's probablly the best one to use (optional)
String *openthc = openthc_example; // Session ID provided via cookie (optional)

AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];

// Validate a Session Token
[apiInstance authPingWith:authorization
    openthc:openthc
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.AuthenticationApi()
var opts = { 
  'authorization': authorization_example, // {{String}} JWT provided via Bearer token, it's probablly the best one to use
  'openthc': openthc_example // {{String}} Session ID provided via cookie
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authPing(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AuthenticationApi();
            var authorization = authorization_example;  // String | JWT provided via Bearer token, it's probablly the best one to use (optional) 
            var openthc = openthc_example;  // String | Session ID provided via cookie (optional) 

            try
            {
                // Validate a Session Token
                inline_response_200_1 result = apiInstance.authPing(authorization, openthc);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.authPing: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationApi();
$authorization = authorization_example; // String | JWT provided via Bearer token, it's probablly the best one to use
$openthc = openthc_example; // String | Session ID provided via cookie

try {
    $result = $api_instance->authPing($authorization, $openthc);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationApi->authPing: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationApi;

my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();
my $authorization = authorization_example; # String | JWT provided via Bearer token, it's probablly the best one to use
my $openthc = openthc_example; # String | Session ID provided via cookie

eval { 
    my $result = $api_instance->authPing(authorization => $authorization, openthc => $openthc);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationApi->authPing: $@\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.AuthenticationApi()
authorization = authorization_example # String | JWT provided via Bearer token, it's probablly the best one to use (optional)
openthc = openthc_example # String | Session ID provided via cookie (optional)

try: 
    # Validate a Session Token
    api_response = api_instance.auth_ping(authorization=authorization, openthc=openthc)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->authPing: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization
String
JWT provided via Bearer token, it's probablly the best one to use
openthc
String
Session ID provided via cookie

Responses

Status: 200 - Success!

Status: 403 - Failure!


authShut

Close the Session

Terminates the session, cleans up any lingering cache data, not required


/auth/shut

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/auth/shut"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationApi;

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

public class AuthenticationApiExample {

    public static void main(String[] args) {
        
        AuthenticationApi apiInstance = new AuthenticationApi();
        String authorization = authorization_example; // String | JWT provided via Bearer token
        String openthc = openthc_example; // String | SID provided via cookie
        try {
            apiInstance.authShut(authorization, openthc);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#authShut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationApi;

public class AuthenticationApiExample {

    public static void main(String[] args) {
        AuthenticationApi apiInstance = new AuthenticationApi();
        String authorization = authorization_example; // String | JWT provided via Bearer token
        String openthc = openthc_example; // String | SID provided via cookie
        try {
            apiInstance.authShut(authorization, openthc);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#authShut");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // JWT provided via Bearer token (optional)
String *openthc = openthc_example; // SID provided via cookie (optional)

AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];

// Close the Session
[apiInstance authShutWith:authorization
    openthc:openthc
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.AuthenticationApi()
var opts = { 
  'authorization': authorization_example, // {{String}} JWT provided via Bearer token
  'openthc': openthc_example // {{String}} SID provided via cookie
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.authShut(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AuthenticationApi();
            var authorization = authorization_example;  // String | JWT provided via Bearer token (optional) 
            var openthc = openthc_example;  // String | SID provided via cookie (optional) 

            try
            {
                // Close the Session
                apiInstance.authShut(authorization, openthc);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.authShut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationApi();
$authorization = authorization_example; // String | JWT provided via Bearer token
$openthc = openthc_example; // String | SID provided via cookie

try {
    $api_instance->authShut($authorization, $openthc);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationApi->authShut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationApi;

my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();
my $authorization = authorization_example; # String | JWT provided via Bearer token
my $openthc = openthc_example; # String | SID provided via cookie

eval { 
    $api_instance->authShut(authorization => $authorization, openthc => $openthc);
};
if ($@) {
    warn "Exception when calling AuthenticationApi->authShut: $@\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.AuthenticationApi()
authorization = authorization_example # String | JWT provided via Bearer token (optional)
openthc = openthc_example # String | SID provided via cookie (optional)

try: 
    # Close the Session
    api_instance.auth_shut(authorization=authorization, openthc=openthc)
except ApiException as e:
    print("Exception when calling AuthenticationApi->authShut: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization
String
JWT provided via Bearer token
openthc
String
SID provided via cookie

Responses

Status: 201 - No Content

Status: 403 - General Failure Response


B2BTransaction

b2bGet

Get Export or Import B2B Transaction List


/b2b

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b?type=&q=&dt0=&dt1="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String type = type_example; // String | Type of B2B Transaction
        String q = q_example; // String | Generic Search Operator
        String dt0 = dt0_example; // String | 
        String dt1 = dt1_example; // String | 
        try {
            array[B2B_Sale] result = apiInstance.b2bGet(type, q, dt0, dt1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String type = type_example; // String | Type of B2B Transaction
        String q = q_example; // String | Generic Search Operator
        String dt0 = dt0_example; // String | 
        String dt1 = dt1_example; // String | 
        try {
            array[B2B_Sale] result = apiInstance.b2bGet(type, q, dt0, dt1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bGet");
            e.printStackTrace();
        }
    }
}
String *type = type_example; // Type of B2B Transaction (optional)
String *q = q_example; // Generic Search Operator (optional)
String *dt0 = dt0_example; //  (optional)
String *dt1 = dt1_example; //  (optional)

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Get Export or Import B2B Transaction List
[apiInstance b2bGetWith:type
    q:q
    dt0:dt0
    dt1:dt1
              completionHandler: ^(array[B2B_Sale] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var opts = { 
  'type': type_example, // {{String}} Type of B2B Transaction
  'q': q_example, // {{String}} Generic Search Operator
  'dt0': dt0_example, // {{String}} 
  'dt1': dt1_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.b2bGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();
            var type = type_example;  // String | Type of B2B Transaction (optional) 
            var q = q_example;  // String | Generic Search Operator (optional) 
            var dt0 = dt0_example;  // String |  (optional) 
            var dt1 = dt1_example;  // String |  (optional) 

            try
            {
                // Get Export or Import B2B Transaction List
                array[B2B_Sale] result = apiInstance.b2bGet(type, q, dt0, dt1);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$type = type_example; // String | Type of B2B Transaction
$q = q_example; // String | Generic Search Operator
$dt0 = dt0_example; // String | 
$dt1 = dt1_example; // String | 

try {
    $result = $api_instance->b2bGet($type, $q, $dt0, $dt1);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $type = type_example; # String | Type of B2B Transaction
my $q = q_example; # String | Generic Search Operator
my $dt0 = dt0_example; # String | 
my $dt1 = dt1_example; # String | 

eval { 
    my $result = $api_instance->b2bGet(type => $type, q => $q, dt0 => $dt0, dt1 => $dt1);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bGet: $@\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.B2BTransactionApi()
type = type_example # String | Type of B2B Transaction (optional)
q = q_example # String | Generic Search Operator (optional)
dt0 = dt0_example # String |  (optional)
dt1 = dt1_example # String |  (optional)

try: 
    # Get Export or Import B2B Transaction List
    api_response = api_instance.b2b_get(type=type, q=q, dt0=dt0, dt1=dt1)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bGet: %s\n" % e)

Parameters

Query parameters
Name Description
type
String
Type of B2B Transaction
q
String
Generic Search Operator
dt0
String (dateTime)
dt1
String (dateTime)

Responses

Status: 200 - Success


b2bIncomingGet

Get Export B2B Transaction List


/b2b/incoming

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/incoming"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        try {
            array[B2B_Sale] result = apiInstance.b2bIncomingGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        try {
            array[B2B_Sale] result = apiInstance.b2bIncomingGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingGet");
            e.printStackTrace();
        }
    }
}

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Get Export B2B Transaction List
[apiInstance b2bIncomingGetWithCompletionHandler: 
              ^(array[B2B_Sale] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.b2bIncomingGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();

            try
            {
                // Get Export B2B Transaction List
                array[B2B_Sale] result = apiInstance.b2bIncomingGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bIncomingGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();

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

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();

eval { 
    my $result = $api_instance->b2bIncomingGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bIncomingGet: $@\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.B2BTransactionApi()

try: 
    # Get Export B2B Transaction List
    api_response = api_instance.b2b_incoming_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bIncomingGet: %s\n" % e)

Parameters

Responses

Status: 200 - Success


b2bIncomingIdCommitPost

Commit a B2B Transaction


/b2b/incoming/{id}/commit

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/incoming/{id}/commit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bIncomingIdCommitPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdCommitPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bIncomingIdCommitPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdCommitPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Commit a B2B Transaction
[apiInstance b2bIncomingIdCommitPostWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.b2bIncomingIdCommitPost(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Commit a B2B Transaction
                apiInstance.b2bIncomingIdCommitPost(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bIncomingIdCommitPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | Unique ULID value for this B2B Transaction

try {
    $api_instance->b2bIncomingIdCommitPost($id);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bIncomingIdCommitPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    $api_instance->b2bIncomingIdCommitPost(id => $id);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bIncomingIdCommitPost: $@\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.B2BTransactionApi()
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Commit a B2B Transaction
    api_instance.b2b_incoming_id_commit_post(id)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bIncomingIdCommitPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required

Responses

Status: 200 - Success

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


b2bIncomingIdDelete

Void the B2B Transaction


/b2b/incoming/{id}

Usage and SDK Samples

curl -X DELETE\
"https://YOUR_HOST/YOUR/PATH/b2b/incoming/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bIncomingIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bIncomingIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Void the B2B Transaction
[apiInstance b2bIncomingIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.b2bIncomingIdDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Void the B2B Transaction
                apiInstance.b2bIncomingIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bIncomingIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | Unique ULID value for this B2B Transaction

try {
    $api_instance->b2bIncomingIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bIncomingIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    $api_instance->b2bIncomingIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bIncomingIdDelete: $@\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.B2BTransactionApi()
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Void the B2B Transaction
    api_instance.b2b_incoming_id_delete(id)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bIncomingIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required

Responses

Status: 202 - Delete Requested

Status: 204 - Delete Confirmed


b2bIncomingIdGet

Get Specific B2B Transaction


/b2b/incoming/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/incoming/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            B2B_Sale result = apiInstance.b2bIncomingIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            B2B_Sale result = apiInstance.b2bIncomingIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Get Specific B2B Transaction
[apiInstance b2bIncomingIdGetWith:id
              completionHandler: ^(B2B_Sale output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

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

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Get Specific B2B Transaction
                B2B_Sale result = apiInstance.b2bIncomingIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bIncomingIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | Unique ULID value for this B2B Transaction

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

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    my $result = $api_instance->b2bIncomingIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bIncomingIdGet: $@\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.B2BTransactionApi()
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Get Specific B2B Transaction
    api_response = api_instance.b2b_incoming_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bIncomingIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required

Responses

Status: 200 - Success


b2bIncomingIdPost

Update a B2B Transaction


/b2b/incoming/{id}

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/b2b/incoming/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String contact = contact_example; // String | 
        String vehicle = vehicle_example; // String | 
        String departAt = departAt_example; // String | 
        String arriveAt = arriveAt_example; // String | 
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bIncomingIdPost(contact, vehicle, departAt, arriveAt, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String contact = contact_example; // String | 
        String vehicle = vehicle_example; // String | 
        String departAt = departAt_example; // String | 
        String arriveAt = arriveAt_example; // String | 
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bIncomingIdPost(contact, vehicle, departAt, arriveAt, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bIncomingIdPost");
            e.printStackTrace();
        }
    }
}
String *contact = contact_example; // 
String *vehicle = vehicle_example; // 
String *departAt = departAt_example; // 
String *arriveAt = arriveAt_example; // 
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Update a B2B Transaction
[apiInstance b2bIncomingIdPostWith:contact
    vehicle:vehicle
    departAt:departAt
    arriveAt:arriveAt
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var contact = contact_example; // {{String}} 
var vehicle = vehicle_example; // {{String}} 
var departAt = departAt_example; // {{String}} 
var arriveAt = arriveAt_example; // {{String}} 
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.b2bIncomingIdPost(contactvehicledepartAtarriveAtid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();
            var contact = contact_example;  // String | 
            var vehicle = vehicle_example;  // String | 
            var departAt = departAt_example;  // String | 
            var arriveAt = arriveAt_example;  // String | 
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Update a B2B Transaction
                apiInstance.b2bIncomingIdPost(contact, vehicle, departAt, arriveAt, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bIncomingIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$contact = contact_example; // String | 
$vehicle = vehicle_example; // String | 
$departAt = departAt_example; // String | 
$arriveAt = arriveAt_example; // String | 
$id = id_example; // String | Unique ULID value for this B2B Transaction

try {
    $api_instance->b2bIncomingIdPost($contact, $vehicle, $departAt, $arriveAt, $id);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bIncomingIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $contact = contact_example; # String | 
my $vehicle = vehicle_example; # String | 
my $departAt = departAt_example; # String | 
my $arriveAt = arriveAt_example; # String | 
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    $api_instance->b2bIncomingIdPost(contact => $contact, vehicle => $vehicle, departAt => $departAt, arriveAt => $arriveAt, id => $id);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bIncomingIdPost: $@\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.B2BTransactionApi()
contact = contact_example # String | 
vehicle = vehicle_example # String | 
departAt = departAt_example # String | 
arriveAt = arriveAt_example # String | 
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Update a B2B Transaction
    api_instance.b2b_incoming_id_post(contact, vehicle, departAt, arriveAt, id)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bIncomingIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required
Form parameters
Name Description
contact*
String
Required
vehicle*
String
Required
depart_at*
String (dateTime)
Required
arrive_at*
String (dateTime)
Required

Responses

Status: 200 - Success


b2bOutgoingGet

Get Export B2B Transaction List


/b2b/outgoing

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        try {
            array[B2B_Sale] result = apiInstance.b2bOutgoingGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        try {
            array[B2B_Sale] result = apiInstance.b2bOutgoingGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingGet");
            e.printStackTrace();
        }
    }
}

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Get Export B2B Transaction List
[apiInstance b2bOutgoingGetWithCompletionHandler: 
              ^(array[B2B_Sale] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.b2bOutgoingGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();

            try
            {
                // Get Export B2B Transaction List
                array[B2B_Sale] result = apiInstance.b2bOutgoingGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();

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

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();

eval { 
    my $result = $api_instance->b2bOutgoingGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingGet: $@\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.B2BTransactionApi()

try: 
    # Get Export B2B Transaction List
    api_response = api_instance.b2b_outgoing_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingGet: %s\n" % e)

Parameters

Responses

Status: 200 - Success


b2bOutgoingIdCommitPost

Commit a B2B Transaction


/b2b/outgoing/{id}/commit

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}/commit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bOutgoingIdCommitPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdCommitPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bOutgoingIdCommitPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdCommitPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Commit a B2B Transaction
[apiInstance b2bOutgoingIdCommitPostWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.b2bOutgoingIdCommitPost(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Commit a B2B Transaction
                apiInstance.b2bOutgoingIdCommitPost(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdCommitPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | Unique ULID value for this B2B Transaction

try {
    $api_instance->b2bOutgoingIdCommitPost($id);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bOutgoingIdCommitPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    $api_instance->b2bOutgoingIdCommitPost(id => $id);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdCommitPost: $@\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.B2BTransactionApi()
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Commit a B2B Transaction
    api_instance.b2b_outgoing_id_commit_post(id)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdCommitPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required

Responses

Status: 200 - Success

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


b2bOutgoingIdDelete

Void the B2B Transaction


/b2b/outgoing/{id}

Usage and SDK Samples

curl -X DELETE\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bOutgoingIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bOutgoingIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Void the B2B Transaction
[apiInstance b2bOutgoingIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.b2bOutgoingIdDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Void the B2B Transaction
                apiInstance.b2bOutgoingIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | Unique ULID value for this B2B Transaction

try {
    $api_instance->b2bOutgoingIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bOutgoingIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    $api_instance->b2bOutgoingIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdDelete: $@\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.B2BTransactionApi()
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Void the B2B Transaction
    api_instance.b2b_outgoing_id_delete(id)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required

Responses

Status: 202 - Delete Requested

Status: 204 - Delete Confirmed


b2bOutgoingIdFileFidGet

Get File Attachments


/b2b/outgoing/{id}/file/{fid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}/file/{fid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | The B2B Transaction ID
        String fid = fid_example; // String | The File ID
        try {
            array[B2B_Sale] result = apiInstance.b2bOutgoingIdFileFidGet(id, fid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdFileFidGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | The B2B Transaction ID
        String fid = fid_example; // String | The File ID
        try {
            array[B2B_Sale] result = apiInstance.b2bOutgoingIdFileFidGet(id, fid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdFileFidGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // The B2B Transaction ID
String *fid = fid_example; // The File ID

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Get File Attachments
[apiInstance b2bOutgoingIdFileFidGetWith:id
    fid:fid
              completionHandler: ^(array[B2B_Sale] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} The B2B Transaction ID
var fid = fid_example; // {{String}} The File ID

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

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | The B2B Transaction ID
            var fid = fid_example;  // String | The File ID

            try
            {
                // Get File Attachments
                array[B2B_Sale] result = apiInstance.b2bOutgoingIdFileFidGet(id, fid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdFileFidGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | The B2B Transaction ID
$fid = fid_example; // String | The File ID

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

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | The B2B Transaction ID
my $fid = fid_example; # String | The File ID

eval { 
    my $result = $api_instance->b2bOutgoingIdFileFidGet(id => $id, fid => $fid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdFileFidGet: $@\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.B2BTransactionApi()
id = id_example # String | The B2B Transaction ID
fid = fid_example # String | The File ID

try: 
    # Get File Attachments
    api_response = api_instance.b2b_outgoing_id_file_fid_get(id, fid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdFileFidGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The B2B Transaction ID
Required
fid*
String
The File ID
Required

Responses

Status: 200 - Success


b2bOutgoingIdFilePost

Create B2B Transaction File Attachment

Create a B2B Transaction File Attachment


/b2b/outgoing/{id}/file

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}/file"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String type = type_example; // String | 
        License origin = ; // License | 
        License target = ; // License | 
        String depart = depart_example; // String | 
        String arrive = arrive_example; // String | 
        String id = id_example; // String | The B2B Transaction ID
        try {
            B2B_File result = apiInstance.b2bOutgoingIdFilePost(type, origin, target, depart, arrive, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdFilePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String type = type_example; // String | 
        License origin = ; // License | 
        License target = ; // License | 
        String depart = depart_example; // String | 
        String arrive = arrive_example; // String | 
        String id = id_example; // String | The B2B Transaction ID
        try {
            B2B_File result = apiInstance.b2bOutgoingIdFilePost(type, origin, target, depart, arrive, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdFilePost");
            e.printStackTrace();
        }
    }
}
String *type = type_example; // 
License *origin = ; // 
License *target = ; // 
String *depart = depart_example; // 
String *arrive = arrive_example; // 
String *id = id_example; // The B2B Transaction ID

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Create B2B Transaction File Attachment
[apiInstance b2bOutgoingIdFilePostWith:type
    origin:origin
    target:target
    depart:depart
    arrive:arrive
    id:id
              completionHandler: ^(B2B_File output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var type = type_example; // {{String}} 
var origin = ; // {{License}} 
var target = ; // {{License}} 
var depart = depart_example; // {{String}} 
var arrive = arrive_example; // {{String}} 
var id = id_example; // {{String}} The B2B Transaction ID

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

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

            var apiInstance = new B2BTransactionApi();
            var type = type_example;  // String | 
            var origin = new License(); // License | 
            var target = new License(); // License | 
            var depart = depart_example;  // String | 
            var arrive = arrive_example;  // String | 
            var id = id_example;  // String | The B2B Transaction ID

            try
            {
                // Create B2B Transaction File Attachment
                B2B_File result = apiInstance.b2bOutgoingIdFilePost(type, origin, target, depart, arrive, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdFilePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$type = type_example; // String | 
$origin = ; // License | 
$target = ; // License | 
$depart = depart_example; // String | 
$arrive = arrive_example; // String | 
$id = id_example; // String | The B2B Transaction ID

try {
    $result = $api_instance->b2bOutgoingIdFilePost($type, $origin, $target, $depart, $arrive, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bOutgoingIdFilePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $type = type_example; # String | 
my $origin = ; # License | 
my $target = ; # License | 
my $depart = depart_example; # String | 
my $arrive = arrive_example; # String | 
my $id = id_example; # String | The B2B Transaction ID

eval { 
    my $result = $api_instance->b2bOutgoingIdFilePost(type => $type, origin => $origin, target => $target, depart => $depart, arrive => $arrive, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdFilePost: $@\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.B2BTransactionApi()
type = type_example # String | 
origin =  # License | 
target =  # License | 
depart = depart_example # String | 
arrive = arrive_example # String | 
id = id_example # String | The B2B Transaction ID

try: 
    # Create B2B Transaction File Attachment
    api_response = api_instance.b2b_outgoing_id_file_post(type, origin, target, depart, arrive, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdFilePost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The B2B Transaction ID
Required
Form parameters
Name Description
type*
String
Enum: incoming, outgoing
Required
origin*
License
Required
target*
License
Required
depart*
String (dateTime)
Required
arrive*
String (dateTime)
Required

Responses

Status: 201 - Success


b2bOutgoingIdGet

Get Specific B2B Transaction


/b2b/outgoing/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            B2B_Sale result = apiInstance.b2bOutgoingIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            B2B_Sale result = apiInstance.b2bOutgoingIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Get Specific B2B Transaction
[apiInstance b2bOutgoingIdGetWith:id
              completionHandler: ^(B2B_Sale output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

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

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Get Specific B2B Transaction
                B2B_Sale result = apiInstance.b2bOutgoingIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | Unique ULID value for this B2B Transaction

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

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    my $result = $api_instance->b2bOutgoingIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdGet: $@\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.B2BTransactionApi()
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Get Specific B2B Transaction
    api_response = api_instance.b2b_outgoing_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required

Responses

Status: 200 - Success


b2bOutgoingIdItemIidGet

Get a single B2B Transaction Item


/b2b/outgoing/{id}/item/{iid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}/item/{iid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String iid = iid_example; // String | 
        try {
            array[B2B_Sale_Item] result = apiInstance.b2bOutgoingIdItemIidGet(iid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdItemIidGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String iid = iid_example; // String | 
        try {
            array[B2B_Sale_Item] result = apiInstance.b2bOutgoingIdItemIidGet(iid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdItemIidGet");
            e.printStackTrace();
        }
    }
}
String *iid = iid_example; // 

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Get a single B2B Transaction Item
[apiInstance b2bOutgoingIdItemIidGetWith:iid
              completionHandler: ^(array[B2B_Sale_Item] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var iid = iid_example; // {{String}} 

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

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

            var apiInstance = new B2BTransactionApi();
            var iid = iid_example;  // String | 

            try
            {
                // Get a single B2B Transaction Item
                array[B2B_Sale_Item] result = apiInstance.b2bOutgoingIdItemIidGet(iid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdItemIidGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$iid = iid_example; // String | 

try {
    $result = $api_instance->b2bOutgoingIdItemIidGet($iid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bOutgoingIdItemIidGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $iid = iid_example; # String | 

eval { 
    my $result = $api_instance->b2bOutgoingIdItemIidGet(iid => $iid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdItemIidGet: $@\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.B2BTransactionApi()
iid = iid_example # String | 

try: 
    # Get a single B2B Transaction Item
    api_response = api_instance.b2b_outgoing_id_item_iid_get(iid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdItemIidGet: %s\n" % e)

Parameters

Path parameters
Name Description
iid*
String
Required

Responses

Status: 200 - Success


b2bOutgoingIdItemPost

Create a B2B Transaction Item


/b2b/outgoing/{id}/item

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}/item"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | 
        try {
            array[B2B_Sale] result = apiInstance.b2bOutgoingIdItemPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdItemPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String id = id_example; // String | 
        try {
            array[B2B_Sale] result = apiInstance.b2bOutgoingIdItemPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdItemPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Create a B2B Transaction Item
[apiInstance b2bOutgoingIdItemPostWith:id
              completionHandler: ^(array[B2B_Sale] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var id = id_example; // {{String}} 

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

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

            var apiInstance = new B2BTransactionApi();
            var id = id_example;  // String | 

            try
            {
                // Create a B2B Transaction Item
                array[B2B_Sale] result = apiInstance.b2bOutgoingIdItemPost(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdItemPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$id = id_example; // String | 

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

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->b2bOutgoingIdItemPost(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdItemPost: $@\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.B2BTransactionApi()
id = id_example # String | 

try: 
    # Create a B2B Transaction Item
    api_response = api_instance.b2b_outgoing_id_item_post(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdItemPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Success


b2bOutgoingIdPost

Update a B2B Transaction


/b2b/outgoing/{id}

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/b2b/outgoing/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String contact = contact_example; // String | 
        String vehicle = vehicle_example; // String | 
        String departAt = departAt_example; // String | 
        String arriveAt = arriveAt_example; // String | 
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bOutgoingIdPost(contact, vehicle, departAt, arriveAt, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String contact = contact_example; // String | 
        String vehicle = vehicle_example; // String | 
        String departAt = departAt_example; // String | 
        String arriveAt = arriveAt_example; // String | 
        String id = id_example; // String | Unique ULID value for this B2B Transaction
        try {
            apiInstance.b2bOutgoingIdPost(contact, vehicle, departAt, arriveAt, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bOutgoingIdPost");
            e.printStackTrace();
        }
    }
}
String *contact = contact_example; // 
String *vehicle = vehicle_example; // 
String *departAt = departAt_example; // 
String *arriveAt = arriveAt_example; // 
String *id = id_example; // Unique ULID value for this B2B Transaction

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Update a B2B Transaction
[apiInstance b2bOutgoingIdPostWith:contact
    vehicle:vehicle
    departAt:departAt
    arriveAt:arriveAt
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var contact = contact_example; // {{String}} 
var vehicle = vehicle_example; // {{String}} 
var departAt = departAt_example; // {{String}} 
var arriveAt = arriveAt_example; // {{String}} 
var id = id_example; // {{String}} Unique ULID value for this B2B Transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.b2bOutgoingIdPost(contactvehicledepartAtarriveAtid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2BTransactionApi();
            var contact = contact_example;  // String | 
            var vehicle = vehicle_example;  // String | 
            var departAt = departAt_example;  // String | 
            var arriveAt = arriveAt_example;  // String | 
            var id = id_example;  // String | Unique ULID value for this B2B Transaction

            try
            {
                // Update a B2B Transaction
                apiInstance.b2bOutgoingIdPost(contact, vehicle, departAt, arriveAt, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bOutgoingIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$contact = contact_example; // String | 
$vehicle = vehicle_example; // String | 
$departAt = departAt_example; // String | 
$arriveAt = arriveAt_example; // String | 
$id = id_example; // String | Unique ULID value for this B2B Transaction

try {
    $api_instance->b2bOutgoingIdPost($contact, $vehicle, $departAt, $arriveAt, $id);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bOutgoingIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $contact = contact_example; # String | 
my $vehicle = vehicle_example; # String | 
my $departAt = departAt_example; # String | 
my $arriveAt = arriveAt_example; # String | 
my $id = id_example; # String | Unique ULID value for this B2B Transaction

eval { 
    $api_instance->b2bOutgoingIdPost(contact => $contact, vehicle => $vehicle, departAt => $departAt, arriveAt => $arriveAt, id => $id);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bOutgoingIdPost: $@\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.B2BTransactionApi()
contact = contact_example # String | 
vehicle = vehicle_example # String | 
departAt = departAt_example # String | 
arriveAt = arriveAt_example # String | 
id = id_example # String | Unique ULID value for this B2B Transaction

try: 
    # Update a B2B Transaction
    api_instance.b2b_outgoing_id_post(contact, vehicle, departAt, arriveAt, id)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bOutgoingIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this B2B Transaction
Required
Form parameters
Name Description
contact*
String
Required
vehicle*
String
Required
depart_at*
String (dateTime)
Required
arrive_at*
String (dateTime)
Required

Responses

Status: 200 - Success


b2bPost

Create B2B Transaction

Create a B2B Transaction


/b2b

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/b2b"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2BTransactionApi;

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

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String type = type_example; // String | 
        License origin = ; // License | 
        License target = ; // License | 
        String depart = depart_example; // String | 
        String arrive = arrive_example; // String | 
        try {
            B2B_Sale result = apiInstance.b2bPost(type, origin, target, depart, arrive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2BTransactionApi;

public class B2BTransactionApiExample {

    public static void main(String[] args) {
        B2BTransactionApi apiInstance = new B2BTransactionApi();
        String type = type_example; // String | 
        License origin = ; // License | 
        License target = ; // License | 
        String depart = depart_example; // String | 
        String arrive = arrive_example; // String | 
        try {
            B2B_Sale result = apiInstance.b2bPost(type, origin, target, depart, arrive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2BTransactionApi#b2bPost");
            e.printStackTrace();
        }
    }
}
String *type = type_example; // 
License *origin = ; // 
License *target = ; // 
String *depart = depart_example; // 
String *arrive = arrive_example; // 

B2BTransactionApi *apiInstance = [[B2BTransactionApi alloc] init];

// Create B2B Transaction
[apiInstance b2bPostWith:type
    origin:origin
    target:target
    depart:depart
    arrive:arrive
              completionHandler: ^(B2B_Sale output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2BTransactionApi()
var type = type_example; // {{String}} 
var origin = ; // {{License}} 
var target = ; // {{License}} 
var depart = depart_example; // {{String}} 
var arrive = arrive_example; // {{String}} 

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

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

            var apiInstance = new B2BTransactionApi();
            var type = type_example;  // String | 
            var origin = new License(); // License | 
            var target = new License(); // License | 
            var depart = depart_example;  // String | 
            var arrive = arrive_example;  // String | 

            try
            {
                // Create B2B Transaction
                B2B_Sale result = apiInstance.b2bPost(type, origin, target, depart, arrive);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2BTransactionApi.b2bPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2BTransactionApi();
$type = type_example; // String | 
$origin = ; // License | 
$target = ; // License | 
$depart = depart_example; // String | 
$arrive = arrive_example; // String | 

try {
    $result = $api_instance->b2bPost($type, $origin, $target, $depart, $arrive);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling B2BTransactionApi->b2bPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2BTransactionApi;

my $api_instance = WWW::SwaggerClient::B2BTransactionApi->new();
my $type = type_example; # String | 
my $origin = ; # License | 
my $target = ; # License | 
my $depart = depart_example; # String | 
my $arrive = arrive_example; # String | 

eval { 
    my $result = $api_instance->b2bPost(type => $type, origin => $origin, target => $target, depart => $depart, arrive => $arrive);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2BTransactionApi->b2bPost: $@\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.B2BTransactionApi()
type = type_example # String | 
origin =  # License | 
target =  # License | 
depart = depart_example # String | 
arrive = arrive_example # String | 

try: 
    # Create B2B Transaction
    api_response = api_instance.b2b_post(type, origin, target, depart, arrive)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2BTransactionApi->b2bPost: %s\n" % e)

Parameters

Form parameters
Name Description
type*
String
Enum: incoming, outgoing
Required
origin*
License
Required
target*
License
Required
depart*
String (dateTime)
Required
arrive*
String (dateTime)
Required

Responses

Status: 201 - Success


B2CTransaction

b2cGet

Get Sale Data


/b2c

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2c"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2CTransactionApi;

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

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        try {
            array[B2C_Sale] result = apiInstance.b2cGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2CTransactionApi;

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        try {
            array[B2C_Sale] result = apiInstance.b2cGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cGet");
            e.printStackTrace();
        }
    }
}

B2CTransactionApi *apiInstance = [[B2CTransactionApi alloc] init];

// Get Sale Data
[apiInstance b2cGetWithCompletionHandler: 
              ^(array[B2C_Sale] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2CTransactionApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.b2cGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new B2CTransactionApi();

            try
            {
                // Get Sale Data
                array[B2C_Sale] result = apiInstance.b2cGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2CTransactionApi.b2cGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2CTransactionApi();

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

my $api_instance = WWW::SwaggerClient::B2CTransactionApi->new();

eval { 
    my $result = $api_instance->b2cGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2CTransactionApi->b2cGet: $@\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.B2CTransactionApi()

try: 
    # Get Sale Data
    api_response = api_instance.b2c_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2CTransactionApi->b2cGet: %s\n" % e)

Parameters

Responses

Status: 200 - List of Transactions

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


b2cIdDelete

Void a B2C Transaction


/b2c/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2c/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2CTransactionApi;

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

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id = id_example; // String | Unique ID value for this B2C Transaction
        try {
            B2C_Sale result = apiInstance.b2cIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2CTransactionApi;

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id = id_example; // String | Unique ID value for this B2C Transaction
        try {
            B2C_Sale result = apiInstance.b2cIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ID value for this B2C Transaction

B2CTransactionApi *apiInstance = [[B2CTransactionApi alloc] init];

// Void a B2C Transaction
[apiInstance b2cIdDeleteWith:id
              completionHandler: ^(B2C_Sale output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2CTransactionApi()
var id = id_example; // {{String}} Unique ID value for this B2C Transaction

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

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

            var apiInstance = new B2CTransactionApi();
            var id = id_example;  // String | Unique ID value for this B2C Transaction

            try
            {
                // Void a B2C Transaction
                B2C_Sale result = apiInstance.b2cIdDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2CTransactionApi.b2cIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2CTransactionApi();
$id = id_example; // String | Unique ID value for this B2C Transaction

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

my $api_instance = WWW::SwaggerClient::B2CTransactionApi->new();
my $id = id_example; # String | Unique ID value for this B2C Transaction

eval { 
    my $result = $api_instance->b2cIdDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2CTransactionApi->b2cIdDelete: $@\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.B2CTransactionApi()
id = id_example # String | Unique ID value for this B2C Transaction

try: 
    # Void a B2C Transaction
    api_response = api_instance.b2c_id_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2CTransactionApi->b2cIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this B2C Transaction
Required

Responses

Status: 201 - Created

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


b2cIdGet

Get B2C Transaction Details


/b2c/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2c/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2CTransactionApi;

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

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id = id_example; // String | Unique ID value for this B2C Transaction
        try {
            B2C_Sale result = apiInstance.b2cIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2CTransactionApi;

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id = id_example; // String | Unique ID value for this B2C Transaction
        try {
            B2C_Sale result = apiInstance.b2cIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ID value for this B2C Transaction

B2CTransactionApi *apiInstance = [[B2CTransactionApi alloc] init];

// Get B2C Transaction Details
[apiInstance b2cIdGetWith:id
              completionHandler: ^(B2C_Sale output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2CTransactionApi()
var id = id_example; // {{String}} Unique ID value for this B2C Transaction

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

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

            var apiInstance = new B2CTransactionApi();
            var id = id_example;  // String | Unique ID value for this B2C Transaction

            try
            {
                // Get B2C Transaction Details
                B2C_Sale result = apiInstance.b2cIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2CTransactionApi.b2cIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2CTransactionApi();
$id = id_example; // String | Unique ID value for this B2C Transaction

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

my $api_instance = WWW::SwaggerClient::B2CTransactionApi->new();
my $id = id_example; # String | Unique ID value for this B2C Transaction

eval { 
    my $result = $api_instance->b2cIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2CTransactionApi->b2cIdGet: $@\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.B2CTransactionApi()
id = id_example # String | Unique ID value for this B2C Transaction

try: 
    # Get B2C Transaction Details
    api_response = api_instance.b2c_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2CTransactionApi->b2cIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this B2C Transaction
Required

Responses

Status: 200 - Transaction Details

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


b2cIdItemGet

Get B2C Transaction Item List


/b2c/{id}/item

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/b2c/{id}/item"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2CTransactionApi;

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

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id = id_example; // String | Unique ID value for this B2C Transaction
        try {
            B2C_Sale_Item result = apiInstance.b2cIdItemGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdItemGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2CTransactionApi;

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id = id_example; // String | Unique ID value for this B2C Transaction
        try {
            B2C_Sale_Item result = apiInstance.b2cIdItemGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdItemGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ID value for this B2C Transaction

B2CTransactionApi *apiInstance = [[B2CTransactionApi alloc] init];

// Get B2C Transaction Item List
[apiInstance b2cIdItemGetWith:id
              completionHandler: ^(B2C_Sale_Item output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2CTransactionApi()
var id = id_example; // {{String}} Unique ID value for this B2C Transaction

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

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

            var apiInstance = new B2CTransactionApi();
            var id = id_example;  // String | Unique ID value for this B2C Transaction

            try
            {
                // Get B2C Transaction Item List
                B2C_Sale_Item result = apiInstance.b2cIdItemGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2CTransactionApi.b2cIdItemGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2CTransactionApi();
$id = id_example; // String | Unique ID value for this B2C Transaction

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

my $api_instance = WWW::SwaggerClient::B2CTransactionApi->new();
my $id = id_example; # String | Unique ID value for this B2C Transaction

eval { 
    my $result = $api_instance->b2cIdItemGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2CTransactionApi->b2cIdItemGet: $@\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.B2CTransactionApi()
id = id_example # String | Unique ID value for this B2C Transaction

try: 
    # Get B2C Transaction Item List
    api_response = api_instance.b2c_id_item_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2CTransactionApi->b2cIdItemGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this B2C Transaction
Required

Responses

Status: 200 - Transaction Item List

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


b2cIdItemPost

Create a B2C Transaction Item


/b2c/{id}/item

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded,application/json"\
"https://YOUR_HOST/YOUR/PATH/b2c/{id}/item"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2CTransactionApi;

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

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id2 = id_example; // String | 
        String inventory = inventory_example; // String | 
        String unitCount = unitCount_example; // String | 
        String unitPrice = unitPrice_example; // String | 
        String id = id_example; // String | Transaction ID
        try {
            B2C_Sale_Item result = apiInstance.b2cIdItemPost(id2, inventory, unitCount, unitPrice, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdItemPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2CTransactionApi;

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String id2 = id_example; // String | 
        String inventory = inventory_example; // String | 
        String unitCount = unitCount_example; // String | 
        String unitPrice = unitPrice_example; // String | 
        String id = id_example; // String | Transaction ID
        try {
            B2C_Sale_Item result = apiInstance.b2cIdItemPost(id2, inventory, unitCount, unitPrice, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cIdItemPost");
            e.printStackTrace();
        }
    }
}
String *id2 = id_example; // 
String *inventory = inventory_example; // 
String *unitCount = unitCount_example; // 
String *unitPrice = unitPrice_example; // 
String *id = id_example; // Transaction ID

B2CTransactionApi *apiInstance = [[B2CTransactionApi alloc] init];

// Create a B2C Transaction Item
[apiInstance b2cIdItemPostWith:id2
    inventory:inventory
    unitCount:unitCount
    unitPrice:unitPrice
    id:id
              completionHandler: ^(B2C_Sale_Item output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2CTransactionApi()
var id2 = id_example; // {{String}} 
var inventory = inventory_example; // {{String}} 
var unitCount = unitCount_example; // {{String}} 
var unitPrice = unitPrice_example; // {{String}} 
var id = id_example; // {{String}} Transaction ID

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

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

            var apiInstance = new B2CTransactionApi();
            var id2 = id_example;  // String | 
            var inventory = inventory_example;  // String | 
            var unitCount = unitCount_example;  // String | 
            var unitPrice = unitPrice_example;  // String | 
            var id = id_example;  // String | Transaction ID

            try
            {
                // Create a B2C Transaction Item
                B2C_Sale_Item result = apiInstance.b2cIdItemPost(id2, inventory, unitCount, unitPrice, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2CTransactionApi.b2cIdItemPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2CTransactionApi();
$id2 = id_example; // String | 
$inventory = inventory_example; // String | 
$unitCount = unitCount_example; // String | 
$unitPrice = unitPrice_example; // String | 
$id = id_example; // String | Transaction ID

try {
    $result = $api_instance->b2cIdItemPost($id2, $inventory, $unitCount, $unitPrice, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling B2CTransactionApi->b2cIdItemPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2CTransactionApi;

my $api_instance = WWW::SwaggerClient::B2CTransactionApi->new();
my $id2 = id_example; # String | 
my $inventory = inventory_example; # String | 
my $unitCount = unitCount_example; # String | 
my $unitPrice = unitPrice_example; # String | 
my $id = id_example; # String | Transaction ID

eval { 
    my $result = $api_instance->b2cIdItemPost(id2 => $id2, inventory => $inventory, unitCount => $unitCount, unitPrice => $unitPrice, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2CTransactionApi->b2cIdItemPost: $@\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.B2CTransactionApi()
id2 = id_example # String | 
inventory = inventory_example # String | 
unitCount = unitCount_example # String | 
unitPrice = unitPrice_example # String | 
id = id_example # String | Transaction ID

try: 
    # Create a B2C Transaction Item
    api_response = api_instance.b2c_id_item_post(id2, inventory, unitCount, unitPrice, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2CTransactionApi->b2cIdItemPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Transaction ID
Required
Body parameters
Name Description
body *
Form parameters
Name Description
id*
String
Required
inventory*
String
Required
unit_count*
String
Required
unit_price*
String
Required

Responses

Status: 201 - Item Details


b2cPost

Post a Sale


/b2c

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/b2c"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.B2CTransactionApi;

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

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String inventoryId = inventoryId_example; // String | 
        BigDecimal unitCount = 1.2; // BigDecimal | 
        BigDecimal unitPrice = 1.2; // BigDecimal | 
        String patientId = patientId_example; // String | 
        String caregiverId = caregiverId_example; // String | 
        array[Contact] contact = ; // array[Contact] | 
        try {
            B2C_Sale result = apiInstance.b2cPost(inventoryId, unitCount, unitPrice, patientId, caregiverId, contact);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.B2CTransactionApi;

public class B2CTransactionApiExample {

    public static void main(String[] args) {
        B2CTransactionApi apiInstance = new B2CTransactionApi();
        String inventoryId = inventoryId_example; // String | 
        BigDecimal unitCount = 1.2; // BigDecimal | 
        BigDecimal unitPrice = 1.2; // BigDecimal | 
        String patientId = patientId_example; // String | 
        String caregiverId = caregiverId_example; // String | 
        array[Contact] contact = ; // array[Contact] | 
        try {
            B2C_Sale result = apiInstance.b2cPost(inventoryId, unitCount, unitPrice, patientId, caregiverId, contact);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling B2CTransactionApi#b2cPost");
            e.printStackTrace();
        }
    }
}
String *inventoryId = inventoryId_example; // 
BigDecimal *unitCount = 1.2; // 
BigDecimal *unitPrice = 1.2; // 
String *patientId = patientId_example; // 
String *caregiverId = caregiverId_example; // 
array[Contact] *contact = ; // 

B2CTransactionApi *apiInstance = [[B2CTransactionApi alloc] init];

// Post a Sale
[apiInstance b2cPostWith:inventoryId
    unitCount:unitCount
    unitPrice:unitPrice
    patientId:patientId
    caregiverId:caregiverId
    contact:contact
              completionHandler: ^(B2C_Sale output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.B2CTransactionApi()
var inventoryId = inventoryId_example; // {{String}} 
var unitCount = 1.2; // {{BigDecimal}} 
var unitPrice = 1.2; // {{BigDecimal}} 
var patientId = patientId_example; // {{String}} 
var caregiverId = caregiverId_example; // {{String}} 
var contact = ; // {{array[Contact]}} 

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

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

            var apiInstance = new B2CTransactionApi();
            var inventoryId = inventoryId_example;  // String | 
            var unitCount = 1.2;  // BigDecimal | 
            var unitPrice = 1.2;  // BigDecimal | 
            var patientId = patientId_example;  // String | 
            var caregiverId = caregiverId_example;  // String | 
            var contact = new array[Contact](); // array[Contact] | 

            try
            {
                // Post a Sale
                B2C_Sale result = apiInstance.b2cPost(inventoryId, unitCount, unitPrice, patientId, caregiverId, contact);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling B2CTransactionApi.b2cPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiB2CTransactionApi();
$inventoryId = inventoryId_example; // String | 
$unitCount = 1.2; // BigDecimal | 
$unitPrice = 1.2; // BigDecimal | 
$patientId = patientId_example; // String | 
$caregiverId = caregiverId_example; // String | 
$contact = ; // array[Contact] | 

try {
    $result = $api_instance->b2cPost($inventoryId, $unitCount, $unitPrice, $patientId, $caregiverId, $contact);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling B2CTransactionApi->b2cPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::B2CTransactionApi;

my $api_instance = WWW::SwaggerClient::B2CTransactionApi->new();
my $inventoryId = inventoryId_example; # String | 
my $unitCount = 1.2; # BigDecimal | 
my $unitPrice = 1.2; # BigDecimal | 
my $patientId = patientId_example; # String | 
my $caregiverId = caregiverId_example; # String | 
my $contact = []; # array[Contact] | 

eval { 
    my $result = $api_instance->b2cPost(inventoryId => $inventoryId, unitCount => $unitCount, unitPrice => $unitPrice, patientId => $patientId, caregiverId => $caregiverId, contact => $contact);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling B2CTransactionApi->b2cPost: $@\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.B2CTransactionApi()
inventoryId = inventoryId_example # String | 
unitCount = 1.2 # BigDecimal | 
unitPrice = 1.2 # BigDecimal | 
patientId = patientId_example # String | 
caregiverId = caregiverId_example # String | 
contact =  # array[Contact] | 

try: 
    # Post a Sale
    api_response = api_instance.b2c_post(inventoryId, unitCount, unitPrice, patientId, caregiverId, contact)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling B2CTransactionApi->b2cPost: %s\n" % e)

Parameters

Form parameters
Name Description
inventory_id*
String
Required
unit_count*
BigDecimal
Required
unit_price*
BigDecimal
Required
patient_id*
String
Required
caregiver_id*
String
Required
contact*
array[Contact]
Required

Responses

Status: 201 - Created

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


Config

productGet

Search Product Data

Product, a Container for one or more Lot objects.


/product

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/product?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String q = q_example; // String | Search Term.
        try {
            array[Product] result = apiInstance.productGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String q = q_example; // String | Search Term.
        try {
            array[Product] result = apiInstance.productGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productGet");
            e.printStackTrace();
        }
    }
}
String *q = q_example; // Search Term. (optional)

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Search Product Data
[apiInstance productGetWith:q
              completionHandler: ^(array[Product] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var opts = { 
  'q': q_example // {{String}} Search Term.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.productGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConfigApi();
            var q = q_example;  // String | Search Term. (optional) 

            try
            {
                // Search Product Data
                array[Product] result = apiInstance.productGet(q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$q = q_example; // String | Search Term.

try {
    $result = $api_instance->productGet($q);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->productGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $q = q_example; # String | Search Term.

eval { 
    my $result = $api_instance->productGet(q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productGet: $@\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.ConfigApi()
q = q_example # String | Search Term. (optional)

try: 
    # Search Product Data
    api_response = api_instance.product_get(q=q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productGet: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
Search Term.

Responses

Status: 200 - An array of Product objects

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


productIdGet

Get Specific Product Data

Product defines attributes of an Inventory Lot such as Weight/Volume, Package Size


/product/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/product/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Product
        try {
            Product result = apiInstance.productIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Product
        try {
            Product result = apiInstance.productIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Product

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Get Specific Product Data
[apiInstance productIdGetWith:id
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ULID value for this Product

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ULID value for this Product

            try
            {
                // Get Specific Product Data
                Product result = apiInstance.productIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ULID value for this Product

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ULID value for this Product

eval { 
    my $result = $api_instance->productIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productIdGet: $@\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.ConfigApi()
id = id_example # String | Unique ULID value for this Product

try: 
    # Get Specific Product Data
    api_response = api_instance.product_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Product
Required

Responses

Status: 200 - A Product Object

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


productIdPost

Update a Product

Product defines attributes of an Inventory Lot such as Weight/Volume, Package Size


/product/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/product/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        String id = id_example; // String | Unique ULID value for this Product
        try {
            Product result = apiInstance.productIdPost(name, type, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        String id = id_example; // String | Unique ULID value for this Product
        try {
            Product result = apiInstance.productIdPost(name, type, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productIdPost");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *type = type_example; // 
String *id = id_example; // Unique ULID value for this Product

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Update a Product
[apiInstance productIdPostWith:name
    type:type
    id:id
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var name = name_example; // {{String}} 
var type = type_example; // {{String}} 
var id = id_example; // {{String}} Unique ULID value for this Product

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

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

            var apiInstance = new ConfigApi();
            var name = name_example;  // String | 
            var type = type_example;  // String | 
            var id = id_example;  // String | Unique ULID value for this Product

            try
            {
                // Update a Product
                Product result = apiInstance.productIdPost(name, type, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$name = name_example; // String | 
$type = type_example; // String | 
$id = id_example; // String | Unique ULID value for this Product

try {
    $result = $api_instance->productIdPost($name, $type, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->productIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $name = name_example; # String | 
my $type = type_example; # String | 
my $id = id_example; # String | Unique ULID value for this Product

eval { 
    my $result = $api_instance->productIdPost(name => $name, type => $type, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productIdPost: $@\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.ConfigApi()
name = name_example # String | 
type = type_example # String | 
id = id_example # String | Unique ULID value for this Product

try: 
    # Update a Product
    api_response = api_instance.product_id_post(name, type, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Product
Required
Form parameters
Name Description
name*
String
Required
type*
String
Required

Responses

Status: 200 - A Product Object

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


productPost

Create a Product

Product defines attributes of an Inventory Lot such as Weight/Volume, Package Size


/product

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/product"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        try {
            Product result = apiInstance.productPost(name, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        try {
            Product result = apiInstance.productPost(name, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productPost");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *type = type_example; // 

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Create a Product
[apiInstance productPostWith:name
    type:type
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var name = name_example; // {{String}} 
var type = type_example; // {{String}} 

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

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

            var apiInstance = new ConfigApi();
            var name = name_example;  // String | 
            var type = type_example;  // String | 

            try
            {
                // Create a Product
                Product result = apiInstance.productPost(name, type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$name = name_example; // String | 
$type = type_example; // String | 

try {
    $result = $api_instance->productPost($name, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->productPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $name = name_example; # String | 
my $type = type_example; # String | 

eval { 
    my $result = $api_instance->productPost(name => $name, type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productPost: $@\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.ConfigApi()
name = name_example # String | 
type = type_example # String | 

try: 
    # Create a Product
    api_response = api_instance.product_post(name, type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productPost: %s\n" % e)

Parameters

Form parameters
Name Description
name*
String
Required
type*
String
Required

Responses

Status: 200 - A Product Object

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


productTypeGet

Get List of Product Types


/product/type

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/product/type"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        try {
            array[Product_Type] result = apiInstance.productTypeGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        try {
            array[Product_Type] result = apiInstance.productTypeGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypeGet");
            e.printStackTrace();
        }
    }
}

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Get List of Product Types
[apiInstance productTypeGetWithCompletionHandler: 
              ^(array[Product_Type] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.productTypeGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConfigApi();

            try
            {
                // Get List of Product Types
                array[Product_Type] result = apiInstance.productTypeGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productTypeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();

eval { 
    my $result = $api_instance->productTypeGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productTypeGet: $@\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.ConfigApi()

try: 
    # Get List of Product Types
    api_response = api_instance.product_type_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productTypeGet: %s\n" % e)

Parameters

Responses

Status: 200 - Success


productTypeIdDelete

Delete Product Type


/product/type/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/product/type/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Product Type
        try {
            Product_Type result = apiInstance.productTypeIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypeIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Product Type
        try {
            Product_Type result = apiInstance.productTypeIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypeIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Product Type

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Delete Product Type
[apiInstance productTypeIdDeleteWith:id
              completionHandler: ^(Product_Type output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ULID value for this Product Type

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ULID value for this Product Type

            try
            {
                // Delete Product Type
                Product_Type result = apiInstance.productTypeIdDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productTypeIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ULID value for this Product Type

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ULID value for this Product Type

eval { 
    my $result = $api_instance->productTypeIdDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productTypeIdDelete: $@\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.ConfigApi()
id = id_example # String | Unique ULID value for this Product Type

try: 
    # Delete Product Type
    api_response = api_instance.product_type_id_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productTypeIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Product Type
Required

Responses

Status: 200 - Success

Status: 405 - Not Allowed


productTypeIdPost

Modify Product Type

Update a product type


/product/type/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/product/type/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Product Type
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        Product_Type_unit unit = ; // Product_Type_unit | 
        try {
            Product_Type result = apiInstance.productTypeIdPost(id, id2, name, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypeIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Product Type
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        Product_Type_unit unit = ; // Product_Type_unit | 
        try {
            Product_Type result = apiInstance.productTypeIdPost(id, id2, name, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypeIdPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Product Type
String *id2 = id_example; //  (optional)
String *name = name_example; //  (optional)
Product_Type_unit *unit = ; //  (optional)

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Modify Product Type
[apiInstance productTypeIdPostWith:id
    id2:id2
    name:name
    unit:unit
              completionHandler: ^(Product_Type output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ULID value for this Product Type
var opts = { 
  'id2': id_example // {{String}} 
  'name': name_example // {{String}} 
  'unit':  // {{Product_Type_unit}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.productTypeIdPost(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ULID value for this Product Type
            var id2 = id_example;  // String |  (optional) 
            var name = name_example;  // String |  (optional) 
            var unit = new Product_Type_unit(); // Product_Type_unit |  (optional) 

            try
            {
                // Modify Product Type
                Product_Type result = apiInstance.productTypeIdPost(id, id2, name, unit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productTypeIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ULID value for this Product Type
$id2 = id_example; // String | 
$name = name_example; // String | 
$unit = ; // Product_Type_unit | 

try {
    $result = $api_instance->productTypeIdPost($id, $id2, $name, $unit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->productTypeIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ULID value for this Product Type
my $id2 = id_example; # String | 
my $name = name_example; # String | 
my $unit = ; # Product_Type_unit | 

eval { 
    my $result = $api_instance->productTypeIdPost(id => $id, id2 => $id2, name => $name, unit => $unit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productTypeIdPost: $@\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.ConfigApi()
id = id_example # String | Unique ULID value for this Product Type
id2 = id_example # String |  (optional)
name = name_example # String |  (optional)
unit =  # Product_Type_unit |  (optional)

try: 
    # Modify Product Type
    api_response = api_instance.product_type_id_post(id, id2=id2, name=name, unit=unit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productTypeIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Product Type
Required
Form parameters
Name Description
id
String
name
String
unit
Product_Type_unit

Responses

Status: 200 - Success

Status: 405 - Not Allowed


productTypePost

Create Product Type

Create a new product type


/product/type

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/product/type"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        Product_Type_unit unit = ; // Product_Type_unit | 
        try {
            Product_Type result = apiInstance.productTypePost(id, name, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        Product_Type_unit unit = ; // Product_Type_unit | 
        try {
            Product_Type result = apiInstance.productTypePost(id, name, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#productTypePost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
String *name = name_example; // 
Product_Type_unit *unit = ; // 

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Create Product Type
[apiInstance productTypePostWith:id
    name:name
    unit:unit
              completionHandler: ^(Product_Type output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} 
var name = name_example; // {{String}} 
var unit = ; // {{Product_Type_unit}} 

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | 
            var name = name_example;  // String | 
            var unit = new Product_Type_unit(); // Product_Type_unit | 

            try
            {
                // Create Product Type
                Product_Type result = apiInstance.productTypePost(id, name, unit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.productTypePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | 
$name = name_example; // String | 
$unit = ; // Product_Type_unit | 

try {
    $result = $api_instance->productTypePost($id, $name, $unit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->productTypePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | 
my $name = name_example; # String | 
my $unit = ; # Product_Type_unit | 

eval { 
    my $result = $api_instance->productTypePost(id => $id, name => $name, unit => $unit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->productTypePost: $@\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.ConfigApi()
id = id_example # String | 
name = name_example # String | 
unit =  # Product_Type_unit | 

try: 
    # Create Product Type
    api_response = api_instance.product_type_post(id, name, unit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->productTypePost: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
Required
name*
String
Required
unit*
Product_Type_unit
Required

Responses

Status: 201 - Created


sectionGet

Get a LIst of all the Sections


/section

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/section"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        try {
            array[Section] result = apiInstance.sectionGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        try {
            array[Section] result = apiInstance.sectionGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionGet");
            e.printStackTrace();
        }
    }
}

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Get a LIst of all the Sections
[apiInstance sectionGetWithCompletionHandler: 
              ^(array[Section] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sectionGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConfigApi();

            try
            {
                // Get a LIst of all the Sections
                array[Section] result = apiInstance.sectionGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.sectionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();

eval { 
    my $result = $api_instance->sectionGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->sectionGet: $@\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.ConfigApi()

try: 
    # Get a LIst of all the Sections
    api_response = api_instance.section_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->sectionGet: %s\n" % e)

Parameters

Responses

Status: 200 - Success


sectionIdDelete

Delete a Section (aka Archive)


/section/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/section/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ID for this Section
        try {
            Section result = apiInstance.sectionIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ID for this Section
        try {
            Section result = apiInstance.sectionIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ID for this Section

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Delete a Section (aka Archive)
[apiInstance sectionIdDeleteWith:id
              completionHandler: ^(Section output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ID for this Section

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ID for this Section

            try
            {
                // Delete a Section (aka Archive)
                Section result = apiInstance.sectionIdDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.sectionIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ID for this Section

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ID for this Section

eval { 
    my $result = $api_instance->sectionIdDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->sectionIdDelete: $@\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.ConfigApi()
id = id_example # String | Unique ID for this Section

try: 
    # Delete a Section (aka Archive)
    api_response = api_instance.section_id_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->sectionIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID for this Section
Required

Responses

Status: 200 - Success


sectionIdGet

Get Section Data


/section/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/section/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Section result = apiInstance.sectionIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Section result = apiInstance.sectionIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Section

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Get Section Data
[apiInstance sectionIdGetWith:id
              completionHandler: ^(Section output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ULID value for this Section

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ULID value for this Section

            try
            {
                // Get Section Data
                Section result = apiInstance.sectionIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.sectionIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ULID value for this Section

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ULID value for this Section

eval { 
    my $result = $api_instance->sectionIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->sectionIdGet: $@\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.ConfigApi()
id = id_example # String | Unique ULID value for this Section

try: 
    # Get Section Data
    api_response = api_instance.section_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->sectionIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Section
Required

Responses

Status: 200 - Success


sectionIdPost

Update a Section (aka: Area or Room)


/section/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/section/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Section result = apiInstance.sectionIdPost(id2, name, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Section result = apiInstance.sectionIdPost(id2, name, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionIdPost");
            e.printStackTrace();
        }
    }
}
String *id2 = id_example; // 
String *name = name_example; // 
String *id = id_example; // Unique ULID value for this Section

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Update a Section (aka: Area or Room)
[apiInstance sectionIdPostWith:id2
    name:name
    id:id
              completionHandler: ^(Section output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id2 = id_example; // {{String}} 
var name = name_example; // {{String}} 
var id = id_example; // {{String}} Unique ULID value for this Section

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

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

            var apiInstance = new ConfigApi();
            var id2 = id_example;  // String | 
            var name = name_example;  // String | 
            var id = id_example;  // String | Unique ULID value for this Section

            try
            {
                // Update a Section (aka: Area or Room)
                Section result = apiInstance.sectionIdPost(id2, name, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.sectionIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id2 = id_example; // String | 
$name = name_example; // String | 
$id = id_example; // String | Unique ULID value for this Section

try {
    $result = $api_instance->sectionIdPost($id2, $name, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->sectionIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id2 = id_example; # String | 
my $name = name_example; # String | 
my $id = id_example; # String | Unique ULID value for this Section

eval { 
    my $result = $api_instance->sectionIdPost(id2 => $id2, name => $name, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->sectionIdPost: $@\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.ConfigApi()
id2 = id_example # String | 
name = name_example # String | 
id = id_example # String | Unique ULID value for this Section

try: 
    # Update a Section (aka: Area or Room)
    api_response = api_instance.section_id_post(id2, name, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->sectionIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Section
Required
Form parameters
Name Description
id*
String
Required
name*
String
Required

Responses

Status: 200 - Success


sectionPost

Create a Section (aka: Area or Room)


/section

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/section"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        String type = type_example; // String | 
        String flagQuarantine = flagQuarantine_example; // String | 
        try {
            Section result = apiInstance.sectionPost(id, name, type, flagQuarantine);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        String type = type_example; // String | 
        String flagQuarantine = flagQuarantine_example; // String | 
        try {
            Section result = apiInstance.sectionPost(id, name, type, flagQuarantine);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#sectionPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
String *name = name_example; // 
String *type = type_example; // 
String *flagQuarantine = flagQuarantine_example; // 

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Create a Section (aka: Area or Room)
[apiInstance sectionPostWith:id
    name:name
    type:type
    flagQuarantine:flagQuarantine
              completionHandler: ^(Section output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} 
var name = name_example; // {{String}} 
var type = type_example; // {{String}} 
var flagQuarantine = flagQuarantine_example; // {{String}} 

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | 
            var name = name_example;  // String | 
            var type = type_example;  // String | 
            var flagQuarantine = flagQuarantine_example;  // String | 

            try
            {
                // Create a Section (aka: Area or Room)
                Section result = apiInstance.sectionPost(id, name, type, flagQuarantine);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.sectionPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | 
$name = name_example; // String | 
$type = type_example; // String | 
$flagQuarantine = flagQuarantine_example; // String | 

try {
    $result = $api_instance->sectionPost($id, $name, $type, $flagQuarantine);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->sectionPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | 
my $name = name_example; # String | 
my $type = type_example; # String | 
my $flagQuarantine = flagQuarantine_example; # String | 

eval { 
    my $result = $api_instance->sectionPost(id => $id, name => $name, type => $type, flagQuarantine => $flagQuarantine);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->sectionPost: $@\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.ConfigApi()
id = id_example # String | 
name = name_example # String | 
type = type_example # String | 
flagQuarantine = flagQuarantine_example # String | 

try: 
    # Create a Section (aka: Area or Room)
    api_response = api_instance.section_post(id, name, type, flagQuarantine)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->sectionPost: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
Required
name*
String
Required
type*
String
Required
flag_quarantine*
String
Required

Responses

Status: 200 - Success


varietyGet

Search Variety Data

Variety defines the Cultivar, Flavor or Strain of a Crop or Product


/variety

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/variety?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String q = q_example; // String | Search Term.
        try {
            array[Variety] result = apiInstance.varietyGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String q = q_example; // String | Search Term.
        try {
            array[Variety] result = apiInstance.varietyGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyGet");
            e.printStackTrace();
        }
    }
}
String *q = q_example; // Search Term. (optional)

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Search Variety Data
[apiInstance varietyGetWith:q
              completionHandler: ^(array[Variety] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var opts = { 
  'q': q_example // {{String}} Search Term.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.varietyGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConfigApi();
            var q = q_example;  // String | Search Term. (optional) 

            try
            {
                // Search Variety Data
                array[Variety] result = apiInstance.varietyGet(q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.varietyGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$q = q_example; // String | Search Term.

try {
    $result = $api_instance->varietyGet($q);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->varietyGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $q = q_example; # String | Search Term.

eval { 
    my $result = $api_instance->varietyGet(q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->varietyGet: $@\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.ConfigApi()
q = q_example # String | Search Term. (optional)

try: 
    # Search Variety Data
    api_response = api_instance.variety_get(q=q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->varietyGet: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
Search Term.

Responses

Status: 200 - An array of Variety objects

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


varietyIdDelete

Delete Variety Type

Delete Variety Type


/variety/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/variety/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Variety result = apiInstance.varietyIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Variety result = apiInstance.varietyIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Section

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Delete Variety Type
[apiInstance varietyIdDeleteWith:id
              completionHandler: ^(Variety output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ULID value for this Section

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ULID value for this Section

            try
            {
                // Delete Variety Type
                Variety result = apiInstance.varietyIdDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.varietyIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ULID value for this Section

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ULID value for this Section

eval { 
    my $result = $api_instance->varietyIdDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->varietyIdDelete: $@\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.ConfigApi()
id = id_example # String | Unique ULID value for this Section

try: 
    # Delete Variety Type
    api_response = api_instance.variety_id_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->varietyIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Section
Required

Responses

Status: 201 - Created


varietyIdGet

Get a Variety


/variety/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/variety/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Section
        try {
            array[Variety] result = apiInstance.varietyIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Section
        try {
            array[Variety] result = apiInstance.varietyIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Section

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Get a Variety
[apiInstance varietyIdGetWith:id
              completionHandler: ^(array[Variety] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ULID value for this Section

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ULID value for this Section

            try
            {
                // Get a Variety
                array[Variety] result = apiInstance.varietyIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.varietyIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ULID value for this Section

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ULID value for this Section

eval { 
    my $result = $api_instance->varietyIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->varietyIdGet: $@\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.ConfigApi()
id = id_example # String | Unique ULID value for this Section

try: 
    # Get a Variety
    api_response = api_instance.variety_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->varietyIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Section
Required

Responses

Status: 200 - Success


varietyIdPost

Update Variety

Update Variety


/variety/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/variety/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        String type = type_example; // String | 
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Variety result = apiInstance.varietyIdPost(id2, name, type, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        String type = type_example; // String | 
        String id = id_example; // String | Unique ULID value for this Section
        try {
            Variety result = apiInstance.varietyIdPost(id2, name, type, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyIdPost");
            e.printStackTrace();
        }
    }
}
String *id2 = id_example; // 
String *name = name_example; // 
String *type = type_example; // 
String *id = id_example; // Unique ULID value for this Section

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Update Variety
[apiInstance varietyIdPostWith:id2
    name:name
    type:type
    id:id
              completionHandler: ^(Variety output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id2 = id_example; // {{String}} 
var name = name_example; // {{String}} 
var type = type_example; // {{String}} 
var id = id_example; // {{String}} Unique ULID value for this Section

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

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

            var apiInstance = new ConfigApi();
            var id2 = id_example;  // String | 
            var name = name_example;  // String | 
            var type = type_example;  // String | 
            var id = id_example;  // String | Unique ULID value for this Section

            try
            {
                // Update Variety
                Variety result = apiInstance.varietyIdPost(id2, name, type, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.varietyIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id2 = id_example; // String | 
$name = name_example; // String | 
$type = type_example; // String | 
$id = id_example; // String | Unique ULID value for this Section

try {
    $result = $api_instance->varietyIdPost($id2, $name, $type, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->varietyIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id2 = id_example; # String | 
my $name = name_example; # String | 
my $type = type_example; # String | 
my $id = id_example; # String | Unique ULID value for this Section

eval { 
    my $result = $api_instance->varietyIdPost(id2 => $id2, name => $name, type => $type, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->varietyIdPost: $@\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.ConfigApi()
id2 = id_example # String | 
name = name_example # String | 
type = type_example # String | 
id = id_example # String | Unique ULID value for this Section

try: 
    # Update Variety
    api_response = api_instance.variety_id_post(id2, name, type, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->varietyIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Section
Required
Form parameters
Name Description
id*
String
Required
name*
String
Required
type*
String
Enum: Hemp, Hybrid, Indica, Sativa, Ruderalis
Required

Responses

Status: 200 - Updated


varietyPost

Create a Variety

Variety defines the Cultivar, Flavor or Strain of a Crop or Product


/variety

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/variety"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        try {
            Variety result = apiInstance.varietyPost(name, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        try {
            Variety result = apiInstance.varietyPost(name, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#varietyPost");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *type = type_example; // 

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Create a Variety
[apiInstance varietyPostWith:name
    type:type
              completionHandler: ^(Variety output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var name = name_example; // {{String}} 
var type = type_example; // {{String}} 

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

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

            var apiInstance = new ConfigApi();
            var name = name_example;  // String | 
            var type = type_example;  // String | 

            try
            {
                // Create a Variety
                Variety result = apiInstance.varietyPost(name, type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.varietyPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$name = name_example; // String | 
$type = type_example; // String | 

try {
    $result = $api_instance->varietyPost($name, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->varietyPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $name = name_example; # String | 
my $type = type_example; # String | 

eval { 
    my $result = $api_instance->varietyPost(name => $name, type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->varietyPost: $@\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.ConfigApi()
name = name_example # String | 
type = type_example # String | 

try: 
    # Create a Variety
    api_response = api_instance.variety_post(name, type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->varietyPost: %s\n" % e)

Parameters

Form parameters
Name Description
name*
String
Required
type*
String
Required

Responses

Status: 200 - A Variety Object

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


vehicleGet

Search Vehicle Data

Search vehicles regsitered under this company/license


/vehicle

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/vehicle?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String q = q_example; // String | Search Term.
        try {
            array[Vehicle] result = apiInstance.vehicleGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehicleGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String q = q_example; // String | Search Term.
        try {
            array[Vehicle] result = apiInstance.vehicleGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehicleGet");
            e.printStackTrace();
        }
    }
}
String *q = q_example; // Search Term. (optional)

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Search Vehicle Data
[apiInstance vehicleGetWith:q
              completionHandler: ^(array[Vehicle] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var opts = { 
  'q': q_example // {{String}} Search Term.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehicleGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ConfigApi();
            var q = q_example;  // String | Search Term. (optional) 

            try
            {
                // Search Vehicle Data
                array[Vehicle] result = apiInstance.vehicleGet(q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.vehicleGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$q = q_example; // String | Search Term.

try {
    $result = $api_instance->vehicleGet($q);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->vehicleGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $q = q_example; # String | Search Term.

eval { 
    my $result = $api_instance->vehicleGet(q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->vehicleGet: $@\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.ConfigApi()
q = q_example # String | Search Term. (optional)

try: 
    # Search Vehicle Data
    api_response = api_instance.vehicle_get(q=q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->vehicleGet: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
Search Term.

Responses

Status: 200 - An array of Vehicle objects

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


vehicleIdGet

Get Specific Vehcile Data


/vehicle/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/vehicle/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Vehicle
        try {
            Vehicle result = apiInstance.vehicleIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehicleIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | Unique ULID value for this Vehicle
        try {
            Vehicle result = apiInstance.vehicleIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehicleIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Vehicle

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Get Specific Vehcile Data
[apiInstance vehicleIdGetWith:id
              completionHandler: ^(Vehicle output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} Unique ULID value for this Vehicle

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | Unique ULID value for this Vehicle

            try
            {
                // Get Specific Vehcile Data
                Vehicle result = apiInstance.vehicleIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.vehicleIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | Unique ULID value for this Vehicle

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | Unique ULID value for this Vehicle

eval { 
    my $result = $api_instance->vehicleIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->vehicleIdGet: $@\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.ConfigApi()
id = id_example # String | Unique ULID value for this Vehicle

try: 
    # Get Specific Vehcile Data
    api_response = api_instance.vehicle_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->vehicleIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Vehicle
Required

Responses

Status: 200 - A Vehicle Object

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


vehicleIdPost

Update a Vehicle


/vehicle/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/vehicle/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String id = id_example; // String | Unique ULID value for this Vehicle
        try {
            Product result = apiInstance.vehicleIdPost(name, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehicleIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String name = name_example; // String | 
        String id = id_example; // String | Unique ULID value for this Vehicle
        try {
            Product result = apiInstance.vehicleIdPost(name, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehicleIdPost");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *id = id_example; // Unique ULID value for this Vehicle

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Update a Vehicle
[apiInstance vehicleIdPostWith:name
    id:id
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var name = name_example; // {{String}} 
var id = id_example; // {{String}} Unique ULID value for this Vehicle

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

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

            var apiInstance = new ConfigApi();
            var name = name_example;  // String | 
            var id = id_example;  // String | Unique ULID value for this Vehicle

            try
            {
                // Update a Vehicle
                Product result = apiInstance.vehicleIdPost(name, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.vehicleIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$name = name_example; // String | 
$id = id_example; // String | Unique ULID value for this Vehicle

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

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $name = name_example; # String | 
my $id = id_example; # String | Unique ULID value for this Vehicle

eval { 
    my $result = $api_instance->vehicleIdPost(name => $name, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->vehicleIdPost: $@\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.ConfigApi()
name = name_example # String | 
id = id_example # String | Unique ULID value for this Vehicle

try: 
    # Update a Vehicle
    api_response = api_instance.vehicle_id_post(name, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->vehicleIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Vehicle
Required
Form parameters
Name Description
name*
String
Required

Responses

Status: 200 - A Product Object

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


vehiclePost

Create a Vehicle

Create a Vehicle to transport material


/vehicle

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/vehicle"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigApi;

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

public class ConfigApiExample {

    public static void main(String[] args) {
        
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        String make = make_example; // String | 
        String model = model_example; // String | 
        String color = color_example; // String | 
        String vin = vin_example; // String | 
        String vrn = vrn_example; // String | 
        try {
            Product result = apiInstance.vehiclePost(id, name, make, model, color, vin, vrn);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehiclePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigApi;

public class ConfigApiExample {

    public static void main(String[] args) {
        ConfigApi apiInstance = new ConfigApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        String make = make_example; // String | 
        String model = model_example; // String | 
        String color = color_example; // String | 
        String vin = vin_example; // String | 
        String vrn = vrn_example; // String | 
        try {
            Product result = apiInstance.vehiclePost(id, name, make, model, color, vin, vrn);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigApi#vehiclePost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
String *name = name_example; // 
String *make = make_example; // 
String *model = model_example; // 
String *color = color_example; // 
String *vin = vin_example; // 
String *vrn = vrn_example; // 

ConfigApi *apiInstance = [[ConfigApi alloc] init];

// Create a Vehicle
[apiInstance vehiclePostWith:id
    name:name
    make:make
    model:model
    color:color
    vin:vin
    vrn:vrn
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.ConfigApi()
var id = id_example; // {{String}} 
var name = name_example; // {{String}} 
var make = make_example; // {{String}} 
var model = model_example; // {{String}} 
var color = color_example; // {{String}} 
var vin = vin_example; // {{String}} 
var vrn = vrn_example; // {{String}} 

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

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

            var apiInstance = new ConfigApi();
            var id = id_example;  // String | 
            var name = name_example;  // String | 
            var make = make_example;  // String | 
            var model = model_example;  // String | 
            var color = color_example;  // String | 
            var vin = vin_example;  // String | 
            var vrn = vrn_example;  // String | 

            try
            {
                // Create a Vehicle
                Product result = apiInstance.vehiclePost(id, name, make, model, color, vin, vrn);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigApi.vehiclePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiConfigApi();
$id = id_example; // String | 
$name = name_example; // String | 
$make = make_example; // String | 
$model = model_example; // String | 
$color = color_example; // String | 
$vin = vin_example; // String | 
$vrn = vrn_example; // String | 

try {
    $result = $api_instance->vehiclePost($id, $name, $make, $model, $color, $vin, $vrn);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigApi->vehiclePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigApi;

my $api_instance = WWW::SwaggerClient::ConfigApi->new();
my $id = id_example; # String | 
my $name = name_example; # String | 
my $make = make_example; # String | 
my $model = model_example; # String | 
my $color = color_example; # String | 
my $vin = vin_example; # String | 
my $vrn = vrn_example; # String | 

eval { 
    my $result = $api_instance->vehiclePost(id => $id, name => $name, make => $make, model => $model, color => $color, vin => $vin, vrn => $vrn);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConfigApi->vehiclePost: $@\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.ConfigApi()
id = id_example # String | 
name = name_example # String | 
make = make_example # String | 
model = model_example # String | 
color = color_example # String | 
vin = vin_example # String | 
vrn = vrn_example # String | 

try: 
    # Create a Vehicle
    api_response = api_instance.vehicle_post(id, name, make, model, color, vin, vrn)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigApi->vehiclePost: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
Required
name*
String
Required
make*
String
Required
model*
String
Required
color*
String
Required
vin*
String
Required
vrn*
String
Required

Responses

Status: 200 - A Product Object

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


Crop

plantCollectIdCommitPost

Commit this Plant Collect group into Inventory Lot


/plant-collect/{id}/commit

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/plant-collect/{id}/commit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CropApi;

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

public class CropApiExample {

    public static void main(String[] args) {
        
        CropApi apiInstance = new CropApi();
        array[String] plantId = ; // array[String] | 
        String date = date_example; // String | 
        String type = ; // String | 
         qty = ; //  | 
        String uom = ; // String | 
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant_Collect result = apiInstance.plantCollectIdCommitPost(plantId, date, type, qty, uom, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantCollectIdCommitPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CropApi;

public class CropApiExample {

    public static void main(String[] args) {
        CropApi apiInstance = new CropApi();
        array[String] plantId = ; // array[String] | 
        String date = date_example; // String | 
        String type = ; // String | 
         qty = ; //  | 
        String uom = ; // String | 
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant_Collect result = apiInstance.plantCollectIdCommitPost(plantId, date, type, qty, uom, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantCollectIdCommitPost");
            e.printStackTrace();
        }
    }
}
array[String] *plantId = ; // 
String *date = date_example; // 
String *type = ; // 
 *qty = ; // 
String *uom = ; // 
String *id = id_example; // Unique ULID value for this Plant

CropApi *apiInstance = [[CropApi alloc] init];

// Commit this Plant Collect group into Inventory Lot
[apiInstance plantCollectIdCommitPostWith:plantId
    date:date
    type:type
    qty:qty
    uom:uom
    id:id
              completionHandler: ^(Plant_Collect output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.CropApi()
var plantId = ; // {{array[String]}} 
var date = date_example; // {{String}} 
var type = ; // {{String}} 
var qty = ; // {{}} 
var uom = ; // {{String}} 
var id = id_example; // {{String}} Unique ULID value for this Plant

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

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

            var apiInstance = new CropApi();
            var plantId = new array[String](); // array[String] | 
            var date = date_example;  // String | 
            var type = new String(); // String | 
            var qty = new (); //  | 
            var uom = new String(); // String | 
            var id = id_example;  // String | Unique ULID value for this Plant

            try
            {
                // Commit this Plant Collect group into Inventory Lot
                Plant_Collect result = apiInstance.plantCollectIdCommitPost(plantId, date, type, qty, uom, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CropApi.plantCollectIdCommitPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCropApi();
$plantId = ; // array[String] | 
$date = date_example; // String | 
$type = ; // String | 
$qty = ; //  | 
$uom = ; // String | 
$id = id_example; // String | Unique ULID value for this Plant

try {
    $result = $api_instance->plantCollectIdCommitPost($plantId, $date, $type, $qty, $uom, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CropApi->plantCollectIdCommitPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CropApi;

my $api_instance = WWW::SwaggerClient::CropApi->new();
my $plantId = []; # array[String] | 
my $date = date_example; # String | 
my $type = ; # String | 
my $qty = ; #  | 
my $uom = ; # String | 
my $id = id_example; # String | Unique ULID value for this Plant

eval { 
    my $result = $api_instance->plantCollectIdCommitPost(plantId => $plantId, date => $date, type => $type, qty => $qty, uom => $uom, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CropApi->plantCollectIdCommitPost: $@\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.CropApi()
plantId =  # array[String] | 
date = date_example # String | 
type =  # String | 
qty =  #  | 
uom =  # String | 
id = id_example # String | Unique ULID value for this Plant

try: 
    # Commit this Plant Collect group into Inventory Lot
    api_response = api_instance.plant_collect_id_commit_post(plantId, date, type, qty, uom, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CropApi->plantCollectIdCommitPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Plant
Required
Form parameters
Name Description
plant_id*
array[String]
Required
date*
String (dateTime)
Required
type*
String
Required
qty*
Required
uom*
String
Required

Responses

Status: 200 - Success


plantCollectIdGet

Commit this Plant Collect group into Inventory Lot


/plant-collect/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/plant-collect/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CropApi;

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

public class CropApiExample {

    public static void main(String[] args) {
        
        CropApi apiInstance = new CropApi();
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant_Collect result = apiInstance.plantCollectIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantCollectIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CropApi;

public class CropApiExample {

    public static void main(String[] args) {
        CropApi apiInstance = new CropApi();
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant_Collect result = apiInstance.plantCollectIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantCollectIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Plant

CropApi *apiInstance = [[CropApi alloc] init];

// Commit this Plant Collect group into Inventory Lot
[apiInstance plantCollectIdGetWith:id
              completionHandler: ^(Plant_Collect output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.CropApi()
var id = id_example; // {{String}} Unique ULID value for this Plant

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

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

            var apiInstance = new CropApi();
            var id = id_example;  // String | Unique ULID value for this Plant

            try
            {
                // Commit this Plant Collect group into Inventory Lot
                Plant_Collect result = apiInstance.plantCollectIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CropApi.plantCollectIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCropApi();
$id = id_example; // String | Unique ULID value for this Plant

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

my $api_instance = WWW::SwaggerClient::CropApi->new();
my $id = id_example; # String | Unique ULID value for this Plant

eval { 
    my $result = $api_instance->plantCollectIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CropApi->plantCollectIdGet: $@\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.CropApi()
id = id_example # String | Unique ULID value for this Plant

try: 
    # Commit this Plant Collect group into Inventory Lot
    api_response = api_instance.plant_collect_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CropApi->plantCollectIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Plant
Required

Responses

Status: 200 - Success


plantGet

Get a List of Plants


/plant

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/plant?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CropApi;

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

public class CropApiExample {

    public static void main(String[] args) {
        
        CropApi apiInstance = new CropApi();
        String q = q_example; // String | Generic Search
        try {
            array[Plant] result = apiInstance.plantGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CropApi;

public class CropApiExample {

    public static void main(String[] args) {
        CropApi apiInstance = new CropApi();
        String q = q_example; // String | Generic Search
        try {
            array[Plant] result = apiInstance.plantGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantGet");
            e.printStackTrace();
        }
    }
}
String *q = q_example; // Generic Search (optional)

CropApi *apiInstance = [[CropApi alloc] init];

// Get a List of Plants
[apiInstance plantGetWith:q
              completionHandler: ^(array[Plant] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.CropApi()
var opts = { 
  'q': q_example // {{String}} Generic Search
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.plantGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new CropApi();
            var q = q_example;  // String | Generic Search (optional) 

            try
            {
                // Get a List of Plants
                array[Plant] result = apiInstance.plantGet(q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CropApi.plantGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCropApi();
$q = q_example; // String | Generic Search

try {
    $result = $api_instance->plantGet($q);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CropApi->plantGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CropApi;

my $api_instance = WWW::SwaggerClient::CropApi->new();
my $q = q_example; # String | Generic Search

eval { 
    my $result = $api_instance->plantGet(q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CropApi->plantGet: $@\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.CropApi()
q = q_example # String | Generic Search (optional)

try: 
    # Get a List of Plants
    api_response = api_instance.plant_get(q=q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CropApi->plantGet: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
Generic Search

Responses

Status: 200 - Array of Plants

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


plantIdCollectPost

Collect Materials from a Plant


/plant/{id}/collect

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/plant/{id}/collect"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CropApi;

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

public class CropApiExample {

    public static void main(String[] args) {
        
        CropApi apiInstance = new CropApi();
         collectId = ; //  | 
        String date = date_example; // String | 
        String type = ; // String | 
         qty = ; //  | 
        String uom = ; // String | 
        String id = id_example; // String | Tracking Identifier of Plant
        try {
            Plant_Collect result = apiInstance.plantIdCollectPost(collectId, date, type, qty, uom, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantIdCollectPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CropApi;

public class CropApiExample {

    public static void main(String[] args) {
        CropApi apiInstance = new CropApi();
         collectId = ; //  | 
        String date = date_example; // String | 
        String type = ; // String | 
         qty = ; //  | 
        String uom = ; // String | 
        String id = id_example; // String | Tracking Identifier of Plant
        try {
            Plant_Collect result = apiInstance.plantIdCollectPost(collectId, date, type, qty, uom, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantIdCollectPost");
            e.printStackTrace();
        }
    }
}
 *collectId = ; // 
String *date = date_example; // 
String *type = ; // 
 *qty = ; // 
String *uom = ; // 
String *id = id_example; // Tracking Identifier of Plant

CropApi *apiInstance = [[CropApi alloc] init];

// Collect Materials from a Plant
[apiInstance plantIdCollectPostWith:collectId
    date:date
    type:type
    qty:qty
    uom:uom
    id:id
              completionHandler: ^(Plant_Collect output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.CropApi()
var collectId = ; // {{}} 
var date = date_example; // {{String}} 
var type = ; // {{String}} 
var qty = ; // {{}} 
var uom = ; // {{String}} 
var id = id_example; // {{String}} Tracking Identifier of Plant

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

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

            var apiInstance = new CropApi();
            var collectId = new (); //  | 
            var date = date_example;  // String | 
            var type = new String(); // String | 
            var qty = new (); //  | 
            var uom = new String(); // String | 
            var id = id_example;  // String | Tracking Identifier of Plant

            try
            {
                // Collect Materials from a Plant
                Plant_Collect result = apiInstance.plantIdCollectPost(collectId, date, type, qty, uom, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CropApi.plantIdCollectPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCropApi();
$collectId = ; //  | 
$date = date_example; // String | 
$type = ; // String | 
$qty = ; //  | 
$uom = ; // String | 
$id = id_example; // String | Tracking Identifier of Plant

try {
    $result = $api_instance->plantIdCollectPost($collectId, $date, $type, $qty, $uom, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CropApi->plantIdCollectPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CropApi;

my $api_instance = WWW::SwaggerClient::CropApi->new();
my $collectId = ; #  | 
my $date = date_example; # String | 
my $type = ; # String | 
my $qty = ; #  | 
my $uom = ; # String | 
my $id = id_example; # String | Tracking Identifier of Plant

eval { 
    my $result = $api_instance->plantIdCollectPost(collectId => $collectId, date => $date, type => $type, qty => $qty, uom => $uom, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CropApi->plantIdCollectPost: $@\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.CropApi()
collectId =  #  | 
date = date_example # String | 
type =  # String | 
qty =  #  | 
uom =  # String | 
id = id_example # String | Tracking Identifier of Plant

try: 
    # Collect Materials from a Plant
    api_response = api_instance.plant_id_collect_post(collectId, date, type, qty, uom, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CropApi->plantIdCollectPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Tracking Identifier of Plant
Required
Form parameters
Name Description
collect_id*
Required
date*
String (dateTime)
Required
type*
String
Required
qty*
Required
uom*
String
Required

Responses

Status: 201 - Created

Status: 400 - Request Error

Status: 500 - Server Error


plantIdDelete

Delete the Plants


/plant/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/plant/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CropApi;

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

public class CropApiExample {

    public static void main(String[] args) {
        
        CropApi apiInstance = new CropApi();
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant result = apiInstance.plantIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CropApi;

public class CropApiExample {

    public static void main(String[] args) {
        CropApi apiInstance = new CropApi();
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant result = apiInstance.plantIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Plant

CropApi *apiInstance = [[CropApi alloc] init];

// Delete the Plants
[apiInstance plantIdDeleteWith:id
              completionHandler: ^(Plant output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.CropApi()
var id = id_example; // {{String}} Unique ULID value for this Plant

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

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

            var apiInstance = new CropApi();
            var id = id_example;  // String | Unique ULID value for this Plant

            try
            {
                // Delete the Plants
                Plant result = apiInstance.plantIdDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CropApi.plantIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCropApi();
$id = id_example; // String | Unique ULID value for this Plant

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

my $api_instance = WWW::SwaggerClient::CropApi->new();
my $id = id_example; # String | Unique ULID value for this Plant

eval { 
    my $result = $api_instance->plantIdDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CropApi->plantIdDelete: $@\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.CropApi()
id = id_example # String | Unique ULID value for this Plant

try: 
    # Delete the Plants
    api_response = api_instance.plant_id_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CropApi->plantIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Plant
Required

Responses

Status: 202 - Marked for Deletion

Status: 204 - Success, Delete Confirmed, No Content


plantIdPost

Modify Plant Data


/plant/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/plant/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CropApi;

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

public class CropApiExample {

    public static void main(String[] args) {
        
        CropApi apiInstance = new CropApi();
        String variety = variety_example; // String | 
        String section = section_example; // String | 
        Boolean propagationSource = true; // Boolean | 
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant result = apiInstance.plantIdPost(variety, section, propagationSource, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CropApi;

public class CropApiExample {

    public static void main(String[] args) {
        CropApi apiInstance = new CropApi();
        String variety = variety_example; // String | 
        String section = section_example; // String | 
        Boolean propagationSource = true; // Boolean | 
        String id = id_example; // String | Unique ULID value for this Plant
        try {
            Plant result = apiInstance.plantIdPost(variety, section, propagationSource, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantIdPost");
            e.printStackTrace();
        }
    }
}
String *variety = variety_example; // 
String *section = section_example; // 
Boolean *propagationSource = true; // 
String *id = id_example; // Unique ULID value for this Plant

CropApi *apiInstance = [[CropApi alloc] init];

// Modify Plant Data
[apiInstance plantIdPostWith:variety
    section:section
    propagationSource:propagationSource
    id:id
              completionHandler: ^(Plant output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.CropApi()
var variety = variety_example; // {{String}} 
var section = section_example; // {{String}} 
var propagationSource = true; // {{Boolean}} 
var id = id_example; // {{String}} Unique ULID value for this Plant

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

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

            var apiInstance = new CropApi();
            var variety = variety_example;  // String | 
            var section = section_example;  // String | 
            var propagationSource = true;  // Boolean | 
            var id = id_example;  // String | Unique ULID value for this Plant

            try
            {
                // Modify Plant Data
                Plant result = apiInstance.plantIdPost(variety, section, propagationSource, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CropApi.plantIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCropApi();
$variety = variety_example; // String | 
$section = section_example; // String | 
$propagationSource = true; // Boolean | 
$id = id_example; // String | Unique ULID value for this Plant

try {
    $result = $api_instance->plantIdPost($variety, $section, $propagationSource, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CropApi->plantIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CropApi;

my $api_instance = WWW::SwaggerClient::CropApi->new();
my $variety = variety_example; # String | 
my $section = section_example; # String | 
my $propagationSource = true; # Boolean | 
my $id = id_example; # String | Unique ULID value for this Plant

eval { 
    my $result = $api_instance->plantIdPost(variety => $variety, section => $section, propagationSource => $propagationSource, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CropApi->plantIdPost: $@\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.CropApi()
variety = variety_example # String | 
section = section_example # String | 
propagationSource = true # Boolean | 
id = id_example # String | Unique ULID value for this Plant

try: 
    # Modify Plant Data
    api_response = api_instance.plant_id_post(variety, section, propagationSource, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CropApi->plantIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Plant
Required
Form parameters
Name Description
variety*
String
Required
section*
String
Required
propagation_source*
Boolean
Required

Responses

Status: 200 - Success


plantPost

Create a Plant

Create a New Plant from Seeds, Clones


/plant

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/plant"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CropApi;

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

public class CropApiExample {

    public static void main(String[] args) {
        
        CropApi apiInstance = new CropApi();
        String source = source_example; // String | 
        String variety = variety_example; // String | 
        String section = section_example; // String | 
        BigDecimal qty = 1.2; // BigDecimal | 
        try {
            array[Plant] result = apiInstance.plantPost(source, variety, section, qty);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CropApi;

public class CropApiExample {

    public static void main(String[] args) {
        CropApi apiInstance = new CropApi();
        String source = source_example; // String | 
        String variety = variety_example; // String | 
        String section = section_example; // String | 
        BigDecimal qty = 1.2; // BigDecimal | 
        try {
            array[Plant] result = apiInstance.plantPost(source, variety, section, qty);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CropApi#plantPost");
            e.printStackTrace();
        }
    }
}
String *source = source_example; // 
String *variety = variety_example; // 
String *section = section_example; // 
BigDecimal *qty = 1.2; // 

CropApi *apiInstance = [[CropApi alloc] init];

// Create a Plant
[apiInstance plantPostWith:source
    variety:variety
    section:section
    qty:qty
              completionHandler: ^(array[Plant] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.CropApi()
var source = source_example; // {{String}} 
var variety = variety_example; // {{String}} 
var section = section_example; // {{String}} 
var qty = 1.2; // {{BigDecimal}} 

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

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

            var apiInstance = new CropApi();
            var source = source_example;  // String | 
            var variety = variety_example;  // String | 
            var section = section_example;  // String | 
            var qty = 1.2;  // BigDecimal | 

            try
            {
                // Create a Plant
                array[Plant] result = apiInstance.plantPost(source, variety, section, qty);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CropApi.plantPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCropApi();
$source = source_example; // String | 
$variety = variety_example; // String | 
$section = section_example; // String | 
$qty = 1.2; // BigDecimal | 

try {
    $result = $api_instance->plantPost($source, $variety, $section, $qty);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CropApi->plantPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CropApi;

my $api_instance = WWW::SwaggerClient::CropApi->new();
my $source = source_example; # String | 
my $variety = variety_example; # String | 
my $section = section_example; # String | 
my $qty = 1.2; # BigDecimal | 

eval { 
    my $result = $api_instance->plantPost(source => $source, variety => $variety, section => $section, qty => $qty);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CropApi->plantPost: $@\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.CropApi()
source = source_example # String | 
variety = variety_example # String | 
section = section_example # String | 
qty = 1.2 # BigDecimal | 

try: 
    # Create a Plant
    api_response = api_instance.plant_post(source, variety, section, qty)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CropApi->plantPost: %s\n" % e)

Parameters

Form parameters
Name Description
source*
String
Required
variety*
String
Required
section*
String
Required
qty*
BigDecimal (integer)
Required

Responses

Status: 200 - Success

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


Inventory

inventoryGet

Get a list of Inventory Objects


/inventory

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/inventory"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoryApi;

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

public class InventoryApiExample {

    public static void main(String[] args) {
        
        InventoryApi apiInstance = new InventoryApi();
        try {
            array[Inventory] result = apiInstance.inventoryGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoryApi;

public class InventoryApiExample {

    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        try {
            array[Inventory] result = apiInstance.inventoryGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryGet");
            e.printStackTrace();
        }
    }
}

InventoryApi *apiInstance = [[InventoryApi alloc] init];

// Get a list of Inventory Objects
[apiInstance inventoryGetWithCompletionHandler: 
              ^(array[Inventory] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.InventoryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.inventoryGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new InventoryApi();

            try
            {
                // Get a list of Inventory Objects
                array[Inventory] result = apiInstance.inventoryGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InventoryApi.inventoryGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInventoryApi();

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

my $api_instance = WWW::SwaggerClient::InventoryApi->new();

eval { 
    my $result = $api_instance->inventoryGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->inventoryGet: $@\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.InventoryApi()

try: 
    # Get a list of Inventory Objects
    api_response = api_instance.inventory_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->inventoryGet: %s\n" % e)

Parameters

Responses

Status: 200 - Success


inventoryIdAdjustPost

Adjust Inventory


/inventory/{id}/adjust

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/inventory/{id}/adjust"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoryApi;

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

public class InventoryApiExample {

    public static void main(String[] args) {
        
        InventoryApi apiInstance = new InventoryApi();
        BigDecimal qty = 1.2; // BigDecimal | 
        String id = id_example; // String | Unique ID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdAdjustPost(qty, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdAdjustPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoryApi;

public class InventoryApiExample {

    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        BigDecimal qty = 1.2; // BigDecimal | 
        String id = id_example; // String | Unique ID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdAdjustPost(qty, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdAdjustPost");
            e.printStackTrace();
        }
    }
}
BigDecimal *qty = 1.2; // 
String *id = id_example; // Unique ID value for this Inventory

InventoryApi *apiInstance = [[InventoryApi alloc] init];

// Adjust Inventory
[apiInstance inventoryIdAdjustPostWith:qty
    id:id
              completionHandler: ^(Inventory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.InventoryApi()
var qty = 1.2; // {{BigDecimal}} 
var id = id_example; // {{String}} Unique ID value for this Inventory

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

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

            var apiInstance = new InventoryApi();
            var qty = 1.2;  // BigDecimal | 
            var id = id_example;  // String | Unique ID value for this Inventory

            try
            {
                // Adjust Inventory
                Inventory result = apiInstance.inventoryIdAdjustPost(qty, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InventoryApi.inventoryIdAdjustPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInventoryApi();
$qty = 1.2; // BigDecimal | 
$id = id_example; // String | Unique ID value for this Inventory

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

my $api_instance = WWW::SwaggerClient::InventoryApi->new();
my $qty = 1.2; # BigDecimal | 
my $id = id_example; # String | Unique ID value for this Inventory

eval { 
    my $result = $api_instance->inventoryIdAdjustPost(qty => $qty, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->inventoryIdAdjustPost: $@\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.InventoryApi()
qty = 1.2 # BigDecimal | 
id = id_example # String | Unique ID value for this Inventory

try: 
    # Adjust Inventory
    api_response = api_instance.inventory_id_adjust_post(qty, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->inventoryIdAdjustPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this Inventory
Required
Form parameters
Name Description
qty*
BigDecimal
Required

Responses

Status: 200 - Success


inventoryIdDelete

Delete the Inventory Inventory


/inventory/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/inventory/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoryApi;

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

public class InventoryApiExample {

    public static void main(String[] args) {
        
        InventoryApi apiInstance = new InventoryApi();
        String id = id_example; // String | Unique ID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoryApi;

public class InventoryApiExample {

    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String id = id_example; // String | Unique ID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ID value for this Inventory

InventoryApi *apiInstance = [[InventoryApi alloc] init];

// Delete the Inventory Inventory
[apiInstance inventoryIdDeleteWith:id
              completionHandler: ^(Inventory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.InventoryApi()
var id = id_example; // {{String}} Unique ID value for this Inventory

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

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

            var apiInstance = new InventoryApi();
            var id = id_example;  // String | Unique ID value for this Inventory

            try
            {
                // Delete the Inventory Inventory
                Inventory result = apiInstance.inventoryIdDelete(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InventoryApi.inventoryIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInventoryApi();
$id = id_example; // String | Unique ID value for this Inventory

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

my $api_instance = WWW::SwaggerClient::InventoryApi->new();
my $id = id_example; # String | Unique ID value for this Inventory

eval { 
    my $result = $api_instance->inventoryIdDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->inventoryIdDelete: $@\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.InventoryApi()
id = id_example # String | Unique ID value for this Inventory

try: 
    # Delete the Inventory Inventory
    api_response = api_instance.inventory_id_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->inventoryIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this Inventory
Required

Responses

Status: 202 - Marked for Deletion

Status: 204 - Success, Delete Confirmed, No Content


inventoryIdDestroyPost

Destroy Inventory


/inventory/{id}/destroy

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/inventory/{id}/destroy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoryApi;

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

public class InventoryApiExample {

    public static void main(String[] args) {
        
        InventoryApi apiInstance = new InventoryApi();
        String reasonCode = reasonCode_example; // String | 
        String reasonText = reasonText_example; // String | 
        String id = id_example; // String | Unique ID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdDestroyPost(reasonCode, reasonText, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdDestroyPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoryApi;

public class InventoryApiExample {

    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String reasonCode = reasonCode_example; // String | 
        String reasonText = reasonText_example; // String | 
        String id = id_example; // String | Unique ID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdDestroyPost(reasonCode, reasonText, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdDestroyPost");
            e.printStackTrace();
        }
    }
}
String *reasonCode = reasonCode_example; // 
String *reasonText = reasonText_example; // 
String *id = id_example; // Unique ID value for this Inventory

InventoryApi *apiInstance = [[InventoryApi alloc] init];

// Destroy Inventory
[apiInstance inventoryIdDestroyPostWith:reasonCode
    reasonText:reasonText
    id:id
              completionHandler: ^(Inventory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.InventoryApi()
var reasonCode = reasonCode_example; // {{String}} 
var reasonText = reasonText_example; // {{String}} 
var id = id_example; // {{String}} Unique ID value for this Inventory

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

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

            var apiInstance = new InventoryApi();
            var reasonCode = reasonCode_example;  // String | 
            var reasonText = reasonText_example;  // String | 
            var id = id_example;  // String | Unique ID value for this Inventory

            try
            {
                // Destroy Inventory
                Inventory result = apiInstance.inventoryIdDestroyPost(reasonCode, reasonText, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InventoryApi.inventoryIdDestroyPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInventoryApi();
$reasonCode = reasonCode_example; // String | 
$reasonText = reasonText_example; // String | 
$id = id_example; // String | Unique ID value for this Inventory

try {
    $result = $api_instance->inventoryIdDestroyPost($reasonCode, $reasonText, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InventoryApi->inventoryIdDestroyPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InventoryApi;

my $api_instance = WWW::SwaggerClient::InventoryApi->new();
my $reasonCode = reasonCode_example; # String | 
my $reasonText = reasonText_example; # String | 
my $id = id_example; # String | Unique ID value for this Inventory

eval { 
    my $result = $api_instance->inventoryIdDestroyPost(reasonCode => $reasonCode, reasonText => $reasonText, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->inventoryIdDestroyPost: $@\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.InventoryApi()
reasonCode = reasonCode_example # String | 
reasonText = reasonText_example # String | 
id = id_example # String | Unique ID value for this Inventory

try: 
    # Destroy Inventory
    api_response = api_instance.inventory_id_destroy_post(reasonCode, reasonText, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->inventoryIdDestroyPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this Inventory
Required
Form parameters
Name Description
reason_code*
String
Required
reason_text*
String
Required

Responses

Status: 200 - Success


inventoryIdGet

View Inventory Inventory


/inventory/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/inventory/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoryApi;

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

public class InventoryApiExample {

    public static void main(String[] args) {
        
        InventoryApi apiInstance = new InventoryApi();
        String id = id_example; // String | Unique ULID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoryApi;

public class InventoryApiExample {

    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String id = id_example; // String | Unique ULID value for this Inventory
        try {
            Inventory result = apiInstance.inventoryIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Inventory

InventoryApi *apiInstance = [[InventoryApi alloc] init];

// View Inventory Inventory
[apiInstance inventoryIdGetWith:id
              completionHandler: ^(Inventory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.InventoryApi()
var id = id_example; // {{String}} Unique ULID value for this Inventory

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

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

            var apiInstance = new InventoryApi();
            var id = id_example;  // String | Unique ULID value for this Inventory

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

$api_instance = new Swagger\Client\ApiInventoryApi();
$id = id_example; // String | Unique ULID value for this Inventory

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

my $api_instance = WWW::SwaggerClient::InventoryApi->new();
my $id = id_example; # String | Unique ULID value for this Inventory

eval { 
    my $result = $api_instance->inventoryIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->inventoryIdGet: $@\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.InventoryApi()
id = id_example # String | Unique ULID value for this Inventory

try: 
    # View Inventory Inventory
    api_response = api_instance.inventory_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->inventoryIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Inventory
Required

Responses

Status: 200 - Success


inventoryIdPatch

Update Inventory Inventory


/inventory/{id}

Usage and SDK Samples

curl -X PATCH\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://YOUR_HOST/YOUR/PATH/inventory/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoryApi;

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

public class InventoryApiExample {

    public static void main(String[] args) {
        
        InventoryApi apiInstance = new InventoryApi();
        String id = id_example; // String | Unique ID value for this Inventory
        Inventory_id_body body = ; // Inventory_id_body | Optional Inventory Details
        try {
            Inventory result = apiInstance.inventoryIdPatch(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdPatch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoryApi;

public class InventoryApiExample {

    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String id = id_example; // String | Unique ID value for this Inventory
        Inventory_id_body body = ; // Inventory_id_body | Optional Inventory Details
        try {
            Inventory result = apiInstance.inventoryIdPatch(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryIdPatch");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ID value for this Inventory
Inventory_id_body *body = ; // Optional Inventory Details (optional)

InventoryApi *apiInstance = [[InventoryApi alloc] init];

// Update Inventory Inventory
[apiInstance inventoryIdPatchWith:id
    body:body
              completionHandler: ^(Inventory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.InventoryApi()
var id = id_example; // {{String}} Unique ID value for this Inventory
var opts = { 
  'body':  // {{Inventory_id_body}} Optional Inventory Details
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.inventoryIdPatch(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new InventoryApi();
            var id = id_example;  // String | Unique ID value for this Inventory
            var body = new Inventory_id_body(); // Inventory_id_body | Optional Inventory Details (optional) 

            try
            {
                // Update Inventory Inventory
                Inventory result = apiInstance.inventoryIdPatch(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InventoryApi.inventoryIdPatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInventoryApi();
$id = id_example; // String | Unique ID value for this Inventory
$body = ; // Inventory_id_body | Optional Inventory Details

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

my $api_instance = WWW::SwaggerClient::InventoryApi->new();
my $id = id_example; # String | Unique ID value for this Inventory
my $body = WWW::SwaggerClient::Object::Inventory_id_body->new(); # Inventory_id_body | Optional Inventory Details

eval { 
    my $result = $api_instance->inventoryIdPatch(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->inventoryIdPatch: $@\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.InventoryApi()
id = id_example # String | Unique ID value for this Inventory
body =  # Inventory_id_body | Optional Inventory Details (optional)

try: 
    # Update Inventory Inventory
    api_response = api_instance.inventory_id_patch(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->inventoryIdPatch: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this Inventory
Required
Body parameters
Name Description
body

Responses

Status: 200 - Success


inventoryPost

Create, Convert or Split an Inventory object


/inventory

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json,application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/inventory"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoryApi;

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

public class InventoryApiExample {

    public static void main(String[] args) {
        
        InventoryApi apiInstance = new InventoryApi();
        array[String] source = ; // array[String] | 
        String outputProductId = outputProductId_example; // String | 
        Float outputQty = 3.4; // Float | 
        try {
            Inventory result = apiInstance.inventoryPost(source, outputProductId, outputQty);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoryApi;

public class InventoryApiExample {

    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        array[String] source = ; // array[String] | 
        String outputProductId = outputProductId_example; // String | 
        Float outputQty = 3.4; // Float | 
        try {
            Inventory result = apiInstance.inventoryPost(source, outputProductId, outputQty);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#inventoryPost");
            e.printStackTrace();
        }
    }
}
array[String] *source = ; // 
String *outputProductId = outputProductId_example; // 
Float *outputQty = 3.4; // 

InventoryApi *apiInstance = [[InventoryApi alloc] init];

// Create, Convert or Split an Inventory object
[apiInstance inventoryPostWith:source
    outputProductId:outputProductId
    outputQty:outputQty
              completionHandler: ^(Inventory output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.InventoryApi()
var source = ; // {{array[String]}} 
var outputProductId = outputProductId_example; // {{String}} 
var outputQty = 3.4; // {{Float}} 

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

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

            var apiInstance = new InventoryApi();
            var source = new array[String](); // array[String] | 
            var outputProductId = outputProductId_example;  // String | 
            var outputQty = 3.4;  // Float | 

            try
            {
                // Create, Convert or Split an Inventory object
                Inventory result = apiInstance.inventoryPost(source, outputProductId, outputQty);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InventoryApi.inventoryPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInventoryApi();
$source = ; // array[String] | 
$outputProductId = outputProductId_example; // String | 
$outputQty = 3.4; // Float | 

try {
    $result = $api_instance->inventoryPost($source, $outputProductId, $outputQty);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InventoryApi->inventoryPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InventoryApi;

my $api_instance = WWW::SwaggerClient::InventoryApi->new();
my $source = []; # array[String] | 
my $outputProductId = outputProductId_example; # String | 
my $outputQty = 3.4; # Float | 

eval { 
    my $result = $api_instance->inventoryPost(source => $source, outputProductId => $outputProductId, outputQty => $outputQty);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->inventoryPost: $@\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.InventoryApi()
source =  # array[String] | 
outputProductId = outputProductId_example # String | 
outputQty = 3.4 # Float | 

try: 
    # Create, Convert or Split an Inventory object
    api_response = api_instance.inventory_post(source, outputProductId, outputQty)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->inventoryPost: %s\n" % e)

Parameters

Form parameters
Name Description
source*
array[String]
Required
output_product_id*
String
Required
output_qty*
Float (float)
Required

Responses

Status: 201 - Success

Status: 400 - Bad Request


Lab

labMetricGet

Get a List of Supported Lab Metrics


/lab/metric

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/metric"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        try {
            array[Lab_Metric] result = apiInstance.labMetricGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labMetricGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        try {
            array[Lab_Metric] result = apiInstance.labMetricGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labMetricGet");
            e.printStackTrace();
        }
    }
}

LabApi *apiInstance = [[LabApi alloc] init];

// Get a List of Supported Lab Metrics
[apiInstance labMetricGetWithCompletionHandler: 
              ^(array[Lab_Metric] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.labMetricGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new LabApi();

            try
            {
                // Get a List of Supported Lab Metrics
                array[Lab_Metric] result = apiInstance.labMetricGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labMetricGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();

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

my $api_instance = WWW::SwaggerClient::LabApi->new();

eval { 
    my $result = $api_instance->labMetricGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labMetricGet: $@\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.LabApi()

try: 
    # Get a List of Supported Lab Metrics
    api_response = api_instance.lab_metric_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labMetricGet: %s\n" % e)

Parameters

Responses

Status: 200 - An array of Lab Metric objects


labReportIdGet

Get just the Lab Report Details for this specific Lab Sample

Lab Reports are ....


/lab/report/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/report/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Report
        try {
            Lab_Report result = apiInstance.labReportIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labReportIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Report
        try {
            Lab_Report result = apiInstance.labReportIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labReportIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Lab Report

LabApi *apiInstance = [[LabApi alloc] init];

// Get just the Lab Report Details for this specific Lab Sample
[apiInstance labReportIdGetWith:id
              completionHandler: ^(Lab_Report output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var id = id_example; // {{String}} Unique ULID value for this Lab Report

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

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

            var apiInstance = new LabApi();
            var id = id_example;  // String | Unique ULID value for this Lab Report

            try
            {
                // Get just the Lab Report Details for this specific Lab Sample
                Lab_Report result = apiInstance.labReportIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labReportIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$id = id_example; // String | Unique ULID value for this Lab Report

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

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $id = id_example; # String | Unique ULID value for this Lab Report

eval { 
    my $result = $api_instance->labReportIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labReportIdGet: $@\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.LabApi()
id = id_example # String | Unique ULID value for this Lab Report

try: 
    # Get just the Lab Report Details for this specific Lab Sample
    api_response = api_instance.lab_report_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labReportIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Lab Report
Required

Responses

Status: 200 - Success!

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


labReportIdPost

Void the Lab Reports

Void a Lab Report


/lab/report/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/report/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Report
        try {
            inline_response_200_2 result = apiInstance.labReportIdPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labReportIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Report
        try {
            inline_response_200_2 result = apiInstance.labReportIdPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labReportIdPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Lab Report

LabApi *apiInstance = [[LabApi alloc] init];

// Void the Lab Reports
[apiInstance labReportIdPostWith:id
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var id = id_example; // {{String}} Unique ULID value for this Lab Report

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

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

            var apiInstance = new LabApi();
            var id = id_example;  // String | Unique ULID value for this Lab Report

            try
            {
                // Void the Lab Reports
                inline_response_200_2 result = apiInstance.labReportIdPost(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labReportIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$id = id_example; // String | Unique ULID value for this Lab Report

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

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $id = id_example; # String | Unique ULID value for this Lab Report

eval { 
    my $result = $api_instance->labReportIdPost(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labReportIdPost: $@\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.LabApi()
id = id_example # String | Unique ULID value for this Lab Report

try: 
    # Void the Lab Reports
    api_response = api_instance.lab_report_id_post(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labReportIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Lab Report
Required

Responses

Status: 200 - A General Response

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


labResultGet

Search the Lab Result

Lab Result links a Lab Sample to one or more Lab Metrics


/lab/result

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/result?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        String q = q_example; // String | Search Term.
        try {
            array[Lab_Result] result = apiInstance.labResultGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labResultGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        String q = q_example; // String | Search Term.
        try {
            array[Lab_Result] result = apiInstance.labResultGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labResultGet");
            e.printStackTrace();
        }
    }
}
String *q = q_example; // Search Term. (optional)

LabApi *apiInstance = [[LabApi alloc] init];

// Search the Lab Result
[apiInstance labResultGetWith:q
              completionHandler: ^(array[Lab_Result] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var opts = { 
  'q': q_example // {{String}} Search Term.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.labResultGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new LabApi();
            var q = q_example;  // String | Search Term. (optional) 

            try
            {
                // Search the Lab Result
                array[Lab_Result] result = apiInstance.labResultGet(q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labResultGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$q = q_example; // String | Search Term.

try {
    $result = $api_instance->labResultGet($q);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LabApi->labResultGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LabApi;

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $q = q_example; # String | Search Term.

eval { 
    my $result = $api_instance->labResultGet(q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labResultGet: $@\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.LabApi()
q = q_example # String | Search Term. (optional)

try: 
    # Search the Lab Result
    api_response = api_instance.lab_result_get(q=q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labResultGet: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
Search Term.

Responses

Status: 200 - An array of Lab Result objects

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


labResultIdGet

Get just the Lab Result Details for this specific Lab Sample

Lab Results are ....


/lab/result/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/result/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Result
        try {
            Lab_Result result = apiInstance.labResultIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labResultIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Result
        try {
            Lab_Result result = apiInstance.labResultIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labResultIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Lab Result

LabApi *apiInstance = [[LabApi alloc] init];

// Get just the Lab Result Details for this specific Lab Sample
[apiInstance labResultIdGetWith:id
              completionHandler: ^(Lab_Result output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var id = id_example; // {{String}} Unique ULID value for this Lab Result

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

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

            var apiInstance = new LabApi();
            var id = id_example;  // String | Unique ULID value for this Lab Result

            try
            {
                // Get just the Lab Result Details for this specific Lab Sample
                Lab_Result result = apiInstance.labResultIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labResultIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$id = id_example; // String | Unique ULID value for this Lab Result

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

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $id = id_example; # String | Unique ULID value for this Lab Result

eval { 
    my $result = $api_instance->labResultIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labResultIdGet: $@\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.LabApi()
id = id_example # String | Unique ULID value for this Lab Result

try: 
    # Get just the Lab Result Details for this specific Lab Sample
    api_response = api_instance.lab_result_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labResultIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Lab Result
Required

Responses

Status: 200 - Success!

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


labResultIdPost

Modify/Update the Lab Results

Modify one or more metrics for a specific Lab result


/lab/result/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/result/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        Lab_Result body = ; // Lab_Result | Result and Metrics to update
        String id = id_example; // String | Unique ULID value for this Lab Result
        try {
            inline_response_200_2 result = apiInstance.labResultIdPost(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labResultIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        Lab_Result body = ; // Lab_Result | Result and Metrics to update
        String id = id_example; // String | Unique ULID value for this Lab Result
        try {
            inline_response_200_2 result = apiInstance.labResultIdPost(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labResultIdPost");
            e.printStackTrace();
        }
    }
}
Lab_Result *body = ; // Result and Metrics to update
String *id = id_example; // Unique ULID value for this Lab Result

LabApi *apiInstance = [[LabApi alloc] init];

// Modify/Update the Lab Results
[apiInstance labResultIdPostWith:body
    id:id
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var body = ; // {{Lab_Result}} Result and Metrics to update
var id = id_example; // {{String}} Unique ULID value for this Lab Result

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

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

            var apiInstance = new LabApi();
            var body = new Lab_Result(); // Lab_Result | Result and Metrics to update
            var id = id_example;  // String | Unique ULID value for this Lab Result

            try
            {
                // Modify/Update the Lab Results
                inline_response_200_2 result = apiInstance.labResultIdPost(body, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labResultIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$body = ; // Lab_Result | Result and Metrics to update
$id = id_example; // String | Unique ULID value for this Lab Result

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

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $body = WWW::SwaggerClient::Object::Lab_Result->new(); # Lab_Result | Result and Metrics to update
my $id = id_example; # String | Unique ULID value for this Lab Result

eval { 
    my $result = $api_instance->labResultIdPost(body => $body, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labResultIdPost: $@\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.LabApi()
body =  # Lab_Result | Result and Metrics to update
id = id_example # String | Unique ULID value for this Lab Result

try: 
    # Modify/Update the Lab Results
    api_response = api_instance.lab_result_id_post(body, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labResultIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Lab Result
Required
Body parameters
Name Description
body *

Responses

Status: 200 - A General Response

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


labSampleGet

Get a list of Lab Samples

Search/List All Lab Items the Session has access to, for an Operator it's all the Lab Samples they have sent, for a Laboratory its the Samples that have been sent to them


/lab/sample

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/sample?q=&company=&inventory=&dt0=&dt1="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        String q = q_example; // String | Generic Search
        String company = company_example; // String | The Company who has supplied the Inventory
        String inventory = inventory_example; // String | 
        String dt0 = dt0_example; // String | 
        String dt1 = dt1_example; // String | 
        try {
            Lab_Sample result = apiInstance.labSampleGet(q, company, inventory, dt0, dt1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labSampleGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        String q = q_example; // String | Generic Search
        String company = company_example; // String | The Company who has supplied the Inventory
        String inventory = inventory_example; // String | 
        String dt0 = dt0_example; // String | 
        String dt1 = dt1_example; // String | 
        try {
            Lab_Sample result = apiInstance.labSampleGet(q, company, inventory, dt0, dt1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labSampleGet");
            e.printStackTrace();
        }
    }
}
String *q = q_example; // Generic Search (optional)
String *company = company_example; // The Company who has supplied the Inventory (optional)
String *inventory = inventory_example; //  (optional)
String *dt0 = dt0_example; //  (optional)
String *dt1 = dt1_example; //  (optional)

LabApi *apiInstance = [[LabApi alloc] init];

// Get a list of Lab Samples
[apiInstance labSampleGetWith:q
    company:company
    inventory:inventory
    dt0:dt0
    dt1:dt1
              completionHandler: ^(Lab_Sample output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var opts = { 
  'q': q_example, // {{String}} Generic Search
  'company': company_example, // {{String}} The Company who has supplied the Inventory
  'inventory': inventory_example, // {{String}} 
  'dt0': dt0_example, // {{String}} 
  'dt1': dt1_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.labSampleGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new LabApi();
            var q = q_example;  // String | Generic Search (optional) 
            var company = company_example;  // String | The Company who has supplied the Inventory (optional) 
            var inventory = inventory_example;  // String |  (optional) 
            var dt0 = dt0_example;  // String |  (optional) 
            var dt1 = dt1_example;  // String |  (optional) 

            try
            {
                // Get a list of Lab Samples
                Lab_Sample result = apiInstance.labSampleGet(q, company, inventory, dt0, dt1);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labSampleGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$q = q_example; // String | Generic Search
$company = company_example; // String | The Company who has supplied the Inventory
$inventory = inventory_example; // String | 
$dt0 = dt0_example; // String | 
$dt1 = dt1_example; // String | 

try {
    $result = $api_instance->labSampleGet($q, $company, $inventory, $dt0, $dt1);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LabApi->labSampleGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LabApi;

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $q = q_example; # String | Generic Search
my $company = company_example; # String | The Company who has supplied the Inventory
my $inventory = inventory_example; # String | 
my $dt0 = dt0_example; # String | 
my $dt1 = dt1_example; # String | 

eval { 
    my $result = $api_instance->labSampleGet(q => $q, company => $company, inventory => $inventory, dt0 => $dt0, dt1 => $dt1);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labSampleGet: $@\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.LabApi()
q = q_example # String | Generic Search (optional)
company = company_example # String | The Company who has supplied the Inventory (optional)
inventory = inventory_example # String |  (optional)
dt0 = dt0_example # String |  (optional)
dt1 = dt1_example # String |  (optional)

try: 
    # Get a list of Lab Samples
    api_response = api_instance.lab_sample_get(q=q, company=company, inventory=inventory, dt0=dt0, dt1=dt1)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labSampleGet: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
Generic Search
company
String
The Company who has supplied the Inventory
inventory
String
dt0
String
dt1
String

Responses

Status: 200 - Sample Data


labSampleIdDelete

Void a Lab Sample


/lab/sample/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/sample/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ID value for this Lab Result
        try {
            apiInstance.labSampleIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labSampleIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ID value for this Lab Result
        try {
            apiInstance.labSampleIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labSampleIdDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ID value for this Lab Result

LabApi *apiInstance = [[LabApi alloc] init];

// Void a Lab Sample
[apiInstance labSampleIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var id = id_example; // {{String}} Unique ID value for this Lab Result

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.labSampleIdDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new LabApi();
            var id = id_example;  // String | Unique ID value for this Lab Result

            try
            {
                // Void a Lab Sample
                apiInstance.labSampleIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labSampleIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$id = id_example; // String | Unique ID value for this Lab Result

try {
    $api_instance->labSampleIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling LabApi->labSampleIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LabApi;

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $id = id_example; # String | Unique ID value for this Lab Result

eval { 
    $api_instance->labSampleIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling LabApi->labSampleIdDelete: $@\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.LabApi()
id = id_example # String | Unique ID value for this Lab Result

try: 
    # Void a Lab Sample
    api_instance.lab_sample_id_delete(id)
except ApiException as e:
    print("Exception when calling LabApi->labSampleIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ID value for this Lab Result
Required

Responses

Status: 200 - Success

Status: 202 - Pending Delete Successful, One More Time to Confirm

Status: 400 - General Failure Response

Status: 404 - General Failure Response

Status: 409 - General Failure Response

Status: 500 - General Failure Response


labSampleIdGet

Get a Specific Sample


/lab/sample/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/lab/sample/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabApi;

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

public class LabApiExample {

    public static void main(String[] args) {
        
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Result
        try {
            Lab_Sample result = apiInstance.labSampleIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labSampleIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabApi;

public class LabApiExample {

    public static void main(String[] args) {
        LabApi apiInstance = new LabApi();
        String id = id_example; // String | Unique ULID value for this Lab Result
        try {
            Lab_Sample result = apiInstance.labSampleIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabApi#labSampleIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Unique ULID value for this Lab Result

LabApi *apiInstance = [[LabApi alloc] init];

// Get a Specific Sample
[apiInstance labSampleIdGetWith:id
              completionHandler: ^(Lab_Sample output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.LabApi()
var id = id_example; // {{String}} Unique ULID value for this Lab Result

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

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

            var apiInstance = new LabApi();
            var id = id_example;  // String | Unique ULID value for this Lab Result

            try
            {
                // Get a Specific Sample
                Lab_Sample result = apiInstance.labSampleIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabApi.labSampleIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLabApi();
$id = id_example; // String | Unique ULID value for this Lab Result

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

my $api_instance = WWW::SwaggerClient::LabApi->new();
my $id = id_example; # String | Unique ULID value for this Lab Result

eval { 
    my $result = $api_instance->labSampleIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabApi->labSampleIdGet: $@\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.LabApi()
id = id_example # String | Unique ULID value for this Lab Result

try: 
    # Get a Specific Sample
    api_response = api_instance.lab_sample_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabApi->labSampleIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Unique ULID value for this Lab Result
Required

Responses

Status: 200 - Sample Data


System

companyGet

Search Company Data

Company, top level grouping of a business


/company

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/company?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String q = q_example; // String | Search Term.
        try {
            array[Company] result = apiInstance.companyGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#companyGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String q = q_example; // String | Search Term.
        try {
            array[Company] result = apiInstance.companyGet(q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#companyGet");
            e.printStackTrace();
        }
    }
}
String *q = q_example; // Search Term. (optional)

SystemApi *apiInstance = [[SystemApi alloc] init];

// Search Company Data
[apiInstance companyGetWith:q
              completionHandler: ^(array[Company] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var opts = { 
  'q': q_example // {{String}} Search Term.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.companyGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new SystemApi();
            var q = q_example;  // String | Search Term. (optional) 

            try
            {
                // Search Company Data
                array[Company] result = apiInstance.companyGet(q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.companyGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSystemApi();
$q = q_example; // String | Search Term.

try {
    $result = $api_instance->companyGet($q);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SystemApi->companyGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SystemApi;

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $q = q_example; # String | Search Term.

eval { 
    my $result = $api_instance->companyGet(q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->companyGet: $@\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.SystemApi()
q = q_example # String | Search Term. (optional)

try: 
    # Search Company Data
    api_response = api_instance.company_get(q=q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->companyGet: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
Search Term.

Responses

Status: 200 - An array of Company objects

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


companyIdGet

Company

A Company contains one or more License objects and one or more Contact objects


/company/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/company/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the Company
        try {
            Company result = apiInstance.companyIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#companyIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the Company
        try {
            Company result = apiInstance.companyIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#companyIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // The ID of the Company

SystemApi *apiInstance = [[SystemApi alloc] init];

// Company
[apiInstance companyIdGetWith:id
              completionHandler: ^(Company output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var id = id_example; // {{String}} The ID of the Company

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

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

            var apiInstance = new SystemApi();
            var id = id_example;  // String | The ID of the Company

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

$api_instance = new Swagger\Client\ApiSystemApi();
$id = id_example; // String | The ID of the Company

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

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $id = id_example; # String | The ID of the Company

eval { 
    my $result = $api_instance->companyIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->companyIdGet: $@\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.SystemApi()
id = id_example # String | The ID of the Company

try: 
    # Company
    api_response = api_instance.company_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->companyIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The ID of the Company
Required

Responses

Status: 200 - A Company

Status: 400 - General Failure Response

Status: 404 - General Failure Response

Status: 409 - General Failure Response

Status: 500 - General Failure Response


companyPost

Create a Company


/company

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/company"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        try {
            Company result = apiInstance.companyPost(name, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#companyPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String name = name_example; // String | 
        String type = type_example; // String | 
        try {
            Company result = apiInstance.companyPost(name, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#companyPost");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *type = type_example; // 

SystemApi *apiInstance = [[SystemApi alloc] init];

// Create a Company
[apiInstance companyPostWith:name
    type:type
              completionHandler: ^(Company output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var name = name_example; // {{String}} 
var type = type_example; // {{String}} 

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

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

            var apiInstance = new SystemApi();
            var name = name_example;  // String | 
            var type = type_example;  // String | 

            try
            {
                // Create a Company
                Company result = apiInstance.companyPost(name, type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.companyPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSystemApi();
$name = name_example; // String | 
$type = type_example; // String | 

try {
    $result = $api_instance->companyPost($name, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SystemApi->companyPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SystemApi;

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $name = name_example; # String | 
my $type = type_example; # String | 

eval { 
    my $result = $api_instance->companyPost(name => $name, type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->companyPost: $@\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.SystemApi()
name = name_example # String | 
type = type_example # String | 

try: 
    # Create a Company
    api_response = api_instance.company_post(name, type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->companyPost: %s\n" % e)

Parameters

Form parameters
Name Description
name*
String
Required
type*
String
Required

Responses

Status: 201 - Created


contactGet

Search Contacts

Contacts are members of a Company


/contact

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/contact?email=&phone="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String email = email_example; // String | The Email
        String phone = phone_example; // String | The Email
        try {
            array[Contact] result = apiInstance.contactGet(email, phone);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String email = email_example; // String | The Email
        String phone = phone_example; // String | The Email
        try {
            array[Contact] result = apiInstance.contactGet(email, phone);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactGet");
            e.printStackTrace();
        }
    }
}
String *email = email_example; // The Email
String *phone = phone_example; // The Email

SystemApi *apiInstance = [[SystemApi alloc] init];

// Search Contacts
[apiInstance contactGetWith:email
    phone:phone
              completionHandler: ^(array[Contact] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var email = email_example; // {{String}} The Email
var phone = phone_example; // {{String}} The Email

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.contactGet(email, phone, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new SystemApi();
            var email = email_example;  // String | The Email
            var phone = phone_example;  // String | The Email

            try
            {
                // Search Contacts
                array[Contact] result = apiInstance.contactGet(email, phone);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.contactGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSystemApi();
$email = email_example; // String | The Email
$phone = phone_example; // String | The Email

try {
    $result = $api_instance->contactGet($email, $phone);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SystemApi->contactGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SystemApi;

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $email = email_example; # String | The Email
my $phone = phone_example; # String | The Email

eval { 
    my $result = $api_instance->contactGet(email => $email, phone => $phone);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->contactGet: $@\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.SystemApi()
email = email_example # String | The Email
phone = phone_example # String | The Email

try: 
    # Search Contacts
    api_response = api_instance.contact_get(email, phone)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->contactGet: %s\n" % e)

Parameters

Query parameters
Name Description
email*
String
The Email
Required
phone*
String
The Email
Required

Responses

Status: 200 - An array of Contacts

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


contactIdGet

Select Contact

Contacts are members of a Company


/contact/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/contact/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the Contact
        try {
            Contact result = apiInstance.contactIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the Contact
        try {
            Contact result = apiInstance.contactIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // The ID of the Contact

SystemApi *apiInstance = [[SystemApi alloc] init];

// Select Contact
[apiInstance contactIdGetWith:id
              completionHandler: ^(Contact output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var id = id_example; // {{String}} The ID of the Contact

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

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

            var apiInstance = new SystemApi();
            var id = id_example;  // String | The ID of the Contact

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

$api_instance = new Swagger\Client\ApiSystemApi();
$id = id_example; // String | The ID of the Contact

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

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $id = id_example; # String | The ID of the Contact

eval { 
    my $result = $api_instance->contactIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->contactIdGet: $@\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.SystemApi()
id = id_example # String | The ID of the Contact

try: 
    # Select Contact
    api_response = api_instance.contact_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->contactIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The ID of the Contact
Required

Responses

Status: 200 - A Contact

Status: 500 - General Failure Response


contactIdPost

Update Contact

Post to Update a Contact


/contact/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/contact/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the Contact
        try {
            Contact result = apiInstance.contactIdPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the Contact
        try {
            Contact result = apiInstance.contactIdPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactIdPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // The ID of the Contact

SystemApi *apiInstance = [[SystemApi alloc] init];

// Update Contact
[apiInstance contactIdPostWith:id
              completionHandler: ^(Contact output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var id = id_example; // {{String}} The ID of the Contact

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

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

            var apiInstance = new SystemApi();
            var id = id_example;  // String | The ID of the Contact

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

$api_instance = new Swagger\Client\ApiSystemApi();
$id = id_example; // String | The ID of the Contact

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

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $id = id_example; # String | The ID of the Contact

eval { 
    my $result = $api_instance->contactIdPost(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->contactIdPost: $@\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.SystemApi()
id = id_example # String | The ID of the Contact

try: 
    # Update Contact
    api_response = api_instance.contact_id_post(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->contactIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The ID of the Contact
Required

Responses

Status: 200 - A Contact

Status: 500 - General Failure Response


contactPost

Create Contact

Create a Contact


/contact

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/contact"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        try {
            Contact result = apiInstance.contactPost();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        try {
            Contact result = apiInstance.contactPost();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#contactPost");
            e.printStackTrace();
        }
    }
}

SystemApi *apiInstance = [[SystemApi alloc] init];

// Create Contact
[apiInstance contactPostWithCompletionHandler: 
              ^(Contact output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.contactPost(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new SystemApi();

            try
            {
                // Create Contact
                Contact result = apiInstance.contactPost();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.contactPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSystemApi();

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

my $api_instance = WWW::SwaggerClient::SystemApi->new();

eval { 
    my $result = $api_instance->contactPost();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->contactPost: $@\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.SystemApi()

try: 
    # Create Contact
    api_response = api_instance.contact_post()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->contactPost: %s\n" % e)

Parameters

Responses

Status: 200 - A Contact

Status: 500 - General Failure Response


licenseGet

Search the License Data

License, attached to a Company


/license

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/license"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        try {
            array[License] result = apiInstance.licenseGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licenseGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        try {
            array[License] result = apiInstance.licenseGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licenseGet");
            e.printStackTrace();
        }
    }
}

SystemApi *apiInstance = [[SystemApi alloc] init];

// Search the License Data
[apiInstance licenseGetWithCompletionHandler: 
              ^(array[License] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.licenseGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new SystemApi();

            try
            {
                // Search the License Data
                array[License] result = apiInstance.licenseGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.licenseGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSystemApi();

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

my $api_instance = WWW::SwaggerClient::SystemApi->new();

eval { 
    my $result = $api_instance->licenseGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->licenseGet: $@\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.SystemApi()

try: 
    # Search the License Data
    api_response = api_instance.license_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->licenseGet: %s\n" % e)

Parameters

Responses

Status: 200 - An array of License objects

Status: 400 - General Failure Response

Status: 403 - General Failure Response

Status: 500 - General Failure Response


licenseIdGet

License

A Company contains one or more License objects


/license/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://YOUR_HOST/YOUR/PATH/license/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the License
        try {
            License result = apiInstance.licenseIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licenseIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | The ID of the License
        try {
            License result = apiInstance.licenseIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licenseIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // The ID of the License

SystemApi *apiInstance = [[SystemApi alloc] init];

// License
[apiInstance licenseIdGetWith:id
              completionHandler: ^(License output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var id = id_example; // {{String}} The ID of the License

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

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

            var apiInstance = new SystemApi();
            var id = id_example;  // String | The ID of the License

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

$api_instance = new Swagger\Client\ApiSystemApi();
$id = id_example; // String | The ID of the License

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

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $id = id_example; # String | The ID of the License

eval { 
    my $result = $api_instance->licenseIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->licenseIdGet: $@\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.SystemApi()
id = id_example # String | The ID of the License

try: 
    # License
    api_response = api_instance.license_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->licenseIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The ID of the License
Required

Responses

Status: 200 - A License

Status: 500 - General Failure Response


licenseIdPost

Update a License


/license/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/license/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        String code = code_example; // String | 
        License_Type type = ; // License_Type | 
        Company company = ; // Company | 
        String id = id_example; // String | The ID of the License
        try {
            License result = apiInstance.licenseIdPost(id2, name, code, type, company, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licenseIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String id2 = id_example; // String | 
        String name = name_example; // String | 
        String code = code_example; // String | 
        License_Type type = ; // License_Type | 
        Company company = ; // Company | 
        String id = id_example; // String | The ID of the License
        try {
            License result = apiInstance.licenseIdPost(id2, name, code, type, company, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licenseIdPost");
            e.printStackTrace();
        }
    }
}
String *id2 = id_example; // 
String *name = name_example; // 
String *code = code_example; // 
License_Type *type = ; // 
Company *company = ; // 
String *id = id_example; // The ID of the License

SystemApi *apiInstance = [[SystemApi alloc] init];

// Update a License
[apiInstance licenseIdPostWith:id2
    name:name
    code:code
    type:type
    company:company
    id:id
              completionHandler: ^(License output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var id2 = id_example; // {{String}} 
var name = name_example; // {{String}} 
var code = code_example; // {{String}} 
var type = ; // {{License_Type}} 
var company = ; // {{Company}} 
var id = id_example; // {{String}} The ID of the License

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

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

            var apiInstance = new SystemApi();
            var id2 = id_example;  // String | 
            var name = name_example;  // String | 
            var code = code_example;  // String | 
            var type = new License_Type(); // License_Type | 
            var company = new Company(); // Company | 
            var id = id_example;  // String | The ID of the License

            try
            {
                // Update a License
                License result = apiInstance.licenseIdPost(id2, name, code, type, company, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.licenseIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSystemApi();
$id2 = id_example; // String | 
$name = name_example; // String | 
$code = code_example; // String | 
$type = ; // License_Type | 
$company = ; // Company | 
$id = id_example; // String | The ID of the License

try {
    $result = $api_instance->licenseIdPost($id2, $name, $code, $type, $company, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SystemApi->licenseIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SystemApi;

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $id2 = id_example; # String | 
my $name = name_example; # String | 
my $code = code_example; # String | 
my $type = ; # License_Type | 
my $company = ; # Company | 
my $id = id_example; # String | The ID of the License

eval { 
    my $result = $api_instance->licenseIdPost(id2 => $id2, name => $name, code => $code, type => $type, company => $company, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->licenseIdPost: $@\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.SystemApi()
id2 = id_example # String | 
name = name_example # String | 
code = code_example # String | 
type =  # License_Type | 
company =  # Company | 
id = id_example # String | The ID of the License

try: 
    # Update a License
    api_response = api_instance.license_id_post(id2, name, code, type, company, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->licenseIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The ID of the License
Required
Form parameters
Name Description
id*
String
Required
name*
String
Required
code*
String
Required
type*
License_Type
Required
company*
Company
Required

Responses

Status: 201 - Created


licensePost

Create a License

Create a new license


/license

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/license"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

    public static void main(String[] args) {
        
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        String code = code_example; // String | 
        License_Type type = ; // License_Type | 
        Company company = ; // Company | 
        try {
            License result = apiInstance.licensePost(id, name, code, type, company);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licensePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SystemApi;

public class SystemApiExample {

    public static void main(String[] args) {
        SystemApi apiInstance = new SystemApi();
        String id = id_example; // String | 
        String name = name_example; // String | 
        String code = code_example; // String | 
        License_Type type = ; // License_Type | 
        Company company = ; // Company | 
        try {
            License result = apiInstance.licensePost(id, name, code, type, company);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SystemApi#licensePost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
String *name = name_example; // 
String *code = code_example; // 
License_Type *type = ; // 
Company *company = ; // 

SystemApi *apiInstance = [[SystemApi alloc] init];

// Create a License
[apiInstance licensePostWith:id
    name:name
    code:code
    type:type
    company:company
              completionHandler: ^(License output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenThcApi = require('open_thc_api');

var api = new OpenThcApi.SystemApi()
var id = id_example; // {{String}} 
var name = name_example; // {{String}} 
var code = code_example; // {{String}} 
var type = ; // {{License_Type}} 
var company = ; // {{Company}} 

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

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

            var apiInstance = new SystemApi();
            var id = id_example;  // String | 
            var name = name_example;  // String | 
            var code = code_example;  // String | 
            var type = new License_Type(); // License_Type | 
            var company = new Company(); // Company | 

            try
            {
                // Create a License
                License result = apiInstance.licensePost(id, name, code, type, company);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.licensePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSystemApi();
$id = id_example; // String | 
$name = name_example; // String | 
$code = code_example; // String | 
$type = ; // License_Type | 
$company = ; // Company | 

try {
    $result = $api_instance->licensePost($id, $name, $code, $type, $company);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SystemApi->licensePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SystemApi;

my $api_instance = WWW::SwaggerClient::SystemApi->new();
my $id = id_example; # String | 
my $name = name_example; # String | 
my $code = code_example; # String | 
my $type = ; # License_Type | 
my $company = ; # Company | 

eval { 
    my $result = $api_instance->licensePost(id => $id, name => $name, code => $code, type => $type, company => $company);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SystemApi->licensePost: $@\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.SystemApi()
id = id_example # String | 
name = name_example # String | 
code = code_example # String | 
type =  # License_Type | 
company =  # Company | 

try: 
    # Create a License
    api_response = api_instance.license_post(id, name, code, type, company)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->licensePost: %s\n" % e)

Parameters

Form parameters
Name Description
id*
String
Required
name*
String
Required
code*
String
Required
type*
License_Type
Required
company*
Company
Required

Responses

Status: 201 - Created