Selfnet APP

Campaigns

getRewards

List available rewards


/campaigns/{id}/rewards

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/campaigns/{id}/rewards"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CampaignsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CampaignsApi apiInstance = new CampaignsApi();
        String id = id_example; // String | Campaign ID
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Campaign ID
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.CampaignsApi;

public class CampaignsApiExample {
    public static void main(String[] args) {
        CampaignsApi apiInstance = new CampaignsApi();
        String id = id_example; // String | Campaign ID
        Integer supplierId = 56; // Integer | 

        try {
            AvailableRewards result = apiInstance.getRewards(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CampaignsApi#getRewards");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CampaignsApi *apiInstance = [[CampaignsApi alloc] init];
String *id = id_example; // Campaign ID (default to null)
Integer *supplierId = 56; //  (default to null)

// List available rewards
[apiInstance getRewardsWith:id
    supplierId:supplierId
              completionHandler: ^(AvailableRewards output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CampaignsApi()
var id = id_example; // {String} Campaign ID
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getRewardsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CampaignsApi();
            var id = id_example;  // String | Campaign ID (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // List available rewards
                AvailableRewards result = apiInstance.getRewards(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CampaignsApi.getRewards: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CampaignsApi();
$id = id_example; // String | Campaign ID
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CampaignsApi->new();
my $id = id_example; # String | Campaign ID
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getRewards(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CampaignsApi->getRewards: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CampaignsApi()
id = id_example # String | Campaign ID (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # List available rewards
    api_response = api_instance.get_rewards(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CampaignsApi->getRewards: %s\n" % e)
extern crate CampaignsApi;

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

    let mut context = CampaignsApi::Context::default();
    let result = client.getRewards(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Campaign ID
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


getRewardsCampaignDetails

Retrieve rewards campaign details


/campaigns/{id}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/campaigns/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CampaignsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CampaignsApi apiInstance = new CampaignsApi();
        String id = id_example; // String | Campaign ID
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Campaign ID
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.CampaignsApi;

public class CampaignsApiExample {
    public static void main(String[] args) {
        CampaignsApi apiInstance = new CampaignsApi();
        String id = id_example; // String | Campaign ID
        Integer supplierId = 56; // Integer | 

        try {
            CampaignDetails result = apiInstance.getRewardsCampaignDetails(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CampaignsApi#getRewardsCampaignDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CampaignsApi *apiInstance = [[CampaignsApi alloc] init];
String *id = id_example; // Campaign ID (default to null)
Integer *supplierId = 56; //  (default to null)

// Retrieve rewards campaign details
[apiInstance getRewardsCampaignDetailsWith:id
    supplierId:supplierId
              completionHandler: ^(CampaignDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CampaignsApi()
var id = id_example; // {String} Campaign ID
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getRewardsCampaignDetailsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CampaignsApi();
            var id = id_example;  // String | Campaign ID (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Retrieve rewards campaign details
                CampaignDetails result = apiInstance.getRewardsCampaignDetails(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CampaignsApi.getRewardsCampaignDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CampaignsApi();
$id = id_example; // String | Campaign ID
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CampaignsApi->new();
my $id = id_example; # String | Campaign ID
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getRewardsCampaignDetails(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CampaignsApi->getRewardsCampaignDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CampaignsApi()
id = id_example # String | Campaign ID (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # Retrieve rewards campaign details
    api_response = api_instance.get_rewards_campaign_details(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CampaignsApi->getRewardsCampaignDetails: %s\n" % e)
extern crate CampaignsApi;

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

    let mut context = CampaignsApi::Context::default();
    let result = client.getRewardsCampaignDetails(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Campaign ID
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


getRewardsCampaigns

Get all reward campaigns


/campaigns

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/campaigns"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CampaignsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CampaignsApi apiInstance = new CampaignsApi();
        Integer supplierId = 56; // Integer | 

        try {
            get_rewards_campaigns_200_response result = apiInstance.getRewardsCampaigns(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CampaignsApi#getRewardsCampaigns");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.CampaignsApi;

public class CampaignsApiExample {
    public static void main(String[] args) {
        CampaignsApi apiInstance = new CampaignsApi();
        Integer supplierId = 56; // Integer | 

        try {
            get_rewards_campaigns_200_response result = apiInstance.getRewardsCampaigns(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CampaignsApi#getRewardsCampaigns");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CampaignsApi *apiInstance = [[CampaignsApi alloc] init];
Integer *supplierId = 56; //  (default to null)

// Get all reward campaigns
[apiInstance getRewardsCampaignsWith:supplierId
              completionHandler: ^(get_rewards_campaigns_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CampaignsApi()
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getRewardsCampaignsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CampaignsApi();
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Get all reward campaigns
                get_rewards_campaigns_200_response result = apiInstance.getRewardsCampaigns(supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CampaignsApi.getRewardsCampaigns: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CampaignsApi();
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CampaignsApi->new();
my $supplierId = 56; # Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CampaignsApi()
supplierId = 56 # Integer |  (default to null)

try:
    # Get all reward campaigns
    api_response = api_instance.get_rewards_campaigns(supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CampaignsApi->getRewardsCampaigns: %s\n" % e)
extern crate CampaignsApi;

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

    let mut context = CampaignsApi::Context::default();
    let result = client.getRewardsCampaigns(supplierId, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
Integer
Required

Responses


getRewardsHistory

Rewards redemption history


/campaigns/{id}/rewards/history

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/campaigns/{id}/rewards/history?start_range=startRange_example&end_range=endRange_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CampaignsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CampaignsApi apiInstance = new CampaignsApi();
        String id = id_example; // String | Campaign ID
        Integer supplierId = 56; // Integer | 
        String startRange = startRange_example; // String | UNIX datetime
        String endRange = endRange_example; // String | UNIX datetime

        try {
            get_rewards_history_200_response result = apiInstance.getRewardsHistory(id, supplierId, startRange, endRange);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CampaignsApi#getRewardsHistory");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | Campaign ID
final Integer supplierId = new Integer(); // Integer | 
final String startRange = new String(); // String | UNIX datetime
final String endRange = new String(); // String | UNIX datetime

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

import org.openapitools.client.api.CampaignsApi;

public class CampaignsApiExample {
    public static void main(String[] args) {
        CampaignsApi apiInstance = new CampaignsApi();
        String id = id_example; // String | Campaign ID
        Integer supplierId = 56; // Integer | 
        String startRange = startRange_example; // String | UNIX datetime
        String endRange = endRange_example; // String | UNIX datetime

        try {
            get_rewards_history_200_response result = apiInstance.getRewardsHistory(id, supplierId, startRange, endRange);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CampaignsApi#getRewardsHistory");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CampaignsApi *apiInstance = [[CampaignsApi alloc] init];
String *id = id_example; // Campaign ID (default to null)
Integer *supplierId = 56; //  (default to null)
String *startRange = startRange_example; // UNIX datetime (optional) (default to null)
String *endRange = endRange_example; // UNIX datetime (optional) (default to null)

// Rewards redemption history
[apiInstance getRewardsHistoryWith:id
    supplierId:supplierId
    startRange:startRange
    endRange:endRange
              completionHandler: ^(get_rewards_history_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CampaignsApi()
var id = id_example; // {String} Campaign ID
var supplierId = 56; // {Integer} 
var opts = {
  'startRange': startRange_example, // {String} UNIX datetime
  'endRange': endRange_example // {String} UNIX datetime
};

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

namespace Example
{
    public class getRewardsHistoryExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CampaignsApi();
            var id = id_example;  // String | Campaign ID (default to null)
            var supplierId = 56;  // Integer |  (default to null)
            var startRange = startRange_example;  // String | UNIX datetime (optional)  (default to null)
            var endRange = endRange_example;  // String | UNIX datetime (optional)  (default to null)

            try {
                // Rewards redemption history
                get_rewards_history_200_response result = apiInstance.getRewardsHistory(id, supplierId, startRange, endRange);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CampaignsApi.getRewardsHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CampaignsApi();
$id = id_example; // String | Campaign ID
$supplierId = 56; // Integer | 
$startRange = startRange_example; // String | UNIX datetime
$endRange = endRange_example; // String | UNIX datetime

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CampaignsApi->new();
my $id = id_example; # String | Campaign ID
my $supplierId = 56; # Integer | 
my $startRange = startRange_example; # String | UNIX datetime
my $endRange = endRange_example; # String | UNIX datetime

eval {
    my $result = $api_instance->getRewardsHistory(id => $id, supplierId => $supplierId, startRange => $startRange, endRange => $endRange);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CampaignsApi->getRewardsHistory: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CampaignsApi()
id = id_example # String | Campaign ID (default to null)
supplierId = 56 # Integer |  (default to null)
startRange = startRange_example # String | UNIX datetime (optional) (default to null)
endRange = endRange_example # String | UNIX datetime (optional) (default to null)

try:
    # Rewards redemption history
    api_response = api_instance.get_rewards_history(id, supplierId, startRange=startRange, endRange=endRange)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CampaignsApi->getRewardsHistory: %s\n" % e)
extern crate CampaignsApi;

pub fn main() {
    let id = id_example; // String
    let supplierId = 56; // Integer
    let startRange = startRange_example; // String
    let endRange = endRange_example; // String

    let mut context = CampaignsApi::Context::default();
    let result = client.getRewardsHistory(id, supplierId, startRange, endRange, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Campaign ID
Required
Header parameters
Name Description
supplier-id*
Integer
Required
Query parameters
Name Description
start_range
String
UNIX datetime
end_range
String
UNIX datetime

Responses


Cards

getCards

Card List


/cards

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CardsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CardsApi apiInstance = new CardsApi();
        Integer supplierId = 56; // Integer | 

        try {
            get_cards_200_response result = apiInstance.getCards(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getCards");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.CardsApi;

public class CardsApiExample {
    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        Integer supplierId = 56; // Integer | 

        try {
            get_cards_200_response result = apiInstance.getCards(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getCards");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CardsApi *apiInstance = [[CardsApi alloc] init];
Integer *supplierId = 56; //  (default to null)

// Card List
[apiInstance getCardsWith:supplierId
              completionHandler: ^(get_cards_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CardsApi()
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getCardsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CardsApi();
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Card List
                get_cards_200_response result = apiInstance.getCards(supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CardsApi.getCards: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CardsApi();
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CardsApi->new();
my $supplierId = 56; # Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CardsApi()
supplierId = 56 # Integer |  (default to null)

try:
    # Card List
    api_response = api_instance.get_cards(supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->getCards: %s\n" % e)
extern crate CardsApi;

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

    let mut context = CardsApi::Context::default();
    let result = client.getCards(supplierId, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
Integer
Required

Responses


getCardsId

Card details


/cards/{id}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CardsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | Card ID
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Card ID
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.CardsApi;

public class CardsApiExample {
    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | Card ID
        Integer supplierId = 56; // Integer | 

        try {
            CardDetails result = apiInstance.getCardsId(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getCardsId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CardsApi *apiInstance = [[CardsApi alloc] init];
String *id = id_example; // Card ID (default to null)
Integer *supplierId = 56; //  (default to null)

// Card details
[apiInstance getCardsIdWith:id
    supplierId:supplierId
              completionHandler: ^(CardDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CardsApi()
var id = id_example; // {String} Card ID
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getCardsIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CardsApi();
            var id = id_example;  // String | Card ID (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Card details
                CardDetails result = apiInstance.getCardsId(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CardsApi.getCardsId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CardsApi();
$id = id_example; // String | Card ID
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CardsApi->new();
my $id = id_example; # String | Card ID
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getCardsId(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->getCardsId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CardsApi()
id = id_example # String | Card ID (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # Card details
    api_response = api_instance.get_cards_id(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->getCardsId: %s\n" % e)
extern crate CardsApi;

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

    let mut context = CardsApi::Context::default();
    let result = client.getCardsId(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Card ID
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


getOnlinePinCards

Get online PIN enabled cards


/cards/pin/online

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards/pin/online"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CardsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CardsApi apiInstance = new CardsApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.CardsApi;

public class CardsApiExample {
    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();

        try {
            get_online_pin_cards_200_response result = apiInstance.getOnlinePinCards();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getOnlinePinCards");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CardsApi *apiInstance = [[CardsApi alloc] init];

// Get online PIN enabled cards
[apiInstance getOnlinePinCardsWithCompletionHandler: 
              ^(get_online_pin_cards_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CardsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOnlinePinCards(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getOnlinePinCardsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CardsApi();

            try {
                // Get online PIN enabled cards
                get_online_pin_cards_200_response result = apiInstance.getOnlinePinCards();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CardsApi.getOnlinePinCards: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CardsApi();

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CardsApi->new();

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CardsApi()

try:
    # Get online PIN enabled cards
    api_response = api_instance.get_online_pin_cards()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->getOnlinePinCards: %s\n" % e)
extern crate CardsApi;

pub fn main() {

    let mut context = CardsApi::Context::default();
    let result = client.getOnlinePinCards(&context).wait();

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

Scopes

Parameters

Responses


getTransactions

Get transactions

Gets a list of the matching transactions


/cards/transactions

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards/transactions?card_type=56&date_start=56&date_end=56&oil=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CardsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CardsApi apiInstance = new CardsApi();
        Integer supplierId = 56; // Integer | 
        Integer cardType = 56; // Integer | card type's ID (rechargeable, end of month, etc.)
        Integer dateStart = 56; // Integer | UNIX datetime
        Integer dateEnd = 56; // Integer | UNIX datetime
        Boolean oil = true; // Boolean | true to get only oil transactions, false to get only nonoil transactions

        try {
            get_transactions_200_response result = apiInstance.getTransactions(supplierId, cardType, dateStart, dateEnd, oil);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getTransactions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 
final Integer cardType = new Integer(); // Integer | card type's ID (rechargeable, end of month, etc.)
final Integer dateStart = new Integer(); // Integer | UNIX datetime
final Integer dateEnd = new Integer(); // Integer | UNIX datetime
final Boolean oil = new Boolean(); // Boolean | true to get only oil transactions, false to get only nonoil transactions

try {
    final result = await api_instance.getTransactions(supplierId, cardType, dateStart, dateEnd, oil);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getTransactions: $e\n');
}

import org.openapitools.client.api.CardsApi;

public class CardsApiExample {
    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        Integer supplierId = 56; // Integer | 
        Integer cardType = 56; // Integer | card type's ID (rechargeable, end of month, etc.)
        Integer dateStart = 56; // Integer | UNIX datetime
        Integer dateEnd = 56; // Integer | UNIX datetime
        Boolean oil = true; // Boolean | true to get only oil transactions, false to get only nonoil transactions

        try {
            get_transactions_200_response result = apiInstance.getTransactions(supplierId, cardType, dateStart, dateEnd, oil);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getTransactions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CardsApi *apiInstance = [[CardsApi alloc] init];
Integer *supplierId = 56; //  (default to null)
Integer *cardType = 56; // card type's ID (rechargeable, end of month, etc.) (optional) (default to null)
Integer *dateStart = 56; // UNIX datetime (optional) (default to null)
Integer *dateEnd = 56; // UNIX datetime (optional) (default to null)
Boolean *oil = true; // true to get only oil transactions, false to get only nonoil transactions (optional) (default to null)

// Get transactions
[apiInstance getTransactionsWith:supplierId
    cardType:cardType
    dateStart:dateStart
    dateEnd:dateEnd
    oil:oil
              completionHandler: ^(get_transactions_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CardsApi()
var supplierId = 56; // {Integer} 
var opts = {
  'cardType': 56, // {Integer} card type's ID (rechargeable, end of month, etc.)
  'dateStart': 56, // {Integer} UNIX datetime
  'dateEnd': 56, // {Integer} UNIX datetime
  'oil': true // {Boolean} true to get only oil transactions, false to get only nonoil transactions
};

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

namespace Example
{
    public class getTransactionsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CardsApi();
            var supplierId = 56;  // Integer |  (default to null)
            var cardType = 56;  // Integer | card type's ID (rechargeable, end of month, etc.) (optional)  (default to null)
            var dateStart = 56;  // Integer | UNIX datetime (optional)  (default to null)
            var dateEnd = 56;  // Integer | UNIX datetime (optional)  (default to null)
            var oil = true;  // Boolean | true to get only oil transactions, false to get only nonoil transactions (optional)  (default to null)

            try {
                // Get transactions
                get_transactions_200_response result = apiInstance.getTransactions(supplierId, cardType, dateStart, dateEnd, oil);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CardsApi.getTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CardsApi();
$supplierId = 56; // Integer | 
$cardType = 56; // Integer | card type's ID (rechargeable, end of month, etc.)
$dateStart = 56; // Integer | UNIX datetime
$dateEnd = 56; // Integer | UNIX datetime
$oil = true; // Boolean | true to get only oil transactions, false to get only nonoil transactions

try {
    $result = $api_instance->getTransactions($supplierId, $cardType, $dateStart, $dateEnd, $oil);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardsApi->getTransactions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CardsApi;

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CardsApi->new();
my $supplierId = 56; # Integer | 
my $cardType = 56; # Integer | card type's ID (rechargeable, end of month, etc.)
my $dateStart = 56; # Integer | UNIX datetime
my $dateEnd = 56; # Integer | UNIX datetime
my $oil = true; # Boolean | true to get only oil transactions, false to get only nonoil transactions

eval {
    my $result = $api_instance->getTransactions(supplierId => $supplierId, cardType => $cardType, dateStart => $dateStart, dateEnd => $dateEnd, oil => $oil);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->getTransactions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CardsApi()
supplierId = 56 # Integer |  (default to null)
cardType = 56 # Integer | card type's ID (rechargeable, end of month, etc.) (optional) (default to null)
dateStart = 56 # Integer | UNIX datetime (optional) (default to null)
dateEnd = 56 # Integer | UNIX datetime (optional) (default to null)
oil = true # Boolean | true to get only oil transactions, false to get only nonoil transactions (optional) (default to null)

try:
    # Get transactions
    api_response = api_instance.get_transactions(supplierId, cardType=cardType, dateStart=dateStart, dateEnd=dateEnd, oil=oil)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->getTransactions: %s\n" % e)
extern crate CardsApi;

pub fn main() {
    let supplierId = 56; // Integer
    let cardType = 56; // Integer
    let dateStart = 56; // Integer
    let dateEnd = 56; // Integer
    let oil = true; // Boolean

    let mut context = CardsApi::Context::default();
    let result = client.getTransactions(supplierId, cardType, dateStart, dateEnd, oil, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
Integer
Required
Query parameters
Name Description
card_type
Integer
card type's ID (rechargeable, end of month, etc.)
date_start
Integer
UNIX datetime
date_end
Integer
UNIX datetime
oil
Boolean
true to get only oil transactions, false to get only nonoil transactions

Responses


patchCardsId


/cards/{id}

Usage and SDK Samples

curl -X PATCH \
 \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards/{id}" \
 -d '{
  "is_enabled" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CardsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | Card ID
        CardInput cardInput = ; // CardInput | 

        try {
            apiInstance.patchCardsId(id, cardInput);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#patchCardsId");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | Card ID
final CardInput cardInput = new CardInput(); // CardInput | 

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

import org.openapitools.client.api.CardsApi;

public class CardsApiExample {
    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | Card ID
        CardInput cardInput = ; // CardInput | 

        try {
            apiInstance.patchCardsId(id, cardInput);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#patchCardsId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CardsApi *apiInstance = [[CardsApi alloc] init];
String *id = id_example; // Card ID (default to null)
CardInput *cardInput = ; //  (optional)

// 
[apiInstance patchCardsIdWith:id
    cardInput:cardInput
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CardsApi()
var id = id_example; // {String} Card ID
var opts = {
  'cardInput':  // {CardInput} 
};

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

namespace Example
{
    public class patchCardsIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CardsApi();
            var id = id_example;  // String | Card ID (default to null)
            var cardInput = new CardInput(); // CardInput |  (optional) 

            try {
                // 
                apiInstance.patchCardsId(id, cardInput);
            } catch (Exception e) {
                Debug.Print("Exception when calling CardsApi.patchCardsId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CardsApi();
$id = id_example; // String | Card ID
$cardInput = ; // CardInput | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CardsApi->new();
my $id = id_example; # String | Card ID
my $cardInput = WWW::OPenAPIClient::Object::CardInput->new(); # CardInput | 

eval {
    $api_instance->patchCardsId(id => $id, cardInput => $cardInput);
};
if ($@) {
    warn "Exception when calling CardsApi->patchCardsId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CardsApi()
id = id_example # String | Card ID (default to null)
cardInput =  # CardInput |  (optional)

try:
    # 
    api_instance.patch_cards_id(id, cardInput=cardInput)
except ApiException as e:
    print("Exception when calling CardsApi->patchCardsId: %s\n" % e)
extern crate CardsApi;

pub fn main() {
    let id = id_example; // String
    let cardInput = ; // CardInput

    let mut context = CardsApi::Context::default();
    let result = client.patchCardsId(id, cardInput, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Card ID
Required
Body parameters
Name Description
cardInput

Responses


postCardsPinOffline

Generate Dynamic PIN seeds


/cards/pin/dynamic

Usage and SDK Samples

curl -X POST \
 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards/pin/dynamic" \
 -d '{
  "replace" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CardsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CardsApi apiInstance = new CardsApi();
        CardOfflinePinInput cardOfflinePinInput = ; // CardOfflinePinInput | 

        try {
            post_cards_pin_offline_200_response result = apiInstance.postCardsPinOffline(cardOfflinePinInput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postCardsPinOffline");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CardOfflinePinInput cardOfflinePinInput = new CardOfflinePinInput(); // CardOfflinePinInput | 

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

import org.openapitools.client.api.CardsApi;

public class CardsApiExample {
    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        CardOfflinePinInput cardOfflinePinInput = ; // CardOfflinePinInput | 

        try {
            post_cards_pin_offline_200_response result = apiInstance.postCardsPinOffline(cardOfflinePinInput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postCardsPinOffline");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CardsApi *apiInstance = [[CardsApi alloc] init];
CardOfflinePinInput *cardOfflinePinInput = ; //  (optional)

// Generate Dynamic PIN seeds
[apiInstance postCardsPinOfflineWith:cardOfflinePinInput
              completionHandler: ^(post_cards_pin_offline_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CardsApi()
var opts = {
  'cardOfflinePinInput':  // {CardOfflinePinInput} 
};

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

namespace Example
{
    public class postCardsPinOfflineExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CardsApi();
            var cardOfflinePinInput = new CardOfflinePinInput(); // CardOfflinePinInput |  (optional) 

            try {
                // Generate Dynamic PIN seeds
                post_cards_pin_offline_200_response result = apiInstance.postCardsPinOffline(cardOfflinePinInput);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CardsApi.postCardsPinOffline: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CardsApi();
$cardOfflinePinInput = ; // CardOfflinePinInput | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CardsApi->new();
my $cardOfflinePinInput = WWW::OPenAPIClient::Object::CardOfflinePinInput->new(); # CardOfflinePinInput | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CardsApi()
cardOfflinePinInput =  # CardOfflinePinInput |  (optional)

try:
    # Generate Dynamic PIN seeds
    api_response = api_instance.post_cards_pin_offline(cardOfflinePinInput=cardOfflinePinInput)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postCardsPinOffline: %s\n" % e)
extern crate CardsApi;

pub fn main() {
    let cardOfflinePinInput = ; // CardOfflinePinInput

    let mut context = CardsApi::Context::default();
    let result = client.postCardsPinOffline(cardOfflinePinInput, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
cardOfflinePinInput

Responses


postCardsPinOnline

Generate an online PIN


/cards/pin/online

Usage and SDK Samples

curl -X POST \
 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards/pin/online" \
 -d '{
  "card_pan" : "card_pan"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CardsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CardsApi apiInstance = new CardsApi();
        CardOnlinePinRequestInput cardOnlinePinRequestInput = ; // CardOnlinePinRequestInput | 

        try {
            CardOnlinePinRequestOutput result = apiInstance.postCardsPinOnline(cardOnlinePinRequestInput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postCardsPinOnline");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CardOnlinePinRequestInput cardOnlinePinRequestInput = new CardOnlinePinRequestInput(); // CardOnlinePinRequestInput | 

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

import org.openapitools.client.api.CardsApi;

public class CardsApiExample {
    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        CardOnlinePinRequestInput cardOnlinePinRequestInput = ; // CardOnlinePinRequestInput | 

        try {
            CardOnlinePinRequestOutput result = apiInstance.postCardsPinOnline(cardOnlinePinRequestInput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postCardsPinOnline");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CardsApi *apiInstance = [[CardsApi alloc] init];
CardOnlinePinRequestInput *cardOnlinePinRequestInput = ; //  (optional)

// Generate an online PIN
[apiInstance postCardsPinOnlineWith:cardOnlinePinRequestInput
              completionHandler: ^(CardOnlinePinRequestOutput output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CardsApi()
var opts = {
  'cardOnlinePinRequestInput':  // {CardOnlinePinRequestInput} 
};

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

namespace Example
{
    public class postCardsPinOnlineExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CardsApi();
            var cardOnlinePinRequestInput = new CardOnlinePinRequestInput(); // CardOnlinePinRequestInput |  (optional) 

            try {
                // Generate an online PIN
                CardOnlinePinRequestOutput result = apiInstance.postCardsPinOnline(cardOnlinePinRequestInput);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CardsApi.postCardsPinOnline: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CardsApi();
$cardOnlinePinRequestInput = ; // CardOnlinePinRequestInput | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CardsApi->new();
my $cardOnlinePinRequestInput = WWW::OPenAPIClient::Object::CardOnlinePinRequestInput->new(); # CardOnlinePinRequestInput | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CardsApi()
cardOnlinePinRequestInput =  # CardOnlinePinRequestInput |  (optional)

try:
    # Generate an online PIN
    api_response = api_instance.post_cards_pin_online(cardOnlinePinRequestInput=cardOnlinePinRequestInput)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postCardsPinOnline: %s\n" % e)
extern crate CardsApi;

pub fn main() {
    let cardOnlinePinRequestInput = ; // CardOnlinePinRequestInput

    let mut context = CardsApi::Context::default();
    let result = client.postCardsPinOnline(cardOnlinePinRequestInput, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
cardOnlinePinRequestInput

Responses


Configuration

getConfiguration

Info for basic settings


/configuration

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/configuration"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConfigurationApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        ConfigurationApi apiInstance = new ConfigurationApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.ConfigurationApi;

public class ConfigurationApiExample {
    public static void main(String[] args) {
        ConfigurationApi apiInstance = new ConfigurationApi();

        try {
            Configuration result = apiInstance.getConfiguration();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationApi#getConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init];

// Info for basic settings
[apiInstance getConfigurationWithCompletionHandler: 
              ^(Configuration output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.ConfigurationApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getConfiguration(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getConfigurationExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConfigurationApi();

            try {
                // Info for basic settings
                Configuration result = apiInstance.getConfiguration();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConfigurationApi.getConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConfigurationApi();

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConfigurationApi->new();

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConfigurationApi()

try:
    # Info for basic settings
    api_response = api_instance.get_configuration()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConfigurationApi->getConfiguration: %s\n" % e)
extern crate ConfigurationApi;

pub fn main() {

    let mut context = ConfigurationApi::Context::default();
    let result = client.getConfiguration(&context).wait();

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

Scopes

Parameters

Responses


Customers

getCustomersId

Get customer details by id


/customers/{id}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/customers/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CustomersApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | 
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.CustomersApi;

public class CustomersApiExample {
    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

        try {
            Customer result = apiInstance.getCustomersId(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getCustomersId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
CustomersApi *apiInstance = [[CustomersApi alloc] init];
String *id = id_example; //  (default to null)
Integer *supplierId = 56; //  (default to null)

// Get customer details by id
[apiInstance getCustomersIdWith:id
    supplierId:supplierId
              completionHandler: ^(Customer output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.CustomersApi()
var id = id_example; // {String} 
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getCustomersIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CustomersApi();
            var id = id_example;  // String |  (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Get customer details by id
                Customer result = apiInstance.getCustomersId(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CustomersApi.getCustomersId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CustomersApi();
$id = id_example; // String | 
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CustomersApi->new();
my $id = id_example; # String | 
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getCustomersId(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->getCustomersId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CustomersApi()
id = id_example # String |  (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # Get customer details by id
    api_response = api_instance.get_customers_id(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->getCustomersId: %s\n" % e)
extern crate CustomersApi;

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

    let mut context = CustomersApi::Context::default();
    let result = client.getCustomersId(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


Default

getCardsIdMovements

Retrieve a list of all the movements by card


/cards/{id}/movements

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/cards/{id}/movements"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | 
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

        try {
            get_cards_id_movements_200_response result = apiInstance.getCardsIdMovements(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCardsIdMovements");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *id = id_example; //  (default to null)
Integer *supplierId = 56; //  (default to null)

// Retrieve a list of all the movements by card
[apiInstance getCardsIdMovementsWith:id
    supplierId:supplierId
              completionHandler: ^(get_cards_id_movements_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.DefaultApi()
var id = id_example; // {String} 
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getCardsIdMovementsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = id_example;  // String |  (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Retrieve a list of all the movements by card
                get_cards_id_movements_200_response result = apiInstance.getCardsIdMovements(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.getCardsIdMovements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = id_example; // String | 
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

eval {
    my $result = $api_instance->getCardsIdMovements(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getCardsIdMovements: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = id_example # String |  (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # Retrieve a list of all the movements by card
    api_response = api_instance.get_cards_id_movements(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getCardsIdMovements: %s\n" % e)
extern crate DefaultApi;

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


Ecommerce

ecommerceNexiPaymentNotification

Handle response from Nexi cash page. All queryparams coming from Nexi page callback must be put in internal call


/ecommerce/nexi/payments/notification

Usage and SDK Samples

curl -X POST \
 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/ecommerce/nexi/payments/notification" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EcommerceApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        EcommerceApi apiInstance = new EcommerceApi();
        Object body = Object; // Object | 

        try {
            ecommerce_nexi_payment_notification_200_response result = apiInstance.ecommerceNexiPaymentNotification(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#ecommerceNexiPaymentNotification");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

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

import org.openapitools.client.api.EcommerceApi;

public class EcommerceApiExample {
    public static void main(String[] args) {
        EcommerceApi apiInstance = new EcommerceApi();
        Object body = Object; // Object | 

        try {
            ecommerce_nexi_payment_notification_200_response result = apiInstance.ecommerceNexiPaymentNotification(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#ecommerceNexiPaymentNotification");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
EcommerceApi *apiInstance = [[EcommerceApi alloc] init];
Object *body = Object; //  (optional)

// 
[apiInstance ecommerceNexiPaymentNotificationWith:body
              completionHandler: ^(ecommerce_nexi_payment_notification_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.EcommerceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class ecommerceNexiPaymentNotificationExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new EcommerceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // 
                ecommerce_nexi_payment_notification_200_response result = apiInstance.ecommerceNexiPaymentNotification(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EcommerceApi.ecommerceNexiPaymentNotification: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EcommerceApi();
$body = Object; // Object | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EcommerceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.EcommerceApi()
body = Object # Object |  (optional)

try:
    # 
    api_response = api_instance.ecommerce_nexi_payment_notification(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EcommerceApi->ecommerceNexiPaymentNotification: %s\n" % e)
extern crate EcommerceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = EcommerceApi::Context::default();
    let result = client.ecommerceNexiPaymentNotification(body, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
body

All Nexi query string params are passed to this internal notification api

Responses


ecommerceNexiPaymentStart

Start a new payment request redirecting to Nexi cash page


/ecommerce/nexi/payments/start

Usage and SDK Samples

curl -X POST \
 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/ecommerce/nexi/payments/start" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EcommerceApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        EcommerceApi apiInstance = new EcommerceApi();
        EcommerceNexiPaymentStartRequest ecommerceNexiPaymentStartRequest = ; // EcommerceNexiPaymentStartRequest | 

        try {
            ecommerce_nexi_payment_start_200_response result = apiInstance.ecommerceNexiPaymentStart(ecommerceNexiPaymentStartRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#ecommerceNexiPaymentStart");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EcommerceNexiPaymentStartRequest ecommerceNexiPaymentStartRequest = new EcommerceNexiPaymentStartRequest(); // EcommerceNexiPaymentStartRequest | 

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

import org.openapitools.client.api.EcommerceApi;

public class EcommerceApiExample {
    public static void main(String[] args) {
        EcommerceApi apiInstance = new EcommerceApi();
        EcommerceNexiPaymentStartRequest ecommerceNexiPaymentStartRequest = ; // EcommerceNexiPaymentStartRequest | 

        try {
            ecommerce_nexi_payment_start_200_response result = apiInstance.ecommerceNexiPaymentStart(ecommerceNexiPaymentStartRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#ecommerceNexiPaymentStart");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
EcommerceApi *apiInstance = [[EcommerceApi alloc] init];
EcommerceNexiPaymentStartRequest *ecommerceNexiPaymentStartRequest = ; //  (optional)

// 
[apiInstance ecommerceNexiPaymentStartWith:ecommerceNexiPaymentStartRequest
              completionHandler: ^(ecommerce_nexi_payment_start_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.EcommerceApi()
var opts = {
  'ecommerceNexiPaymentStartRequest':  // {EcommerceNexiPaymentStartRequest} 
};

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

namespace Example
{
    public class ecommerceNexiPaymentStartExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new EcommerceApi();
            var ecommerceNexiPaymentStartRequest = new EcommerceNexiPaymentStartRequest(); // EcommerceNexiPaymentStartRequest |  (optional) 

            try {
                // 
                ecommerce_nexi_payment_start_200_response result = apiInstance.ecommerceNexiPaymentStart(ecommerceNexiPaymentStartRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EcommerceApi.ecommerceNexiPaymentStart: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EcommerceApi();
$ecommerceNexiPaymentStartRequest = ; // EcommerceNexiPaymentStartRequest | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EcommerceApi->new();
my $ecommerceNexiPaymentStartRequest = WWW::OPenAPIClient::Object::EcommerceNexiPaymentStartRequest->new(); # EcommerceNexiPaymentStartRequest | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.EcommerceApi()
ecommerceNexiPaymentStartRequest =  # EcommerceNexiPaymentStartRequest |  (optional)

try:
    # 
    api_response = api_instance.ecommerce_nexi_payment_start(ecommerceNexiPaymentStartRequest=ecommerceNexiPaymentStartRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EcommerceApi->ecommerceNexiPaymentStart: %s\n" % e)
extern crate EcommerceApi;

pub fn main() {
    let ecommerceNexiPaymentStartRequest = ; // EcommerceNexiPaymentStartRequest

    let mut context = EcommerceApi::Context::default();
    let result = client.ecommerceNexiPaymentStart(ecommerceNexiPaymentStartRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
ecommerceNexiPaymentStartRequest

Responses


getEcommerceCardsBills

Get ecommerce active rechargeable card bills

Get ecommerce active rechargeable card bills for the current supplier


/ecommerce/cards/bills

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/ecommerce/cards/bills"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EcommerceApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        EcommerceApi apiInstance = new EcommerceApi();
        String supplierId = supplierId_example; // String | 

        try {
            RechargeableBills result = apiInstance.getEcommerceCardsBills(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#getEcommerceCardsBills");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String supplierId = new String(); // String | 

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

import org.openapitools.client.api.EcommerceApi;

public class EcommerceApiExample {
    public static void main(String[] args) {
        EcommerceApi apiInstance = new EcommerceApi();
        String supplierId = supplierId_example; // String | 

        try {
            RechargeableBills result = apiInstance.getEcommerceCardsBills(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#getEcommerceCardsBills");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
EcommerceApi *apiInstance = [[EcommerceApi alloc] init];
String *supplierId = supplierId_example; //  (default to null)

// Get ecommerce active rechargeable card bills
[apiInstance getEcommerceCardsBillsWith:supplierId
              completionHandler: ^(RechargeableBills output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.EcommerceApi()
var supplierId = supplierId_example; // {String} 

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

namespace Example
{
    public class getEcommerceCardsBillsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new EcommerceApi();
            var supplierId = supplierId_example;  // String |  (default to null)

            try {
                // Get ecommerce active rechargeable card bills
                RechargeableBills result = apiInstance.getEcommerceCardsBills(supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EcommerceApi.getEcommerceCardsBills: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EcommerceApi();
$supplierId = supplierId_example; // String | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EcommerceApi->new();
my $supplierId = supplierId_example; # String | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.EcommerceApi()
supplierId = supplierId_example # String |  (default to null)

try:
    # Get ecommerce active rechargeable card bills
    api_response = api_instance.get_ecommerce_cards_bills(supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EcommerceApi->getEcommerceCardsBills: %s\n" % e)
extern crate EcommerceApi;

pub fn main() {
    let supplierId = supplierId_example; // String

    let mut context = EcommerceApi::Context::default();
    let result = client.getEcommerceCardsBills(supplierId, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
String
Required

Responses


getEcommerceFuelcouponBills

Get ecommerce active fuelcoupon bills

Get ecommerce active fuelcoupon bills for the current supplier


/ecommerce/fuelcoupons/bills

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/ecommerce/fuelcoupons/bills"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EcommerceApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        EcommerceApi apiInstance = new EcommerceApi();
        String supplierId = supplierId_example; // String | 

        try {
            FuelcouponBills result = apiInstance.getEcommerceFuelcouponBills(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#getEcommerceFuelcouponBills");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String supplierId = new String(); // String | 

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

import org.openapitools.client.api.EcommerceApi;

public class EcommerceApiExample {
    public static void main(String[] args) {
        EcommerceApi apiInstance = new EcommerceApi();
        String supplierId = supplierId_example; // String | 

        try {
            FuelcouponBills result = apiInstance.getEcommerceFuelcouponBills(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#getEcommerceFuelcouponBills");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
EcommerceApi *apiInstance = [[EcommerceApi alloc] init];
String *supplierId = supplierId_example; //  (default to null)

// Get ecommerce active fuelcoupon bills
[apiInstance getEcommerceFuelcouponBillsWith:supplierId
              completionHandler: ^(FuelcouponBills output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.EcommerceApi()
var supplierId = supplierId_example; // {String} 

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

namespace Example
{
    public class getEcommerceFuelcouponBillsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new EcommerceApi();
            var supplierId = supplierId_example;  // String |  (default to null)

            try {
                // Get ecommerce active fuelcoupon bills
                FuelcouponBills result = apiInstance.getEcommerceFuelcouponBills(supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EcommerceApi.getEcommerceFuelcouponBills: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EcommerceApi();
$supplierId = supplierId_example; // String | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EcommerceApi->new();
my $supplierId = supplierId_example; # String | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.EcommerceApi()
supplierId = supplierId_example # String |  (default to null)

try:
    # Get ecommerce active fuelcoupon bills
    api_response = api_instance.get_ecommerce_fuelcoupon_bills(supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EcommerceApi->getEcommerceFuelcouponBills: %s\n" % e)
extern crate EcommerceApi;

pub fn main() {
    let supplierId = supplierId_example; // String

    let mut context = EcommerceApi::Context::default();
    let result = client.getEcommerceFuelcouponBills(supplierId, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
String
Required

Responses


patchEcommerceNexiCustomersContract

Save Nexi customer contract number

Save the Nexi customer contract provided when during payment it was saved a card


/ecommerce/nexi/customers/contract

Usage and SDK Samples

curl -X PATCH \
 \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/ecommerce/nexi/customers/contract" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EcommerceApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        EcommerceApi apiInstance = new EcommerceApi();
        String supplierId = supplierId_example; // String | 
        PatchEcommerceNexiCustomersContractRequest patchEcommerceNexiCustomersContractRequest = ; // PatchEcommerceNexiCustomersContractRequest | 

        try {
            apiInstance.patchEcommerceNexiCustomersContract(supplierId, patchEcommerceNexiCustomersContractRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#patchEcommerceNexiCustomersContract");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String supplierId = new String(); // String | 
final PatchEcommerceNexiCustomersContractRequest patchEcommerceNexiCustomersContractRequest = new PatchEcommerceNexiCustomersContractRequest(); // PatchEcommerceNexiCustomersContractRequest | 

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

import org.openapitools.client.api.EcommerceApi;

public class EcommerceApiExample {
    public static void main(String[] args) {
        EcommerceApi apiInstance = new EcommerceApi();
        String supplierId = supplierId_example; // String | 
        PatchEcommerceNexiCustomersContractRequest patchEcommerceNexiCustomersContractRequest = ; // PatchEcommerceNexiCustomersContractRequest | 

        try {
            apiInstance.patchEcommerceNexiCustomersContract(supplierId, patchEcommerceNexiCustomersContractRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling EcommerceApi#patchEcommerceNexiCustomersContract");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
EcommerceApi *apiInstance = [[EcommerceApi alloc] init];
String *supplierId = supplierId_example; //  (default to null)
PatchEcommerceNexiCustomersContractRequest *patchEcommerceNexiCustomersContractRequest = ; //  (optional)

// Save Nexi customer contract number
[apiInstance patchEcommerceNexiCustomersContractWith:supplierId
    patchEcommerceNexiCustomersContractRequest:patchEcommerceNexiCustomersContractRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.EcommerceApi()
var supplierId = supplierId_example; // {String} 
var opts = {
  'patchEcommerceNexiCustomersContractRequest':  // {PatchEcommerceNexiCustomersContractRequest} 
};

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

namespace Example
{
    public class patchEcommerceNexiCustomersContractExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new EcommerceApi();
            var supplierId = supplierId_example;  // String |  (default to null)
            var patchEcommerceNexiCustomersContractRequest = new PatchEcommerceNexiCustomersContractRequest(); // PatchEcommerceNexiCustomersContractRequest |  (optional) 

            try {
                // Save Nexi customer contract number
                apiInstance.patchEcommerceNexiCustomersContract(supplierId, patchEcommerceNexiCustomersContractRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling EcommerceApi.patchEcommerceNexiCustomersContract: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EcommerceApi();
$supplierId = supplierId_example; // String | 
$patchEcommerceNexiCustomersContractRequest = ; // PatchEcommerceNexiCustomersContractRequest | 

try {
    $api_instance->patchEcommerceNexiCustomersContract($supplierId, $patchEcommerceNexiCustomersContractRequest);
} catch (Exception $e) {
    echo 'Exception when calling EcommerceApi->patchEcommerceNexiCustomersContract: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EcommerceApi;

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EcommerceApi->new();
my $supplierId = supplierId_example; # String | 
my $patchEcommerceNexiCustomersContractRequest = WWW::OPenAPIClient::Object::PatchEcommerceNexiCustomersContractRequest->new(); # PatchEcommerceNexiCustomersContractRequest | 

eval {
    $api_instance->patchEcommerceNexiCustomersContract(supplierId => $supplierId, patchEcommerceNexiCustomersContractRequest => $patchEcommerceNexiCustomersContractRequest);
};
if ($@) {
    warn "Exception when calling EcommerceApi->patchEcommerceNexiCustomersContract: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.EcommerceApi()
supplierId = supplierId_example # String |  (default to null)
patchEcommerceNexiCustomersContractRequest =  # PatchEcommerceNexiCustomersContractRequest |  (optional)

try:
    # Save Nexi customer contract number
    api_instance.patch_ecommerce_nexi_customers_contract(supplierId, patchEcommerceNexiCustomersContractRequest=patchEcommerceNexiCustomersContractRequest)
except ApiException as e:
    print("Exception when calling EcommerceApi->patchEcommerceNexiCustomersContract: %s\n" % e)
extern crate EcommerceApi;

pub fn main() {
    let supplierId = supplierId_example; // String
    let patchEcommerceNexiCustomersContractRequest = ; // PatchEcommerceNexiCustomersContractRequest

    let mut context = EcommerceApi::Context::default();
    let result = client.patchEcommerceNexiCustomersContract(supplierId, patchEcommerceNexiCustomersContractRequest, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier_id*
String
Required
Body parameters
Name Description
patchEcommerceNexiCustomersContractRequest

Responses


Fuelcoupons

getFuelcoupons

List active fuel coupons


/fuelcoupons

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/fuelcoupons"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FuelcouponsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        FuelcouponsApi apiInstance = new FuelcouponsApi();
        Integer supplierId = 56; // Integer | 

        try {
            get_fuelcoupons_200_response result = apiInstance.getFuelcoupons(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FuelcouponsApi#getFuelcoupons");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.FuelcouponsApi;

public class FuelcouponsApiExample {
    public static void main(String[] args) {
        FuelcouponsApi apiInstance = new FuelcouponsApi();
        Integer supplierId = 56; // Integer | 

        try {
            get_fuelcoupons_200_response result = apiInstance.getFuelcoupons(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FuelcouponsApi#getFuelcoupons");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
FuelcouponsApi *apiInstance = [[FuelcouponsApi alloc] init];
Integer *supplierId = 56; //  (default to null)

// List active fuel coupons
[apiInstance getFuelcouponsWith:supplierId
              completionHandler: ^(get_fuelcoupons_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.FuelcouponsApi()
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getFuelcouponsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new FuelcouponsApi();
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // List active fuel coupons
                get_fuelcoupons_200_response result = apiInstance.getFuelcoupons(supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FuelcouponsApi.getFuelcoupons: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FuelcouponsApi();
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FuelcouponsApi->new();
my $supplierId = 56; # Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.FuelcouponsApi()
supplierId = 56 # Integer |  (default to null)

try:
    # List active fuel coupons
    api_response = api_instance.get_fuelcoupons(supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FuelcouponsApi->getFuelcoupons: %s\n" % e)
extern crate FuelcouponsApi;

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

    let mut context = FuelcouponsApi::Context::default();
    let result = client.getFuelcoupons(supplierId, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
Integer
Required

Responses


getFuelcouponsId

Fuel coupon details


/fuelcoupons/{id}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/fuelcoupons/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FuelcouponsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        FuelcouponsApi apiInstance = new FuelcouponsApi();
        String id = id_example; // String | Fuel coupon ID
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Fuel coupon ID
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.FuelcouponsApi;

public class FuelcouponsApiExample {
    public static void main(String[] args) {
        FuelcouponsApi apiInstance = new FuelcouponsApi();
        String id = id_example; // String | Fuel coupon ID
        Integer supplierId = 56; // Integer | 

        try {
            FuelCouponDetails result = apiInstance.getFuelcouponsId(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FuelcouponsApi#getFuelcouponsId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
FuelcouponsApi *apiInstance = [[FuelcouponsApi alloc] init];
String *id = id_example; // Fuel coupon ID (default to null)
Integer *supplierId = 56; //  (default to null)

// Fuel coupon details
[apiInstance getFuelcouponsIdWith:id
    supplierId:supplierId
              completionHandler: ^(FuelCouponDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.FuelcouponsApi()
var id = id_example; // {String} Fuel coupon ID
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getFuelcouponsIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new FuelcouponsApi();
            var id = id_example;  // String | Fuel coupon ID (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Fuel coupon details
                FuelCouponDetails result = apiInstance.getFuelcouponsId(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FuelcouponsApi.getFuelcouponsId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FuelcouponsApi();
$id = id_example; // String | Fuel coupon ID
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FuelcouponsApi->new();
my $id = id_example; # String | Fuel coupon ID
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getFuelcouponsId(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FuelcouponsApi->getFuelcouponsId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.FuelcouponsApi()
id = id_example # String | Fuel coupon ID (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # Fuel coupon details
    api_response = api_instance.get_fuelcoupons_id(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FuelcouponsApi->getFuelcouponsId: %s\n" % e)
extern crate FuelcouponsApi;

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

    let mut context = FuelcouponsApi::Context::default();
    let result = client.getFuelcouponsId(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Fuel coupon ID
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


getFuelcouponsTransactions

GET fuelcoupon transactions

Get fuelcoupon transactions


/fuelcoupons/transactions

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/fuelcoupons/transactions?date_start=56&date_end=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FuelcouponsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        FuelcouponsApi apiInstance = new FuelcouponsApi();
        Integer supplierId = 56; // Integer | 
        Integer dateStart = 56; // Integer | Unit datetime
        Integer dateEnd = 56; // Integer | Unit datetime

        try {
            get_fuelcoupons_transactions_200_response result = apiInstance.getFuelcouponsTransactions(supplierId, dateStart, dateEnd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FuelcouponsApi#getFuelcouponsTransactions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 
final Integer dateStart = new Integer(); // Integer | Unit datetime
final Integer dateEnd = new Integer(); // Integer | Unit datetime

try {
    final result = await api_instance.getFuelcouponsTransactions(supplierId, dateStart, dateEnd);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getFuelcouponsTransactions: $e\n');
}

import org.openapitools.client.api.FuelcouponsApi;

public class FuelcouponsApiExample {
    public static void main(String[] args) {
        FuelcouponsApi apiInstance = new FuelcouponsApi();
        Integer supplierId = 56; // Integer | 
        Integer dateStart = 56; // Integer | Unit datetime
        Integer dateEnd = 56; // Integer | Unit datetime

        try {
            get_fuelcoupons_transactions_200_response result = apiInstance.getFuelcouponsTransactions(supplierId, dateStart, dateEnd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FuelcouponsApi#getFuelcouponsTransactions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
FuelcouponsApi *apiInstance = [[FuelcouponsApi alloc] init];
Integer *supplierId = 56; //  (default to null)
Integer *dateStart = 56; // Unit datetime (optional) (default to null)
Integer *dateEnd = 56; // Unit datetime (optional) (default to null)

// GET fuelcoupon transactions
[apiInstance getFuelcouponsTransactionsWith:supplierId
    dateStart:dateStart
    dateEnd:dateEnd
              completionHandler: ^(get_fuelcoupons_transactions_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.FuelcouponsApi()
var supplierId = 56; // {Integer} 
var opts = {
  'dateStart': 56, // {Integer} Unit datetime
  'dateEnd': 56 // {Integer} Unit datetime
};

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

namespace Example
{
    public class getFuelcouponsTransactionsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new FuelcouponsApi();
            var supplierId = 56;  // Integer |  (default to null)
            var dateStart = 56;  // Integer | Unit datetime (optional)  (default to null)
            var dateEnd = 56;  // Integer | Unit datetime (optional)  (default to null)

            try {
                // GET fuelcoupon transactions
                get_fuelcoupons_transactions_200_response result = apiInstance.getFuelcouponsTransactions(supplierId, dateStart, dateEnd);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FuelcouponsApi.getFuelcouponsTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FuelcouponsApi();
$supplierId = 56; // Integer | 
$dateStart = 56; // Integer | Unit datetime
$dateEnd = 56; // Integer | Unit datetime

try {
    $result = $api_instance->getFuelcouponsTransactions($supplierId, $dateStart, $dateEnd);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FuelcouponsApi->getFuelcouponsTransactions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FuelcouponsApi;

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FuelcouponsApi->new();
my $supplierId = 56; # Integer | 
my $dateStart = 56; # Integer | Unit datetime
my $dateEnd = 56; # Integer | Unit datetime

eval {
    my $result = $api_instance->getFuelcouponsTransactions(supplierId => $supplierId, dateStart => $dateStart, dateEnd => $dateEnd);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FuelcouponsApi->getFuelcouponsTransactions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.FuelcouponsApi()
supplierId = 56 # Integer |  (default to null)
dateStart = 56 # Integer | Unit datetime (optional) (default to null)
dateEnd = 56 # Integer | Unit datetime (optional) (default to null)

try:
    # GET fuelcoupon transactions
    api_response = api_instance.get_fuelcoupons_transactions(supplierId, dateStart=dateStart, dateEnd=dateEnd)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FuelcouponsApi->getFuelcouponsTransactions: %s\n" % e)
extern crate FuelcouponsApi;

pub fn main() {
    let supplierId = 56; // Integer
    let dateStart = 56; // Integer
    let dateEnd = 56; // Integer

    let mut context = FuelcouponsApi::Context::default();
    let result = client.getFuelcouponsTransactions(supplierId, dateStart, dateEnd, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier_id*
Integer
Required
Query parameters
Name Description
date_start
Integer
Unit datetime
date_end
Integer
Unit datetime

Responses


Fuelstations

getFuelstations

GET fuelstations


/fuelstations/search

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/fuelstations/search?latitude=8.14&longitude=8.14&articles=articles_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FuelstationsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        FuelstationsApi apiInstance = new FuelstationsApi();
        Integer supplierId = 56; // Integer | 
        BigDecimal latitude = 8.14; // BigDecimal | Optional, used for nearby fuel stations
        BigDecimal longitude = 8.14; // BigDecimal | Optional, used for nearby fuel stations
        String articles = articles_example; // String | Optional, used to filter fuel stations

        try {
            get_fuelstations_200_response result = apiInstance.getFuelstations(supplierId, latitude, longitude, articles);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FuelstationsApi#getFuelstations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 
final BigDecimal latitude = new BigDecimal(); // BigDecimal | Optional, used for nearby fuel stations
final BigDecimal longitude = new BigDecimal(); // BigDecimal | Optional, used for nearby fuel stations
final String articles = new String(); // String | Optional, used to filter fuel stations

try {
    final result = await api_instance.getFuelstations(supplierId, latitude, longitude, articles);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getFuelstations: $e\n');
}

import org.openapitools.client.api.FuelstationsApi;

public class FuelstationsApiExample {
    public static void main(String[] args) {
        FuelstationsApi apiInstance = new FuelstationsApi();
        Integer supplierId = 56; // Integer | 
        BigDecimal latitude = 8.14; // BigDecimal | Optional, used for nearby fuel stations
        BigDecimal longitude = 8.14; // BigDecimal | Optional, used for nearby fuel stations
        String articles = articles_example; // String | Optional, used to filter fuel stations

        try {
            get_fuelstations_200_response result = apiInstance.getFuelstations(supplierId, latitude, longitude, articles);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FuelstationsApi#getFuelstations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
FuelstationsApi *apiInstance = [[FuelstationsApi alloc] init];
Integer *supplierId = 56; //  (default to null)
BigDecimal *latitude = 8.14; // Optional, used for nearby fuel stations (optional) (default to null)
BigDecimal *longitude = 8.14; // Optional, used for nearby fuel stations (optional) (default to null)
String *articles = articles_example; // Optional, used to filter fuel stations (optional) (default to null)

// GET fuelstations
[apiInstance getFuelstationsWith:supplierId
    latitude:latitude
    longitude:longitude
    articles:articles
              completionHandler: ^(get_fuelstations_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.FuelstationsApi()
var supplierId = 56; // {Integer} 
var opts = {
  'latitude': 8.14, // {BigDecimal} Optional, used for nearby fuel stations
  'longitude': 8.14, // {BigDecimal} Optional, used for nearby fuel stations
  'articles': articles_example // {String} Optional, used to filter fuel stations
};

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

namespace Example
{
    public class getFuelstationsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new FuelstationsApi();
            var supplierId = 56;  // Integer |  (default to null)
            var latitude = 8.14;  // BigDecimal | Optional, used for nearby fuel stations (optional)  (default to null)
            var longitude = 8.14;  // BigDecimal | Optional, used for nearby fuel stations (optional)  (default to null)
            var articles = articles_example;  // String | Optional, used to filter fuel stations (optional)  (default to null)

            try {
                // GET fuelstations
                get_fuelstations_200_response result = apiInstance.getFuelstations(supplierId, latitude, longitude, articles);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FuelstationsApi.getFuelstations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FuelstationsApi();
$supplierId = 56; // Integer | 
$latitude = 8.14; // BigDecimal | Optional, used for nearby fuel stations
$longitude = 8.14; // BigDecimal | Optional, used for nearby fuel stations
$articles = articles_example; // String | Optional, used to filter fuel stations

try {
    $result = $api_instance->getFuelstations($supplierId, $latitude, $longitude, $articles);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FuelstationsApi->getFuelstations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FuelstationsApi;

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FuelstationsApi->new();
my $supplierId = 56; # Integer | 
my $latitude = 8.14; # BigDecimal | Optional, used for nearby fuel stations
my $longitude = 8.14; # BigDecimal | Optional, used for nearby fuel stations
my $articles = articles_example; # String | Optional, used to filter fuel stations

eval {
    my $result = $api_instance->getFuelstations(supplierId => $supplierId, latitude => $latitude, longitude => $longitude, articles => $articles);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FuelstationsApi->getFuelstations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.FuelstationsApi()
supplierId = 56 # Integer |  (default to null)
latitude = 8.14 # BigDecimal | Optional, used for nearby fuel stations (optional) (default to null)
longitude = 8.14 # BigDecimal | Optional, used for nearby fuel stations (optional) (default to null)
articles = articles_example # String | Optional, used to filter fuel stations (optional) (default to null)

try:
    # GET fuelstations
    api_response = api_instance.get_fuelstations(supplierId, latitude=latitude, longitude=longitude, articles=articles)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FuelstationsApi->getFuelstations: %s\n" % e)
extern crate FuelstationsApi;

pub fn main() {
    let supplierId = 56; // Integer
    let latitude = 8.14; // BigDecimal
    let longitude = 8.14; // BigDecimal
    let articles = articles_example; // String

    let mut context = FuelstationsApi::Context::default();
    let result = client.getFuelstations(supplierId, latitude, longitude, articles, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
Integer
Required
Query parameters
Name Description
latitude
BigDecimal
Optional, used for nearby fuel stations
longitude
BigDecimal
Optional, used for nearby fuel stations
articles
String
Optional, used to filter fuel stations

Responses


Invoices

getInvoiceIdDetails

Get invoice details

Used to get a list of all details included within the input invoice


/invoices/{id}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/invoices/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InvoicesApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        InvoicesApi apiInstance = new InvoicesApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | 
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.InvoicesApi;

public class InvoicesApiExample {
    public static void main(String[] args) {
        InvoicesApi apiInstance = new InvoicesApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

        try {
            get_invoice_id_details_200_response result = apiInstance.getInvoiceIdDetails(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoiceIdDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
InvoicesApi *apiInstance = [[InvoicesApi alloc] init];
String *id = id_example; //  (default to null)
Integer *supplierId = 56; //  (optional) (default to null)

// Get invoice details
[apiInstance getInvoiceIdDetailsWith:id
    supplierId:supplierId
              completionHandler: ^(get_invoice_id_details_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.InvoicesApi()
var id = id_example; // {String} 
var opts = {
  'supplierId': 56 // {Integer} 
};

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

namespace Example
{
    public class getInvoiceIdDetailsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new InvoicesApi();
            var id = id_example;  // String |  (default to null)
            var supplierId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Get invoice details
                get_invoice_id_details_200_response result = apiInstance.getInvoiceIdDetails(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InvoicesApi.getInvoiceIdDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InvoicesApi();
$id = id_example; // String | 
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InvoicesApi->new();
my $id = id_example; # String | 
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getInvoiceIdDetails(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoicesApi->getInvoiceIdDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.InvoicesApi()
id = id_example # String |  (default to null)
supplierId = 56 # Integer |  (optional) (default to null)

try:
    # Get invoice details
    api_response = api_instance.get_invoice_id_details(id, supplierId=supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoicesApi->getInvoiceIdDetails: %s\n" % e)
extern crate InvoicesApi;

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

    let mut context = InvoicesApi::Context::default();
    let result = client.getInvoiceIdDetails(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
supplier-id
Integer

Responses


getInvoices

Get invoices


/invoices

Usage and SDK Samples

curl -X GET \
 \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/invoices?status=status_example&date_start=dateStart_example&date_end=dateEnd_example" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InvoicesApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        InvoicesApi apiInstance = new InvoicesApi();
        Integer supplierId = 56; // Integer | 
        String status = status_example; // String | It can be "processing" or "history"
        String dateStart = dateStart_example; // String | UNIX datetime. Used only if type == "processing".
        String dateEnd = dateEnd_example; // String | UNIX datetme. Used only if type == "processing".
        GetInvoicesRequest getInvoicesRequest = ; // GetInvoicesRequest | 

        try {
            apiInstance.getInvoices(supplierId, status, dateStart, dateEnd, getInvoicesRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 
final String status = new String(); // String | It can be "processing" or "history"
final String dateStart = new String(); // String | UNIX datetime. Used only if type == "processing".
final String dateEnd = new String(); // String | UNIX datetme. Used only if type == "processing".
final GetInvoicesRequest getInvoicesRequest = new GetInvoicesRequest(); // GetInvoicesRequest | 

try {
    final result = await api_instance.getInvoices(supplierId, status, dateStart, dateEnd, getInvoicesRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getInvoices: $e\n');
}

import org.openapitools.client.api.InvoicesApi;

public class InvoicesApiExample {
    public static void main(String[] args) {
        InvoicesApi apiInstance = new InvoicesApi();
        Integer supplierId = 56; // Integer | 
        String status = status_example; // String | It can be "processing" or "history"
        String dateStart = dateStart_example; // String | UNIX datetime. Used only if type == "processing".
        String dateEnd = dateEnd_example; // String | UNIX datetme. Used only if type == "processing".
        GetInvoicesRequest getInvoicesRequest = ; // GetInvoicesRequest | 

        try {
            apiInstance.getInvoices(supplierId, status, dateStart, dateEnd, getInvoicesRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoices");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
InvoicesApi *apiInstance = [[InvoicesApi alloc] init];
Integer *supplierId = 56; //  (default to null)
String *status = status_example; // It can be "processing" or "history" (optional) (default to null)
String *dateStart = dateStart_example; // UNIX datetime. Used only if type == "processing". (optional) (default to null)
String *dateEnd = dateEnd_example; // UNIX datetme. Used only if type == "processing". (optional) (default to null)
GetInvoicesRequest *getInvoicesRequest = ; //  (optional)

// Get invoices
[apiInstance getInvoicesWith:supplierId
    status:status
    dateStart:dateStart
    dateEnd:dateEnd
    getInvoicesRequest:getInvoicesRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.InvoicesApi()
var supplierId = 56; // {Integer} 
var opts = {
  'status': status_example, // {String} It can be "processing" or "history"
  'dateStart': dateStart_example, // {String} UNIX datetime. Used only if type == "processing".
  'dateEnd': dateEnd_example, // {String} UNIX datetme. Used only if type == "processing".
  'getInvoicesRequest':  // {GetInvoicesRequest} 
};

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

namespace Example
{
    public class getInvoicesExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new InvoicesApi();
            var supplierId = 56;  // Integer |  (default to null)
            var status = status_example;  // String | It can be "processing" or "history" (optional)  (default to null)
            var dateStart = dateStart_example;  // String | UNIX datetime. Used only if type == "processing". (optional)  (default to null)
            var dateEnd = dateEnd_example;  // String | UNIX datetme. Used only if type == "processing". (optional)  (default to null)
            var getInvoicesRequest = new GetInvoicesRequest(); // GetInvoicesRequest |  (optional) 

            try {
                // Get invoices
                apiInstance.getInvoices(supplierId, status, dateStart, dateEnd, getInvoicesRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling InvoicesApi.getInvoices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InvoicesApi();
$supplierId = 56; // Integer | 
$status = status_example; // String | It can be "processing" or "history"
$dateStart = dateStart_example; // String | UNIX datetime. Used only if type == "processing".
$dateEnd = dateEnd_example; // String | UNIX datetme. Used only if type == "processing".
$getInvoicesRequest = ; // GetInvoicesRequest | 

try {
    $api_instance->getInvoices($supplierId, $status, $dateStart, $dateEnd, $getInvoicesRequest);
} catch (Exception $e) {
    echo 'Exception when calling InvoicesApi->getInvoices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InvoicesApi;

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InvoicesApi->new();
my $supplierId = 56; # Integer | 
my $status = status_example; # String | It can be "processing" or "history"
my $dateStart = dateStart_example; # String | UNIX datetime. Used only if type == "processing".
my $dateEnd = dateEnd_example; # String | UNIX datetme. Used only if type == "processing".
my $getInvoicesRequest = WWW::OPenAPIClient::Object::GetInvoicesRequest->new(); # GetInvoicesRequest | 

eval {
    $api_instance->getInvoices(supplierId => $supplierId, status => $status, dateStart => $dateStart, dateEnd => $dateEnd, getInvoicesRequest => $getInvoicesRequest);
};
if ($@) {
    warn "Exception when calling InvoicesApi->getInvoices: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.InvoicesApi()
supplierId = 56 # Integer |  (default to null)
status = status_example # String | It can be "processing" or "history" (optional) (default to null)
dateStart = dateStart_example # String | UNIX datetime. Used only if type == "processing". (optional) (default to null)
dateEnd = dateEnd_example # String | UNIX datetme. Used only if type == "processing". (optional) (default to null)
getInvoicesRequest =  # GetInvoicesRequest |  (optional)

try:
    # Get invoices
    api_instance.get_invoices(supplierId, status=status, dateStart=dateStart, dateEnd=dateEnd, getInvoicesRequest=getInvoicesRequest)
except ApiException as e:
    print("Exception when calling InvoicesApi->getInvoices: %s\n" % e)
extern crate InvoicesApi;

pub fn main() {
    let supplierId = 56; // Integer
    let status = status_example; // String
    let dateStart = dateStart_example; // String
    let dateEnd = dateEnd_example; // String
    let getInvoicesRequest = ; // GetInvoicesRequest

    let mut context = InvoicesApi::Context::default();
    let result = client.getInvoices(supplierId, status, dateStart, dateEnd, getInvoicesRequest, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
Integer
Required
Body parameters
Name Description
getInvoicesRequest

Query parameters
Name Description
status
String
It can be "processing" or "history"
date_start
String
UNIX datetime. Used only if type == "processing".
date_end
String
UNIX datetme. Used only if type == "processing".

Responses


getInvoicesIdPrint

Get printable invoice PDF


/invoices/{id}/print

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/invoices/{id}/print"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InvoicesApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        InvoicesApi apiInstance = new InvoicesApi();
        String id = id_example; // String | Id of the requested invoice
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Id of the requested invoice
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.InvoicesApi;

public class InvoicesApiExample {
    public static void main(String[] args) {
        InvoicesApi apiInstance = new InvoicesApi();
        String id = id_example; // String | Id of the requested invoice
        Integer supplierId = 56; // Integer | 

        try {
            PrintableInvoice result = apiInstance.getInvoicesIdPrint(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoicesIdPrint");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
InvoicesApi *apiInstance = [[InvoicesApi alloc] init];
String *id = id_example; // Id of the requested invoice (default to null)
Integer *supplierId = 56; //  (default to null)

// Get printable invoice PDF
[apiInstance getInvoicesIdPrintWith:id
    supplierId:supplierId
              completionHandler: ^(PrintableInvoice output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.InvoicesApi()
var id = id_example; // {String} Id of the requested invoice
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getInvoicesIdPrintExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new InvoicesApi();
            var id = id_example;  // String | Id of the requested invoice (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Get printable invoice PDF
                PrintableInvoice result = apiInstance.getInvoicesIdPrint(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InvoicesApi.getInvoicesIdPrint: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InvoicesApi();
$id = id_example; // String | Id of the requested invoice
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InvoicesApi->new();
my $id = id_example; # String | Id of the requested invoice
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getInvoicesIdPrint(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoicesApi->getInvoicesIdPrint: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.InvoicesApi()
id = id_example # String | Id of the requested invoice (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # Get printable invoice PDF
    api_response = api_instance.get_invoices_id_print(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoicesApi->getInvoicesIdPrint: %s\n" % e)
extern crate InvoicesApi;

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

    let mut context = InvoicesApi::Context::default();
    let result = client.getInvoicesIdPrint(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Id of the requested invoice
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


Recharges

getRecharges

Get all recharges


/recharges

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/recharges?date_start=dateStart_example&date_end=dateEnd_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RechargesApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        RechargesApi apiInstance = new RechargesApi();
        Integer supplierId = 56; // Integer | 
        String dateStart = dateStart_example; // String | UNIX datetime
        String dateEnd = dateEnd_example; // String | UNIX datetime

        try {
            get_recharges_200_response result = apiInstance.getRecharges(supplierId, dateStart, dateEnd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RechargesApi#getRecharges");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 
final String dateStart = new String(); // String | UNIX datetime
final String dateEnd = new String(); // String | UNIX datetime

try {
    final result = await api_instance.getRecharges(supplierId, dateStart, dateEnd);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getRecharges: $e\n');
}

import org.openapitools.client.api.RechargesApi;

public class RechargesApiExample {
    public static void main(String[] args) {
        RechargesApi apiInstance = new RechargesApi();
        Integer supplierId = 56; // Integer | 
        String dateStart = dateStart_example; // String | UNIX datetime
        String dateEnd = dateEnd_example; // String | UNIX datetime

        try {
            get_recharges_200_response result = apiInstance.getRecharges(supplierId, dateStart, dateEnd);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RechargesApi#getRecharges");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
RechargesApi *apiInstance = [[RechargesApi alloc] init];
Integer *supplierId = 56; //  (default to null)
String *dateStart = dateStart_example; // UNIX datetime (optional) (default to null)
String *dateEnd = dateEnd_example; // UNIX datetime (optional) (default to null)

// Get all recharges
[apiInstance getRechargesWith:supplierId
    dateStart:dateStart
    dateEnd:dateEnd
              completionHandler: ^(get_recharges_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.RechargesApi()
var supplierId = 56; // {Integer} 
var opts = {
  'dateStart': dateStart_example, // {String} UNIX datetime
  'dateEnd': dateEnd_example // {String} UNIX datetime
};

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

namespace Example
{
    public class getRechargesExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new RechargesApi();
            var supplierId = 56;  // Integer |  (default to null)
            var dateStart = dateStart_example;  // String | UNIX datetime (optional)  (default to null)
            var dateEnd = dateEnd_example;  // String | UNIX datetime (optional)  (default to null)

            try {
                // Get all recharges
                get_recharges_200_response result = apiInstance.getRecharges(supplierId, dateStart, dateEnd);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RechargesApi.getRecharges: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RechargesApi();
$supplierId = 56; // Integer | 
$dateStart = dateStart_example; // String | UNIX datetime
$dateEnd = dateEnd_example; // String | UNIX datetime

try {
    $result = $api_instance->getRecharges($supplierId, $dateStart, $dateEnd);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RechargesApi->getRecharges: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RechargesApi;

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RechargesApi->new();
my $supplierId = 56; # Integer | 
my $dateStart = dateStart_example; # String | UNIX datetime
my $dateEnd = dateEnd_example; # String | UNIX datetime

eval {
    my $result = $api_instance->getRecharges(supplierId => $supplierId, dateStart => $dateStart, dateEnd => $dateEnd);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RechargesApi->getRecharges: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.RechargesApi()
supplierId = 56 # Integer |  (default to null)
dateStart = dateStart_example # String | UNIX datetime (optional) (default to null)
dateEnd = dateEnd_example # String | UNIX datetime (optional) (default to null)

try:
    # Get all recharges
    api_response = api_instance.get_recharges(supplierId, dateStart=dateStart, dateEnd=dateEnd)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RechargesApi->getRecharges: %s\n" % e)
extern crate RechargesApi;

pub fn main() {
    let supplierId = 56; // Integer
    let dateStart = dateStart_example; // String
    let dateEnd = dateEnd_example; // String

    let mut context = RechargesApi::Context::default();
    let result = client.getRecharges(supplierId, dateStart, dateEnd, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id*
Integer
Required
Query parameters
Name Description
date_start
String
UNIX datetime
date_end
String
UNIX datetime

Responses


getRechargesId

Get recharge details


/recharges/{id}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/recharges/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RechargesApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        RechargesApi apiInstance = new RechargesApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | 
final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.RechargesApi;

public class RechargesApiExample {
    public static void main(String[] args) {
        RechargesApi apiInstance = new RechargesApi();
        String id = id_example; // String | 
        Integer supplierId = 56; // Integer | 

        try {
            RechargeDetails result = apiInstance.getRechargesId(id, supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RechargesApi#getRechargesId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
RechargesApi *apiInstance = [[RechargesApi alloc] init];
String *id = id_example; //  (default to null)
Integer *supplierId = 56; //  (default to null)

// Get recharge details
[apiInstance getRechargesIdWith:id
    supplierId:supplierId
              completionHandler: ^(RechargeDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.RechargesApi()
var id = id_example; // {String} 
var supplierId = 56; // {Integer} 

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

namespace Example
{
    public class getRechargesIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new RechargesApi();
            var id = id_example;  // String |  (default to null)
            var supplierId = 56;  // Integer |  (default to null)

            try {
                // Get recharge details
                RechargeDetails result = apiInstance.getRechargesId(id, supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RechargesApi.getRechargesId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RechargesApi();
$id = id_example; // String | 
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RechargesApi->new();
my $id = id_example; # String | 
my $supplierId = 56; # Integer | 

eval {
    my $result = $api_instance->getRechargesId(id => $id, supplierId => $supplierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RechargesApi->getRechargesId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.RechargesApi()
id = id_example # String |  (default to null)
supplierId = 56 # Integer |  (default to null)

try:
    # Get recharge details
    api_response = api_instance.get_recharges_id(id, supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RechargesApi->getRechargesId: %s\n" % e)
extern crate RechargesApi;

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

    let mut context = RechargesApi::Context::default();
    let result = client.getRechargesId(id, supplierId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Required
Header parameters
Name Description
supplier-id*
Integer
Required

Responses


Services

getServices

Get active services for logged user


/services

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/services"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServicesApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        ServicesApi apiInstance = new ServicesApi();
        Integer supplierId = 56; // Integer | 

        try {
            Services result = apiInstance.getServices(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServicesApi#getServices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierId = new Integer(); // Integer | 

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

import org.openapitools.client.api.ServicesApi;

public class ServicesApiExample {
    public static void main(String[] args) {
        ServicesApi apiInstance = new ServicesApi();
        Integer supplierId = 56; // Integer | 

        try {
            Services result = apiInstance.getServices(supplierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServicesApi#getServices");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
ServicesApi *apiInstance = [[ServicesApi alloc] init];
Integer *supplierId = 56; //  (optional) (default to null)

// Get active services for logged user
[apiInstance getServicesWith:supplierId
              completionHandler: ^(Services output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.ServicesApi()
var opts = {
  'supplierId': 56 // {Integer} 
};

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

namespace Example
{
    public class getServicesExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ServicesApi();
            var supplierId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Get active services for logged user
                Services result = apiInstance.getServices(supplierId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServicesApi.getServices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServicesApi();
$supplierId = 56; // Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServicesApi->new();
my $supplierId = 56; # Integer | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ServicesApi()
supplierId = 56 # Integer |  (optional) (default to null)

try:
    # Get active services for logged user
    api_response = api_instance.get_services(supplierId=supplierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServicesApi->getServices: %s\n" % e)
extern crate ServicesApi;

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

    let mut context = ServicesApi::Context::default();
    let result = client.getServices(supplierId, &context).wait();

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

Scopes

Parameters

Header parameters
Name Description
supplier-id
Integer

Responses


Suppliers

getSuppliersId

Get supplier details by id

Get details of a supplier using the input ID


/suppliers/{id}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/suppliers/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SuppliersApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        SuppliersApi apiInstance = new SuppliersApi();
        String id = id_example; // String | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | 

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

import org.openapitools.client.api.SuppliersApi;

public class SuppliersApiExample {
    public static void main(String[] args) {
        SuppliersApi apiInstance = new SuppliersApi();
        String id = id_example; // String | 

        try {
            Supplier result = apiInstance.getSuppliersId(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SuppliersApi#getSuppliersId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
SuppliersApi *apiInstance = [[SuppliersApi alloc] init];
String *id = id_example; //  (default to null)

// Get supplier details by id
[apiInstance getSuppliersIdWith:id
              completionHandler: ^(Supplier output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.SuppliersApi()
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.getSuppliersId(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getSuppliersIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new SuppliersApi();
            var id = id_example;  // String |  (default to null)

            try {
                // Get supplier details by id
                Supplier result = apiInstance.getSuppliersId(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SuppliersApi.getSuppliersId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SuppliersApi();
$id = id_example; // String | 

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SuppliersApi->new();
my $id = id_example; # String | 

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.SuppliersApi()
id = id_example # String |  (default to null)

try:
    # Get supplier details by id
    api_response = api_instance.get_suppliers_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SuppliersApi->getSuppliersId: %s\n" % e)
extern crate SuppliersApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Required

Responses


getUsersId

Get user info

Get all the suppliers available for the logged user


/suppliers

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/suppliers"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SuppliersApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        SuppliersApi apiInstance = new SuppliersApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.SuppliersApi;

public class SuppliersApiExample {
    public static void main(String[] args) {
        SuppliersApi apiInstance = new SuppliersApi();

        try {
            Suppliers result = apiInstance.getUsersId();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SuppliersApi#getUsersId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
SuppliersApi *apiInstance = [[SuppliersApi alloc] init];

// Get user info
[apiInstance getUsersIdWithCompletionHandler: 
              ^(Suppliers output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.SuppliersApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUsersId(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUsersIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new SuppliersApi();

            try {
                // Get user info
                Suppliers result = apiInstance.getUsersId();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SuppliersApi.getUsersId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SuppliersApi();

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SuppliersApi->new();

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.SuppliersApi()

try:
    # Get user info
    api_response = api_instance.get_users_id()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SuppliersApi->getUsersId: %s\n" % e)
extern crate SuppliersApi;

pub fn main() {

    let mut context = SuppliersApi::Context::default();
    let result = client.getUsersId(&context).wait();

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

Scopes

Parameters

Responses


Users

getUserTermsAndConditions

Get user terms and conditions approvals


/users/privacy/terms

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/users/privacy/terms"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();

        try {
            Terms result = apiInstance.getUserTermsAndConditions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#getUserTermsAndConditions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];

// Get user terms and conditions approvals
[apiInstance getUserTermsAndConditionsWithCompletionHandler: 
              ^(Terms output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.UsersApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserTermsAndConditions(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUserTermsAndConditionsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new UsersApi();

            try {
                // Get user terms and conditions approvals
                Terms result = apiInstance.getUserTermsAndConditions();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.getUserTermsAndConditions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()

try:
    # Get user terms and conditions approvals
    api_response = api_instance.get_user_terms_and_conditions()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->getUserTermsAndConditions: %s\n" % e)
extern crate UsersApi;

pub fn main() {

    let mut context = UsersApi::Context::default();
    let result = client.getUserTermsAndConditions(&context).wait();

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

Scopes

Parameters

Responses


putUsersPrivacyTerms

Write user terms and conditions approvals


/users/privacy/terms

Usage and SDK Samples

curl -X PUT \
 \
 -H "Content-Type: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/users/privacy/terms" \
 -d '{
  "app_privacy" : true,
  "terms_and_conditions" : true,
  "marketing" : true,
  "third_parties" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Terms terms = ; // Terms | 

        try {
            apiInstance.putUsersPrivacyTerms(terms);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#putUsersPrivacyTerms");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Terms terms = new Terms(); // Terms | 

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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Terms terms = ; // Terms | 

        try {
            apiInstance.putUsersPrivacyTerms(terms);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#putUsersPrivacyTerms");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Terms *terms = ; //  (optional)

// Write user terms and conditions approvals
[apiInstance putUsersPrivacyTermsWith:terms
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.UsersApi()
var opts = {
  'terms':  // {Terms} 
};

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

namespace Example
{
    public class putUsersPrivacyTermsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var terms = new Terms(); // Terms |  (optional) 

            try {
                // Write user terms and conditions approvals
                apiInstance.putUsersPrivacyTerms(terms);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.putUsersPrivacyTerms: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$terms = ; // Terms | 

try {
    $api_instance->putUsersPrivacyTerms($terms);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->putUsersPrivacyTerms: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $terms = WWW::OPenAPIClient::Object::Terms->new(); # Terms | 

eval {
    $api_instance->putUsersPrivacyTerms(terms => $terms);
};
if ($@) {
    warn "Exception when calling UsersApi->putUsersPrivacyTerms: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
terms =  # Terms |  (optional)

try:
    # Write user terms and conditions approvals
    api_instance.put_users_privacy_terms(terms=terms)
except ApiException as e:
    print("Exception when calling UsersApi->putUsersPrivacyTerms: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let terms = ; // Terms

    let mut context = UsersApi::Context::default();
    let result = client.putUsersPrivacyTerms(terms, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
terms

Responses


Versions

getVersions

Get latest app version


/versions/{platform}

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: application/json" \
 "https://mxp-public-sn-app-api.dev.icadsistemi.com/v1/versions/{platform}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VersionsApi;

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

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

        // Configure OAuth2 access token for authorization: Cognito
        OAuth Cognito = (OAuth) defaultClient.getAuthentication("Cognito");
        Cognito.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        VersionsApi apiInstance = new VersionsApi();
        String platform = platform_example; // String | Can be ios or android

        try {
            Version result = apiInstance.getVersions(platform);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VersionsApi#getVersions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String platform = new String(); // String | Can be ios or android

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

import org.openapitools.client.api.VersionsApi;

public class VersionsApiExample {
    public static void main(String[] args) {
        VersionsApi apiInstance = new VersionsApi();
        String platform = platform_example; // String | Can be ios or android

        try {
            Version result = apiInstance.getVersions(platform);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VersionsApi#getVersions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: Cognito)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
VersionsApi *apiInstance = [[VersionsApi alloc] init];
String *platform = platform_example; // Can be ios or android (default to null)

// Get latest app version
[apiInstance getVersionsWith:platform
              completionHandler: ^(Version output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SelfnetApp = require('selfnet_app');
var defaultClient = SelfnetApp.ApiClient.instance;

// Configure OAuth2 access token for authorization: Cognito
var Cognito = defaultClient.authentications['Cognito'];
Cognito.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new SelfnetApp.VersionsApi()
var platform = platform_example; // {String} Can be ios or android

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

namespace Example
{
    public class getVersionsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: Cognito
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new VersionsApi();
            var platform = platform_example;  // String | Can be ios or android (default to null)

            try {
                // Get latest app version
                Version result = apiInstance.getVersions(platform);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VersionsApi.getVersions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: Cognito
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VersionsApi();
$platform = platform_example; // String | Can be ios or android

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

# Configure OAuth2 access token for authorization: Cognito
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VersionsApi->new();
my $platform = platform_example; # String | Can be ios or android

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

# Configure OAuth2 access token for authorization: Cognito
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.VersionsApi()
platform = platform_example # String | Can be ios or android (default to null)

try:
    # Get latest app version
    api_response = api_instance.get_versions(platform)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VersionsApi->getVersions: %s\n" % e)
extern crate VersionsApi;

pub fn main() {
    let platform = platform_example; // String

    let mut context = VersionsApi::Context::default();
    let result = client.getVersions(platform, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
platform*
String
Can be ios or android
Required

Responses