Vending Machine API Document (Call back) - Connectivity Platform - Vending on Track

DataFeedCallbackAPI

feedAlertsPost

Send a vending machine alert to the third party platform


/feed/alerts

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://3rdparty.connectivityPlatformIntegration.com//feed/alerts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DataFeedCallbackAPIApi;

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

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        AlertNotification body = ; // AlertNotification | 
        try {
            CallbackResponse result = apiInstance.feedAlertsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedAlertsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DataFeedCallbackAPIApi;

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        AlertNotification body = ; // AlertNotification | 
        try {
            CallbackResponse result = apiInstance.feedAlertsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedAlertsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
AlertNotification *body = ; // 

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

// Send a vending machine alert to the third party platform
[apiInstance feedAlertsPostWith:body
              completionHandler: ^(CallbackResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack = require('vending_machine_api_document__call_back___connectivity_platform___vending_on_track');
var defaultClient = VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

var api = new VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.DataFeedCallbackAPIApi()
var body = ; // {{AlertNotification}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DataFeedCallbackAPIApi();
            var body = new AlertNotification(); // AlertNotification | 

            try
            {
                // Send a vending machine alert to the third party platform
                CallbackResponse result = apiInstance.feedAlertsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DataFeedCallbackAPIApi.feedAlertsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');// Configure HTTP basic authorization: BasicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDataFeedCallbackAPIApi();
$body = ; // AlertNotification | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";# Configure HTTP basic authorization: BasicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DataFeedCallbackAPIApi->new();
my $body = WWW::SwaggerClient::Object::AlertNotification->new(); # AlertNotification | 

eval { 
    my $result = $api_instance->feedAlertsPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DataFeedCallbackAPIApi->feedAlertsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'# Configure HTTP basic authorization: BasicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DataFeedCallbackAPIApi()
body =  # AlertNotification | 

try: 
    # Send a vending machine alert to the third party platform
    api_response = api_instance.feed_alerts_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DataFeedCallbackAPIApi->feedAlertsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


feedButtonActionsPost

Notify the third party platform that a button on the telemetry box has been clicked


/feed/button_actions

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://3rdparty.connectivityPlatformIntegration.com//feed/button_actions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DataFeedCallbackAPIApi;

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

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        ButtonActionNotification body = ; // ButtonActionNotification | 
        try {
            CallbackResponse result = apiInstance.feedButtonActionsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedButtonActionsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DataFeedCallbackAPIApi;

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        ButtonActionNotification body = ; // ButtonActionNotification | 
        try {
            CallbackResponse result = apiInstance.feedButtonActionsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedButtonActionsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
ButtonActionNotification *body = ; // 

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

// Notify the third party platform that a button on the telemetry box has been clicked
[apiInstance feedButtonActionsPostWith:body
              completionHandler: ^(CallbackResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack = require('vending_machine_api_document__call_back___connectivity_platform___vending_on_track');
var defaultClient = VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

var api = new VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.DataFeedCallbackAPIApi()
var body = ; // {{ButtonActionNotification}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DataFeedCallbackAPIApi();
            var body = new ButtonActionNotification(); // ButtonActionNotification | 

            try
            {
                // Notify the third party platform that a button on the telemetry box has been clicked
                CallbackResponse result = apiInstance.feedButtonActionsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DataFeedCallbackAPIApi.feedButtonActionsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');// Configure HTTP basic authorization: BasicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDataFeedCallbackAPIApi();
$body = ; // ButtonActionNotification | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";# Configure HTTP basic authorization: BasicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DataFeedCallbackAPIApi->new();
my $body = WWW::SwaggerClient::Object::ButtonActionNotification->new(); # ButtonActionNotification | 

eval { 
    my $result = $api_instance->feedButtonActionsPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DataFeedCallbackAPIApi->feedButtonActionsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'# Configure HTTP basic authorization: BasicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DataFeedCallbackAPIApi()
body =  # ButtonActionNotification | 

try: 
    # Notify the third party platform that a button on the telemetry box has been clicked
    api_response = api_instance.feed_button_actions_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DataFeedCallbackAPIApi->feedButtonActionsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


feedRefillsPost

Notify the third party platform that vending machine has been refilled


/feed/refills

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://3rdparty.connectivityPlatformIntegration.com//feed/refills"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DataFeedCallbackAPIApi;

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

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        RefillNotification body = ; // RefillNotification | 
        try {
            CallbackResponse result = apiInstance.feedRefillsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedRefillsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DataFeedCallbackAPIApi;

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        RefillNotification body = ; // RefillNotification | 
        try {
            CallbackResponse result = apiInstance.feedRefillsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedRefillsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
RefillNotification *body = ; // 

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

// Notify the third party platform that vending machine has been refilled
[apiInstance feedRefillsPostWith:body
              completionHandler: ^(CallbackResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack = require('vending_machine_api_document__call_back___connectivity_platform___vending_on_track');
var defaultClient = VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

var api = new VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.DataFeedCallbackAPIApi()
var body = ; // {{RefillNotification}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DataFeedCallbackAPIApi();
            var body = new RefillNotification(); // RefillNotification | 

            try
            {
                // Notify the third party platform that vending machine has been refilled
                CallbackResponse result = apiInstance.feedRefillsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DataFeedCallbackAPIApi.feedRefillsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');// Configure HTTP basic authorization: BasicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDataFeedCallbackAPIApi();
$body = ; // RefillNotification | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";# Configure HTTP basic authorization: BasicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DataFeedCallbackAPIApi->new();
my $body = WWW::SwaggerClient::Object::RefillNotification->new(); # RefillNotification | 

eval { 
    my $result = $api_instance->feedRefillsPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DataFeedCallbackAPIApi->feedRefillsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'# Configure HTTP basic authorization: BasicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DataFeedCallbackAPIApi()
body =  # RefillNotification | 

try: 
    # Notify the third party platform that vending machine has been refilled
    api_response = api_instance.feed_refills_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DataFeedCallbackAPIApi->feedRefillsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


feedTransactionsPost

Notify the third party platform that vending machine has dispensed products, this also includes transactions approved by 3rd party integration via payment API.


/feed/transactions

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://3rdparty.connectivityPlatformIntegration.com//feed/transactions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DataFeedCallbackAPIApi;

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

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        TransactionNotification body = ; // TransactionNotification | 
        try {
            CallbackResponse result = apiInstance.feedTransactionsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedTransactionsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DataFeedCallbackAPIApi;

public class DataFeedCallbackAPIApiExample {

    public static void main(String[] args) {
        DataFeedCallbackAPIApi apiInstance = new DataFeedCallbackAPIApi();
        TransactionNotification body = ; // TransactionNotification | 
        try {
            CallbackResponse result = apiInstance.feedTransactionsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DataFeedCallbackAPIApi#feedTransactionsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
TransactionNotification *body = ; // 

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

// Notify the third party platform that vending machine has dispensed products, this also includes transactions approved by 3rd party integration via payment API.
[apiInstance feedTransactionsPostWith:body
              completionHandler: ^(CallbackResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack = require('vending_machine_api_document__call_back___connectivity_platform___vending_on_track');
var defaultClient = VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

var api = new VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.DataFeedCallbackAPIApi()
var body = ; // {{TransactionNotification}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DataFeedCallbackAPIApi();
            var body = new TransactionNotification(); // TransactionNotification | 

            try
            {
                // Notify the third party platform that vending machine has dispensed products, this also includes transactions approved by 3rd party integration via payment API.
                CallbackResponse result = apiInstance.feedTransactionsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DataFeedCallbackAPIApi.feedTransactionsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');// Configure HTTP basic authorization: BasicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDataFeedCallbackAPIApi();
$body = ; // TransactionNotification | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";# Configure HTTP basic authorization: BasicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DataFeedCallbackAPIApi->new();
my $body = WWW::SwaggerClient::Object::TransactionNotification->new(); # TransactionNotification | 

eval { 
    my $result = $api_instance->feedTransactionsPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DataFeedCallbackAPIApi->feedTransactionsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'# Configure HTTP basic authorization: BasicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DataFeedCallbackAPIApi()
body =  # TransactionNotification | 

try: 
    # Notify the third party platform that vending machine has dispensed products, this also includes transactions approved by 3rd party integration via payment API.
    api_response = api_instance.feed_transactions_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DataFeedCallbackAPIApi->feedTransactionsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


PaymentCallbackAPI

txnRequestPost

Notify payment integration that the customer has made a selection


/txn/request

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://3rdparty.connectivityPlatformIntegration.com//txn/request"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentCallbackAPIApi;

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

public class PaymentCallbackAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        PaymentCallbackAPIApi apiInstance = new PaymentCallbackAPIApi();
        SelectionNotification body = ; // SelectionNotification | 
        try {
            CallbackResponse result = apiInstance.txnRequestPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCallbackAPIApi#txnRequestPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentCallbackAPIApi;

public class PaymentCallbackAPIApiExample {

    public static void main(String[] args) {
        PaymentCallbackAPIApi apiInstance = new PaymentCallbackAPIApi();
        SelectionNotification body = ; // SelectionNotification | 
        try {
            CallbackResponse result = apiInstance.txnRequestPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCallbackAPIApi#txnRequestPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
SelectionNotification *body = ; // 

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

// Notify payment integration that the customer has made a selection
[apiInstance txnRequestPostWith:body
              completionHandler: ^(CallbackResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack = require('vending_machine_api_document__call_back___connectivity_platform___vending_on_track');
var defaultClient = VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

var api = new VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.PaymentCallbackAPIApi()
var body = ; // {{SelectionNotification}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new PaymentCallbackAPIApi();
            var body = new SelectionNotification(); // SelectionNotification | 

            try
            {
                // Notify payment integration that the customer has made a selection
                CallbackResponse result = apiInstance.txnRequestPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentCallbackAPIApi.txnRequestPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');// Configure HTTP basic authorization: BasicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiPaymentCallbackAPIApi();
$body = ; // SelectionNotification | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";# Configure HTTP basic authorization: BasicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::PaymentCallbackAPIApi->new();
my $body = WWW::SwaggerClient::Object::SelectionNotification->new(); # SelectionNotification | 

eval { 
    my $result = $api_instance->txnRequestPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentCallbackAPIApi->txnRequestPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'# Configure HTTP basic authorization: BasicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.PaymentCallbackAPIApi()
body =  # SelectionNotification | 

try: 
    # Notify payment integration that the customer has made a selection
    api_response = api_instance.txn_request_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentCallbackAPIApi->txnRequestPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


txnUnlockPost

Vending machine decides unlock/abort the transaction. This is used when a transaction was terminated during a transaction.


/txn/unlock

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://3rdparty.connectivityPlatformIntegration.com//txn/unlock"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentCallbackAPIApi;

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

public class PaymentCallbackAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        PaymentCallbackAPIApi apiInstance = new PaymentCallbackAPIApi();
        UnlockNotification body = ; // UnlockNotification | 
        try {
            CallbackResponse result = apiInstance.txnUnlockPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCallbackAPIApi#txnUnlockPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentCallbackAPIApi;

public class PaymentCallbackAPIApiExample {

    public static void main(String[] args) {
        PaymentCallbackAPIApi apiInstance = new PaymentCallbackAPIApi();
        UnlockNotification body = ; // UnlockNotification | 
        try {
            CallbackResponse result = apiInstance.txnUnlockPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCallbackAPIApi#txnUnlockPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
UnlockNotification *body = ; // 

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

// Vending machine decides unlock/abort the transaction. This is used when a transaction was terminated during a transaction.
[apiInstance txnUnlockPostWith:body
              completionHandler: ^(CallbackResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack = require('vending_machine_api_document__call_back___connectivity_platform___vending_on_track');
var defaultClient = VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

var api = new VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.PaymentCallbackAPIApi()
var body = ; // {{UnlockNotification}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new PaymentCallbackAPIApi();
            var body = new UnlockNotification(); // UnlockNotification | 

            try
            {
                // Vending machine decides unlock/abort the transaction. This is used when a transaction was terminated during a transaction.
                CallbackResponse result = apiInstance.txnUnlockPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentCallbackAPIApi.txnUnlockPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');// Configure HTTP basic authorization: BasicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiPaymentCallbackAPIApi();
$body = ; // UnlockNotification | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";# Configure HTTP basic authorization: BasicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::PaymentCallbackAPIApi->new();
my $body = WWW::SwaggerClient::Object::UnlockNotification->new(); # UnlockNotification | 

eval { 
    my $result = $api_instance->txnUnlockPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentCallbackAPIApi->txnUnlockPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'# Configure HTTP basic authorization: BasicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.PaymentCallbackAPIApi()
body =  # UnlockNotification | 

try: 
    # Vending machine decides unlock/abort the transaction. This is used when a transaction was terminated during a transaction.
    api_response = api_instance.txn_unlock_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentCallbackAPIApi->txnUnlockPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


txnVendPost

Notify payment integration the result of a vend/transaction


/txn/vend

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://3rdparty.connectivityPlatformIntegration.com//txn/vend"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentCallbackAPIApi;

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

public class PaymentCallbackAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        PaymentCallbackAPIApi apiInstance = new PaymentCallbackAPIApi();
        VendResultNotification body = ; // VendResultNotification | 
        try {
            CallbackResponse result = apiInstance.txnVendPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCallbackAPIApi#txnVendPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentCallbackAPIApi;

public class PaymentCallbackAPIApiExample {

    public static void main(String[] args) {
        PaymentCallbackAPIApi apiInstance = new PaymentCallbackAPIApi();
        VendResultNotification body = ; // VendResultNotification | 
        try {
            CallbackResponse result = apiInstance.txnVendPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentCallbackAPIApi#txnVendPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
VendResultNotification *body = ; // 

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

// Notify payment integration the result of a vend/transaction
[apiInstance txnVendPostWith:body
              completionHandler: ^(CallbackResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack = require('vending_machine_api_document__call_back___connectivity_platform___vending_on_track');
var defaultClient = VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

var api = new VendingMachineApiDocumentCallBackConnectivityPlatformVendingOnTrack.PaymentCallbackAPIApi()
var body = ; // {{VendResultNotification}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new PaymentCallbackAPIApi();
            var body = new VendResultNotification(); // VendResultNotification | 

            try
            {
                // Notify payment integration the result of a vend/transaction
                CallbackResponse result = apiInstance.txnVendPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentCallbackAPIApi.txnVendPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');// Configure HTTP basic authorization: BasicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiPaymentCallbackAPIApi();
$body = ; // VendResultNotification | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";# Configure HTTP basic authorization: BasicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::PaymentCallbackAPIApi->new();
my $body = WWW::SwaggerClient::Object::VendResultNotification->new(); # VendResultNotification | 

eval { 
    my $result = $api_instance->txnVendPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentCallbackAPIApi->txnVendPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'# Configure HTTP basic authorization: BasicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.PaymentCallbackAPIApi()
body =  # VendResultNotification | 

try: 
    # Notify payment integration the result of a vend/transaction
    api_response = api_instance.txn_vend_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentCallbackAPIApi->txnVendPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK