Import export Selfnet

Default

cardsTransfer

Transfer credit between two cards

Transfer credit between two rechargeable cards


/cards/transfer

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/cards/transfer" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CardsTransferRequest cardsTransferRequest = ; // CardsTransferRequest | 

        try {
            apiInstance.cardsTransfer(cardsTransferRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cardsTransfer");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CardsTransferRequest cardsTransferRequest = new CardsTransferRequest(); // CardsTransferRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CardsTransferRequest cardsTransferRequest = ; // CardsTransferRequest | 

        try {
            apiInstance.cardsTransfer(cardsTransferRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#cardsTransfer");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CardsTransferRequest *cardsTransferRequest = ; //  (optional)

// Transfer credit between two cards
[apiInstance cardsTransferWith:cardsTransferRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var opts = {
  'cardsTransferRequest':  // {CardsTransferRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var cardsTransferRequest = new CardsTransferRequest(); // CardsTransferRequest |  (optional) 

            try {
                // Transfer credit between two cards
                apiInstance.cardsTransfer(cardsTransferRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.cardsTransfer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$cardsTransferRequest = ; // CardsTransferRequest | 

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

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

eval {
    $api_instance->cardsTransfer(cardsTransferRequest => $cardsTransferRequest);
};
if ($@) {
    warn "Exception when calling DefaultApi->cardsTransfer: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
cardsTransferRequest =  # CardsTransferRequest |  (optional)

try:
    # Transfer credit between two cards
    api_instance.cards_transfer(cardsTransferRequest=cardsTransferRequest)
except ApiException as e:
    print("Exception when calling DefaultApi->cardsTransfer: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let cardsTransferRequest = ; // CardsTransferRequest

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

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

Scopes

Parameters

Body parameters
Name Description
cardsTransferRequest

Responses


getCards

Get cards data

Used to get one or more cards.


/cards

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/cards?supplier_code=8.14&customer_code=8.14&card_code=8.14&card_code_type=8.14&page=8.14&page_size=pageSize_example" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        BigDecimal supplierCode = 8.14; // BigDecimal | Mandatory supplier_code
        BigDecimal customerCode = 8.14; // BigDecimal | Optional customer code
        BigDecimal cardCode = 8.14; // BigDecimal | Optional card code
        BigDecimal cardCodeType = 8.14; // BigDecimal | Optional card type code
        BigDecimal page = 8.14; // BigDecimal | Desiderd page number (default value 1)
        String pageSize = pageSize_example; // String | Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10)
        GetCardsRequest getCardsRequest = ; // GetCardsRequest | 

        try {
            array[Card] result = apiInstance.getCards(supplierCode, customerCode, cardCode, cardCodeType, page, pageSize, getCardsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCards");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BigDecimal supplierCode = new BigDecimal(); // BigDecimal | Mandatory supplier_code
final BigDecimal customerCode = new BigDecimal(); // BigDecimal | Optional customer code
final BigDecimal cardCode = new BigDecimal(); // BigDecimal | Optional card code
final BigDecimal cardCodeType = new BigDecimal(); // BigDecimal | Optional card type code
final BigDecimal page = new BigDecimal(); // BigDecimal | Desiderd page number (default value 1)
final String pageSize = new String(); // String | Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10)
final GetCardsRequest getCardsRequest = new GetCardsRequest(); // GetCardsRequest | 

try {
    final result = await api_instance.getCards(supplierCode, customerCode, cardCode, cardCodeType, page, pageSize, getCardsRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getCards: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        BigDecimal supplierCode = 8.14; // BigDecimal | Mandatory supplier_code
        BigDecimal customerCode = 8.14; // BigDecimal | Optional customer code
        BigDecimal cardCode = 8.14; // BigDecimal | Optional card code
        BigDecimal cardCodeType = 8.14; // BigDecimal | Optional card type code
        BigDecimal page = 8.14; // BigDecimal | Desiderd page number (default value 1)
        String pageSize = pageSize_example; // String | Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10)
        GetCardsRequest getCardsRequest = ; // GetCardsRequest | 

        try {
            array[Card] result = apiInstance.getCards(supplierCode, customerCode, cardCode, cardCodeType, page, pageSize, getCardsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCards");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
BigDecimal *supplierCode = 8.14; // Mandatory supplier_code (default to null)
BigDecimal *customerCode = 8.14; // Optional customer code (optional) (default to null)
BigDecimal *cardCode = 8.14; // Optional card code (optional) (default to null)
BigDecimal *cardCodeType = 8.14; // Optional card type code (optional) (default to null)
BigDecimal *page = 8.14; // Desiderd page number (default value 1) (optional) (default to null)
String *pageSize = pageSize_example; // Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10) (optional) (default to null)
GetCardsRequest *getCardsRequest = ; //  (optional)

// Get cards data
[apiInstance getCardsWith:supplierCode
    customerCode:customerCode
    cardCode:cardCode
    cardCodeType:cardCodeType
    page:page
    pageSize:pageSize
    getCardsRequest:getCardsRequest
              completionHandler: ^(array[Card] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var supplierCode = 8.14; // {BigDecimal} Mandatory supplier_code
var opts = {
  'customerCode': 8.14, // {BigDecimal} Optional customer code
  'cardCode': 8.14, // {BigDecimal} Optional card code
  'cardCodeType': 8.14, // {BigDecimal} Optional card type code
  'page': 8.14, // {BigDecimal} Desiderd page number (default value 1)
  'pageSize': pageSize_example, // {String} Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10)
  'getCardsRequest':  // {GetCardsRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCards(supplierCode, opts, 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()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var supplierCode = 8.14;  // BigDecimal | Mandatory supplier_code (default to null)
            var customerCode = 8.14;  // BigDecimal | Optional customer code (optional)  (default to null)
            var cardCode = 8.14;  // BigDecimal | Optional card code (optional)  (default to null)
            var cardCodeType = 8.14;  // BigDecimal | Optional card type code (optional)  (default to null)
            var page = 8.14;  // BigDecimal | Desiderd page number (default value 1) (optional)  (default to null)
            var pageSize = pageSize_example;  // String | Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10) (optional)  (default to null)
            var getCardsRequest = new GetCardsRequest(); // GetCardsRequest |  (optional) 

            try {
                // Get cards data
                array[Card] result = apiInstance.getCards(supplierCode, customerCode, cardCode, cardCodeType, page, pageSize, getCardsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.getCards: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$supplierCode = 8.14; // BigDecimal | Mandatory supplier_code
$customerCode = 8.14; // BigDecimal | Optional customer code
$cardCode = 8.14; // BigDecimal | Optional card code
$cardCodeType = 8.14; // BigDecimal | Optional card type code
$page = 8.14; // BigDecimal | Desiderd page number (default value 1)
$pageSize = pageSize_example; // String | Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10)
$getCardsRequest = ; // GetCardsRequest | 

try {
    $result = $api_instance->getCards($supplierCode, $customerCode, $cardCode, $cardCodeType, $page, $pageSize, $getCardsRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getCards: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $supplierCode = 8.14; # BigDecimal | Mandatory supplier_code
my $customerCode = 8.14; # BigDecimal | Optional customer code
my $cardCode = 8.14; # BigDecimal | Optional card code
my $cardCodeType = 8.14; # BigDecimal | Optional card type code
my $page = 8.14; # BigDecimal | Desiderd page number (default value 1)
my $pageSize = pageSize_example; # String | Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10)
my $getCardsRequest = WWW::OPenAPIClient::Object::GetCardsRequest->new(); # GetCardsRequest | 

eval {
    my $result = $api_instance->getCards(supplierCode => $supplierCode, customerCode => $customerCode, cardCode => $cardCode, cardCodeType => $cardCodeType, page => $page, pageSize => $pageSize, getCardsRequest => $getCardsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getCards: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
supplierCode = 8.14 # BigDecimal | Mandatory supplier_code (default to null)
customerCode = 8.14 # BigDecimal | Optional customer code (optional) (default to null)
cardCode = 8.14 # BigDecimal | Optional card code (optional) (default to null)
cardCodeType = 8.14 # BigDecimal | Optional card type code (optional) (default to null)
page = 8.14 # BigDecimal | Desiderd page number (default value 1) (optional) (default to null)
pageSize = pageSize_example # String | Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10) (optional) (default to null)
getCardsRequest =  # GetCardsRequest |  (optional)

try:
    # Get cards data
    api_response = api_instance.get_cards(supplierCode, customerCode=customerCode, cardCode=cardCode, cardCodeType=cardCodeType, page=page, pageSize=pageSize, getCardsRequest=getCardsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getCards: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let supplierCode = 8.14; // BigDecimal
    let customerCode = 8.14; // BigDecimal
    let cardCode = 8.14; // BigDecimal
    let cardCodeType = 8.14; // BigDecimal
    let page = 8.14; // BigDecimal
    let pageSize = pageSize_example; // String
    let getCardsRequest = ; // GetCardsRequest

    let mut context = DefaultApi::Context::default();
    let result = client.getCards(supplierCode, customerCode, cardCode, cardCodeType, page, pageSize, getCardsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
getCardsRequest

Query parameters
Name Description
supplier_code*
BigDecimal
Mandatory supplier_code
Required
customer_code
BigDecimal
Optional customer code
card_code
BigDecimal
Optional card code
card_code_type
BigDecimal
Optional card type code
page
BigDecimal
Desiderd page number (default value 1)
page_size
String
Desiderd page size (number of card elements for page), maximum allowed value 500 (default value 10)

Responses


getFuelcouponsTransactions

GET Fuelcoupons transactions

get export transactions of fuelcoupons


/fuelcoupons/transactions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/fuelcoupons/transactions?supplier_code=supplierCode_example&date_start=dateStart_example&date_end=dateEnd_example&filter_type=filterType_example&fuel_station_code=fuelStationCode_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
        String dateStart = dateStart_example; // String | Unix time format.
        String dateEnd = dateEnd_example; // String | Unix time format.
        String filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned.

        try {
            array[get_fuelcoupons_transactions_200_response_inner] result = apiInstance.getFuelcouponsTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getFuelcouponsTransactions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String supplierCode = new String(); // String | Supplier code, assigned by ICAD Sistemi
final String dateStart = new String(); // String | Unix time format.
final String dateEnd = new String(); // String | Unix time format.
final String filterType = new String(); // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
final String fuelStationCode = new String(); // String | Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
        String dateStart = dateStart_example; // String | Unix time format.
        String dateEnd = dateEnd_example; // String | Unix time format.
        String filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned.

        try {
            array[get_fuelcoupons_transactions_200_response_inner] result = apiInstance.getFuelcouponsTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getFuelcouponsTransactions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *supplierCode = supplierCode_example; // Supplier code, assigned by ICAD Sistemi (default to null)
String *dateStart = dateStart_example; // Unix time format. (default to null)
String *dateEnd = dateEnd_example; // Unix time format. (default to null)
String *filterType = filterType_example; // Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
String *fuelStationCode = fuelStationCode_example; // Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned. (optional) (default to null)

// GET Fuelcoupons transactions
[apiInstance getFuelcouponsTransactionsWith:supplierCode
    dateStart:dateStart
    dateEnd:dateEnd
    filterType:filterType
    fuelStationCode:fuelStationCode
              completionHandler: ^(array[get_fuelcoupons_transactions_200_response_inner] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var supplierCode = supplierCode_example; // {String} Supplier code, assigned by ICAD Sistemi
var dateStart = dateStart_example; // {String} Unix time format.
var dateEnd = dateEnd_example; // {String} Unix time format.
var filterType = filterType_example; // {String} Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
var opts = {
  'fuelStationCode': fuelStationCode_example // {String} Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getFuelcouponsTransactions(supplierCode, dateStart, dateEnd, filterType, 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()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var supplierCode = supplierCode_example;  // String | Supplier code, assigned by ICAD Sistemi (default to null)
            var dateStart = dateStart_example;  // String | Unix time format. (default to null)
            var dateEnd = dateEnd_example;  // String | Unix time format. (default to null)
            var filterType = filterType_example;  // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
            var fuelStationCode = fuelStationCode_example;  // String | Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned. (optional)  (default to null)

            try {
                // GET Fuelcoupons transactions
                array[get_fuelcoupons_transactions_200_response_inner] result = apiInstance.getFuelcouponsTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.getFuelcouponsTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
$dateStart = dateStart_example; // String | Unix time format.
$dateEnd = dateEnd_example; // String | Unix time format.
$filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
$fuelStationCode = fuelStationCode_example; // String | Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $supplierCode = supplierCode_example; # String | Supplier code, assigned by ICAD Sistemi
my $dateStart = dateStart_example; # String | Unix time format.
my $dateEnd = dateEnd_example; # String | Unix time format.
my $filterType = filterType_example; # String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
my $fuelStationCode = fuelStationCode_example; # String | Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned.

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
supplierCode = supplierCode_example # String | Supplier code, assigned by ICAD Sistemi (default to null)
dateStart = dateStart_example # String | Unix time format. (default to null)
dateEnd = dateEnd_example # String | Unix time format. (default to null)
filterType = filterType_example # String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
fuelStationCode = fuelStationCode_example # String | Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned. (optional) (default to null)

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

pub fn main() {
    let supplierCode = supplierCode_example; // String
    let dateStart = dateStart_example; // String
    let dateEnd = dateEnd_example; // String
    let filterType = filterType_example; // String
    let fuelStationCode = fuelStationCode_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.getFuelcouponsTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
supplier_code*
String
Supplier code, assigned by ICAD Sistemi
Required
date_start*
String
Unix time format.
Required
date_end*
String
Unix time format.
Required
filter_type*
String
Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
Required
fuel_station_code
String
Optional fuel station code. If not set, every fuelcoupons transactions of the specified supplier in the datetime range will be returned.

Responses


getReceiptsTransactions

Get receipts transactions

Used to export receipts transactions filtered by input values. The maximum range between date_start and date_end is 7 days.


/receipts/transactions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/receipts/transactions?supplier_code=supplierCode_example&date_start=dateStart_example&date_end=dateEnd_example&fuel_station_code=fuelStationCode_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
        String dateStart = dateStart_example; // String | Start date in unix time format
        String dateEnd = dateEnd_example; // String | End date in unix time format
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned

        try {
            array[ReceiptTransaction] result = apiInstance.getReceiptsTransactions(supplierCode, dateStart, dateEnd, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getReceiptsTransactions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String supplierCode = new String(); // String | Supplier code, assigned by ICAD Sistemi
final String dateStart = new String(); // String | Start date in unix time format
final String dateEnd = new String(); // String | End date in unix time format
final String fuelStationCode = new String(); // String | Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
        String dateStart = dateStart_example; // String | Start date in unix time format
        String dateEnd = dateEnd_example; // String | End date in unix time format
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned

        try {
            array[ReceiptTransaction] result = apiInstance.getReceiptsTransactions(supplierCode, dateStart, dateEnd, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getReceiptsTransactions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *supplierCode = supplierCode_example; // Supplier code, assigned by ICAD Sistemi (default to null)
String *dateStart = dateStart_example; // Start date in unix time format (default to null)
String *dateEnd = dateEnd_example; // End date in unix time format (default to null)
String *fuelStationCode = fuelStationCode_example; // Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned (optional) (default to null)

// Get receipts transactions
[apiInstance getReceiptsTransactionsWith:supplierCode
    dateStart:dateStart
    dateEnd:dateEnd
    fuelStationCode:fuelStationCode
              completionHandler: ^(array[ReceiptTransaction] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var supplierCode = supplierCode_example; // {String} Supplier code, assigned by ICAD Sistemi
var dateStart = dateStart_example; // {String} Start date in unix time format
var dateEnd = dateEnd_example; // {String} End date in unix time format
var opts = {
  'fuelStationCode': fuelStationCode_example // {String} Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var supplierCode = supplierCode_example;  // String | Supplier code, assigned by ICAD Sistemi (default to null)
            var dateStart = dateStart_example;  // String | Start date in unix time format (default to null)
            var dateEnd = dateEnd_example;  // String | End date in unix time format (default to null)
            var fuelStationCode = fuelStationCode_example;  // String | Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned (optional)  (default to null)

            try {
                // Get receipts transactions
                array[ReceiptTransaction] result = apiInstance.getReceiptsTransactions(supplierCode, dateStart, dateEnd, fuelStationCode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.getReceiptsTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
$dateStart = dateStart_example; // String | Start date in unix time format
$dateEnd = dateEnd_example; // String | End date in unix time format
$fuelStationCode = fuelStationCode_example; // String | Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $supplierCode = supplierCode_example; # String | Supplier code, assigned by ICAD Sistemi
my $dateStart = dateStart_example; # String | Start date in unix time format
my $dateEnd = dateEnd_example; # String | End date in unix time format
my $fuelStationCode = fuelStationCode_example; # String | Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
supplierCode = supplierCode_example # String | Supplier code, assigned by ICAD Sistemi (default to null)
dateStart = dateStart_example # String | Start date in unix time format (default to null)
dateEnd = dateEnd_example # String | End date in unix time format (default to null)
fuelStationCode = fuelStationCode_example # String | Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned (optional) (default to null)

try:
    # Get receipts transactions
    api_response = api_instance.get_receipts_transactions(supplierCode, dateStart, dateEnd, fuelStationCode=fuelStationCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getReceiptsTransactions: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let supplierCode = supplierCode_example; // String
    let dateStart = dateStart_example; // String
    let dateEnd = dateEnd_example; // String
    let fuelStationCode = fuelStationCode_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.getReceiptsTransactions(supplierCode, dateStart, dateEnd, fuelStationCode, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
supplier_code*
String
Supplier code, assigned by ICAD Sistemi
Required
date_start*
String
Start date in unix time format
Required
date_end*
String
End date in unix time format
Required
fuel_station_code
String
Optional fuel station code, if not set, every transactions of the specified supplier in the datetime range will be returned

Responses


getRecharges

Get recharges

Used to export recheargeables filtered by input values. The maximum range between date_start and date_end is 7 days.


/recharges

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/recharges?supplier_code=supplierCode_example&customer_code=customerCode_example&date_start=dateStart_example&date_end=dateEnd_example&fuel_station_code=fuelStationCode_example&filter_type=filterType_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Mandatory supplier_code
        String dateStart = dateStart_example; // String | Unix time format.
        String dateEnd = dateEnd_example; // String | Unix time format.
        String filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
        String customerCode = customerCode_example; // String | Optional customer_code
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code

        try {
            array[get_recharges_200_response_inner] result = apiInstance.getRecharges(supplierCode, dateStart, dateEnd, filterType, customerCode, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRecharges");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String supplierCode = new String(); // String | Mandatory supplier_code
final String dateStart = new String(); // String | Unix time format.
final String dateEnd = new String(); // String | Unix time format.
final String filterType = new String(); // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
final String customerCode = new String(); // String | Optional customer_code
final String fuelStationCode = new String(); // String | Optional fuel station code

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Mandatory supplier_code
        String dateStart = dateStart_example; // String | Unix time format.
        String dateEnd = dateEnd_example; // String | Unix time format.
        String filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
        String customerCode = customerCode_example; // String | Optional customer_code
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code

        try {
            array[get_recharges_200_response_inner] result = apiInstance.getRecharges(supplierCode, dateStart, dateEnd, filterType, customerCode, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRecharges");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *supplierCode = supplierCode_example; // Mandatory supplier_code (default to null)
String *dateStart = dateStart_example; // Unix time format. (default to null)
String *dateEnd = dateEnd_example; // Unix time format. (default to null)
String *filterType = filterType_example; // Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
String *customerCode = customerCode_example; // Optional customer_code (optional) (default to null)
String *fuelStationCode = fuelStationCode_example; // Optional fuel station code (optional) (default to null)

// Get recharges
[apiInstance getRechargesWith:supplierCode
    dateStart:dateStart
    dateEnd:dateEnd
    filterType:filterType
    customerCode:customerCode
    fuelStationCode:fuelStationCode
              completionHandler: ^(array[get_recharges_200_response_inner] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var supplierCode = supplierCode_example; // {String} Mandatory supplier_code
var dateStart = dateStart_example; // {String} Unix time format.
var dateEnd = dateEnd_example; // {String} Unix time format.
var filterType = filterType_example; // {String} Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
var opts = {
  'customerCode': customerCode_example, // {String} Optional customer_code
  'fuelStationCode': fuelStationCode_example // {String} Optional fuel station code
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRecharges(supplierCode, dateStart, dateEnd, filterType, 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()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var supplierCode = supplierCode_example;  // String | Mandatory supplier_code (default to null)
            var dateStart = dateStart_example;  // String | Unix time format. (default to null)
            var dateEnd = dateEnd_example;  // String | Unix time format. (default to null)
            var filterType = filterType_example;  // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
            var customerCode = customerCode_example;  // String | Optional customer_code (optional)  (default to null)
            var fuelStationCode = fuelStationCode_example;  // String | Optional fuel station code (optional)  (default to null)

            try {
                // Get recharges
                array[get_recharges_200_response_inner] result = apiInstance.getRecharges(supplierCode, dateStart, dateEnd, filterType, customerCode, fuelStationCode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.getRecharges: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$supplierCode = supplierCode_example; // String | Mandatory supplier_code
$dateStart = dateStart_example; // String | Unix time format.
$dateEnd = dateEnd_example; // String | Unix time format.
$filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
$customerCode = customerCode_example; // String | Optional customer_code
$fuelStationCode = fuelStationCode_example; // String | Optional fuel station code

try {
    $result = $api_instance->getRecharges($supplierCode, $dateStart, $dateEnd, $filterType, $customerCode, $fuelStationCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getRecharges: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $supplierCode = supplierCode_example; # String | Mandatory supplier_code
my $dateStart = dateStart_example; # String | Unix time format.
my $dateEnd = dateEnd_example; # String | Unix time format.
my $filterType = filterType_example; # String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
my $customerCode = customerCode_example; # String | Optional customer_code
my $fuelStationCode = fuelStationCode_example; # String | Optional fuel station code

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
supplierCode = supplierCode_example # String | Mandatory supplier_code (default to null)
dateStart = dateStart_example # String | Unix time format. (default to null)
dateEnd = dateEnd_example # String | Unix time format. (default to null)
filterType = filterType_example # String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
customerCode = customerCode_example # String | Optional customer_code (optional) (default to null)
fuelStationCode = fuelStationCode_example # String | Optional fuel station code (optional) (default to null)

try:
    # Get recharges
    api_response = api_instance.get_recharges(supplierCode, dateStart, dateEnd, filterType, customerCode=customerCode, fuelStationCode=fuelStationCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getRecharges: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let supplierCode = supplierCode_example; // String
    let dateStart = dateStart_example; // String
    let dateEnd = dateEnd_example; // String
    let filterType = filterType_example; // String
    let customerCode = customerCode_example; // String
    let fuelStationCode = fuelStationCode_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.getRecharges(supplierCode, dateStart, dateEnd, filterType, customerCode, fuelStationCode, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
supplier_code*
String
Mandatory supplier_code
Required
customer_code
String
Optional customer_code
date_start*
String
Unix time format.
Required
date_end*
String
Unix time format.
Required
fuel_station_code
String
Optional fuel station code
filter_type*
String
Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
Required

Responses


getTransactions

Get cards transactions

Used to export OIL transactions filtered by input values. The maximum range between date_start and date_end is 7 days.


/transactions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/transactions?supplier_code=supplierCode_example&date_start=dateStart_example&date_end=dateEnd_example&fuel_station_code=fuelStationCode_example&filter_type=filterType_example&customer_code=customerCode_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
        String dateStart = dateStart_example; // String | Unix time format.
        String dateEnd = dateEnd_example; // String | Unix time format.
        String filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned.
        String customerCode = customerCode_example; // String | Optional customer code. This parameter must be set to export only customer's transactions.

        try {
            array[get_transactions_200_response_inner] result = apiInstance.getTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode, customerCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTransactions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String supplierCode = new String(); // String | Supplier code, assigned by ICAD Sistemi
final String dateStart = new String(); // String | Unix time format.
final String dateEnd = new String(); // String | Unix time format.
final String filterType = new String(); // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
final String fuelStationCode = new String(); // String | Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned.
final String customerCode = new String(); // String | Optional customer code. This parameter must be set to export only customer's transactions.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
        String dateStart = dateStart_example; // String | Unix time format.
        String dateEnd = dateEnd_example; // String | Unix time format.
        String filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
        String fuelStationCode = fuelStationCode_example; // String | Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned.
        String customerCode = customerCode_example; // String | Optional customer code. This parameter must be set to export only customer's transactions.

        try {
            array[get_transactions_200_response_inner] result = apiInstance.getTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode, customerCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTransactions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *supplierCode = supplierCode_example; // Supplier code, assigned by ICAD Sistemi (default to null)
String *dateStart = dateStart_example; // Unix time format. (default to null)
String *dateEnd = dateEnd_example; // Unix time format. (default to null)
String *filterType = filterType_example; // Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
String *fuelStationCode = fuelStationCode_example; // Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned. (optional) (default to null)
String *customerCode = customerCode_example; // Optional customer code. This parameter must be set to export only customer's transactions. (optional) (default to null)

// Get cards transactions
[apiInstance getTransactionsWith:supplierCode
    dateStart:dateStart
    dateEnd:dateEnd
    filterType:filterType
    fuelStationCode:fuelStationCode
    customerCode:customerCode
              completionHandler: ^(array[get_transactions_200_response_inner] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var supplierCode = supplierCode_example; // {String} Supplier code, assigned by ICAD Sistemi
var dateStart = dateStart_example; // {String} Unix time format.
var dateEnd = dateEnd_example; // {String} Unix time format.
var filterType = filterType_example; // {String} Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
var opts = {
  'fuelStationCode': fuelStationCode_example, // {String} Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned.
  'customerCode': customerCode_example // {String} Optional customer code. This parameter must be set to export only customer's transactions.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTransactions(supplierCode, dateStart, dateEnd, filterType, 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()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var supplierCode = supplierCode_example;  // String | Supplier code, assigned by ICAD Sistemi (default to null)
            var dateStart = dateStart_example;  // String | Unix time format. (default to null)
            var dateEnd = dateEnd_example;  // String | Unix time format. (default to null)
            var filterType = filterType_example;  // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
            var fuelStationCode = fuelStationCode_example;  // String | Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned. (optional)  (default to null)
            var customerCode = customerCode_example;  // String | Optional customer code. This parameter must be set to export only customer's transactions. (optional)  (default to null)

            try {
                // Get cards transactions
                array[get_transactions_200_response_inner] result = apiInstance.getTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode, customerCode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.getTransactions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$supplierCode = supplierCode_example; // String | Supplier code, assigned by ICAD Sistemi
$dateStart = dateStart_example; // String | Unix time format.
$dateEnd = dateEnd_example; // String | Unix time format.
$filterType = filterType_example; // String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
$fuelStationCode = fuelStationCode_example; // String | Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned.
$customerCode = customerCode_example; // String | Optional customer code. This parameter must be set to export only customer's transactions.

try {
    $result = $api_instance->getTransactions($supplierCode, $dateStart, $dateEnd, $filterType, $fuelStationCode, $customerCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getTransactions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $supplierCode = supplierCode_example; # String | Supplier code, assigned by ICAD Sistemi
my $dateStart = dateStart_example; # String | Unix time format.
my $dateEnd = dateEnd_example; # String | Unix time format.
my $filterType = filterType_example; # String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
my $fuelStationCode = fuelStationCode_example; # String | Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned.
my $customerCode = customerCode_example; # String | Optional customer code. This parameter must be set to export only customer's transactions.

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
supplierCode = supplierCode_example # String | Supplier code, assigned by ICAD Sistemi (default to null)
dateStart = dateStart_example # String | Unix time format. (default to null)
dateEnd = dateEnd_example # String | Unix time format. (default to null)
filterType = filterType_example # String | Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp (default to null)
fuelStationCode = fuelStationCode_example # String | Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned. (optional) (default to null)
customerCode = customerCode_example # String | Optional customer code. This parameter must be set to export only customer's transactions. (optional) (default to null)

try:
    # Get cards transactions
    api_response = api_instance.get_transactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode=fuelStationCode, customerCode=customerCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getTransactions: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let supplierCode = supplierCode_example; // String
    let dateStart = dateStart_example; // String
    let dateEnd = dateEnd_example; // String
    let filterType = filterType_example; // String
    let fuelStationCode = fuelStationCode_example; // String
    let customerCode = customerCode_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.getTransactions(supplierCode, dateStart, dateEnd, filterType, fuelStationCode, customerCode, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
supplier_code*
String
Supplier code, assigned by ICAD Sistemi
Required
date_start*
String
Unix time format.
Required
date_end*
String
Unix time format.
Required
fuel_station_code
String
Optional fuel station code. If not set, every transactions of the specified supplier in the datetime range will be returned.
filter_type*
String
Used to choose the filter type. If the value is "INS", the transations will be filtered on the datetime they were saved. Otherwise, if the the value is "TRX", they are filtered on their actual transaction timestamp
Required
customer_code
String
Optional customer code. This parameter must be set to export only customer's transactions.

Responses


postCards

Insert/Update cards

Used to upsert one or more cards.


/cards

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/cards" \
 -d '{
  "code" : 6,
  "batch_number" : 0,
  "vehicle_plate" : "vehicle_plate",
  "vehicle_model" : "vehicle_model",
  "has_km_request" : true,
  "extra2" : "extra2",
  "max_period_credit" : 5.962133916683182,
  "has_km_check" : true,
  "extra1" : "extra1",
  "expire_datetime" : "2000-01-23T04:56:07.000+00:00",
  "delivery_datetime" : "delivery_datetime",
  "is_enabled" : true,
  "outdoor" : true,
  "daily_max_limit" : 5.637376656633329,
  "has_driver_request" : true,
  "vehicle_driver" : "vehicle_driver",
  "indoor" : true,
  "pan" : "pan",
  "supplier_code" : "supplier_code",
  "customer_code" : "customer_code",
  "articles" : [ {
    "is_enabled" : true,
    "product_code" : 2.3021358869347655
  }, {
    "is_enabled" : true,
    "product_code" : 2.3021358869347655
  } ],
  "email" : "email",
  "type_code" : 1
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        array[CardInput] cardInput = ; // array[CardInput] | 

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

final api_instance = DefaultApi();

final array[CardInput] cardInput = new array[CardInput](); // array[CardInput] | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        array[CardInput] cardInput = ; // array[CardInput] | 

        try {
            apiInstance.postCards(cardInput);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#postCards");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
array[CardInput] *cardInput = ; //  (optional)

// Insert/Update cards
[apiInstance postCardsWith:cardInput
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var opts = {
  'cardInput':  // {array[CardInput]} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var cardInput = new array[CardInput](); // array[CardInput] |  (optional) 

            try {
                // Insert/Update cards
                apiInstance.postCards(cardInput);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.postCards: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$cardInput = ; // array[CardInput] | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $cardInput = [WWW::OPenAPIClient::Object::array[CardInput]->new()]; # array[CardInput] | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
cardInput =  # array[CardInput] |  (optional)

try:
    # Insert/Update cards
    api_instance.post_cards(cardInput=cardInput)
except ApiException as e:
    print("Exception when calling DefaultApi->postCards: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let cardInput = ; // array[CardInput]

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

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

Scopes

Parameters

Body parameters
Name Description
cardInput

Responses


postCustomers

Create customer

Insert or update customers filtered by supplier code


/customers

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/customers" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        PostCustomersRequest postCustomersRequest = {"supplier_code":"string","customers":[{"code":"string","name":"string","address":"string","city":"string","zip_code":"string","province":"string","phone_number":"string","email":"string","pec":"string","notes":"string","vat_number":"string","fiscal_code":"string","is_enabled":true,"payment_mode_code":"string","payment_periodicity_code":"string","payment_terms_code":"string","max_period_credit":0,"period_debit":0,"exposure":0,"has_km_request":true,"has_km_check":true,"has_driver_request":true,"has_driver_check":true,"has_account_balance":true,"has_invoice":true,"notify_recharge":true,"notify":true,"notify1":true,"notify2":true,"notify3":true,"has_customer_recharge":true,"country_code":"string","sdi_code":null,"electronic_invoice":true,"oil_iban":"string","non_oil_iban":"string","vat_code":"string","total_recharge":0}]}; // PostCustomersRequest | 

        try {
            apiInstance.postCustomers(postCustomersRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#postCustomers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PostCustomersRequest postCustomersRequest = new PostCustomersRequest(); // PostCustomersRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        PostCustomersRequest postCustomersRequest = {"supplier_code":"string","customers":[{"code":"string","name":"string","address":"string","city":"string","zip_code":"string","province":"string","phone_number":"string","email":"string","pec":"string","notes":"string","vat_number":"string","fiscal_code":"string","is_enabled":true,"payment_mode_code":"string","payment_periodicity_code":"string","payment_terms_code":"string","max_period_credit":0,"period_debit":0,"exposure":0,"has_km_request":true,"has_km_check":true,"has_driver_request":true,"has_driver_check":true,"has_account_balance":true,"has_invoice":true,"notify_recharge":true,"notify":true,"notify1":true,"notify2":true,"notify3":true,"has_customer_recharge":true,"country_code":"string","sdi_code":null,"electronic_invoice":true,"oil_iban":"string","non_oil_iban":"string","vat_code":"string","total_recharge":0}]}; // PostCustomersRequest | 

        try {
            apiInstance.postCustomers(postCustomersRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#postCustomers");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
PostCustomersRequest *postCustomersRequest = {"supplier_code":"string","customers":[{"code":"string","name":"string","address":"string","city":"string","zip_code":"string","province":"string","phone_number":"string","email":"string","pec":"string","notes":"string","vat_number":"string","fiscal_code":"string","is_enabled":true,"payment_mode_code":"string","payment_periodicity_code":"string","payment_terms_code":"string","max_period_credit":0,"period_debit":0,"exposure":0,"has_km_request":true,"has_km_check":true,"has_driver_request":true,"has_driver_check":true,"has_account_balance":true,"has_invoice":true,"notify_recharge":true,"notify":true,"notify1":true,"notify2":true,"notify3":true,"has_customer_recharge":true,"country_code":"string","sdi_code":null,"electronic_invoice":true,"oil_iban":"string","non_oil_iban":"string","vat_code":"string","total_recharge":0}]}; //  (optional)

// Create customer
[apiInstance postCustomersWith:postCustomersRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var opts = {
  'postCustomersRequest': {"supplier_code":"string","customers":[{"code":"string","name":"string","address":"string","city":"string","zip_code":"string","province":"string","phone_number":"string","email":"string","pec":"string","notes":"string","vat_number":"string","fiscal_code":"string","is_enabled":true,"payment_mode_code":"string","payment_periodicity_code":"string","payment_terms_code":"string","max_period_credit":0,"period_debit":0,"exposure":0,"has_km_request":true,"has_km_check":true,"has_driver_request":true,"has_driver_check":true,"has_account_balance":true,"has_invoice":true,"notify_recharge":true,"notify":true,"notify1":true,"notify2":true,"notify3":true,"has_customer_recharge":true,"country_code":"string","sdi_code":null,"electronic_invoice":true,"oil_iban":"string","non_oil_iban":"string","vat_code":"string","total_recharge":0}]} // {PostCustomersRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var postCustomersRequest = new PostCustomersRequest(); // PostCustomersRequest |  (optional) 

            try {
                // Create customer
                apiInstance.postCustomers(postCustomersRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.postCustomers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$postCustomersRequest = {"supplier_code":"string","customers":[{"code":"string","name":"string","address":"string","city":"string","zip_code":"string","province":"string","phone_number":"string","email":"string","pec":"string","notes":"string","vat_number":"string","fiscal_code":"string","is_enabled":true,"payment_mode_code":"string","payment_periodicity_code":"string","payment_terms_code":"string","max_period_credit":0,"period_debit":0,"exposure":0,"has_km_request":true,"has_km_check":true,"has_driver_request":true,"has_driver_check":true,"has_account_balance":true,"has_invoice":true,"notify_recharge":true,"notify":true,"notify1":true,"notify2":true,"notify3":true,"has_customer_recharge":true,"country_code":"string","sdi_code":null,"electronic_invoice":true,"oil_iban":"string","non_oil_iban":"string","vat_code":"string","total_recharge":0}]}; // PostCustomersRequest | 

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

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

eval {
    $api_instance->postCustomers(postCustomersRequest => $postCustomersRequest);
};
if ($@) {
    warn "Exception when calling DefaultApi->postCustomers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
postCustomersRequest = {"supplier_code":"string","customers":[{"code":"string","name":"string","address":"string","city":"string","zip_code":"string","province":"string","phone_number":"string","email":"string","pec":"string","notes":"string","vat_number":"string","fiscal_code":"string","is_enabled":true,"payment_mode_code":"string","payment_periodicity_code":"string","payment_terms_code":"string","max_period_credit":0,"period_debit":0,"exposure":0,"has_km_request":true,"has_km_check":true,"has_driver_request":true,"has_driver_check":true,"has_account_balance":true,"has_invoice":true,"notify_recharge":true,"notify":true,"notify1":true,"notify2":true,"notify3":true,"has_customer_recharge":true,"country_code":"string","sdi_code":null,"electronic_invoice":true,"oil_iban":"string","non_oil_iban":"string","vat_code":"string","total_recharge":0}]} # PostCustomersRequest |  (optional)

try:
    # Create customer
    api_instance.post_customers(postCustomersRequest=postCustomersRequest)
except ApiException as e:
    print("Exception when calling DefaultApi->postCustomers: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let postCustomersRequest = {"supplier_code":"string","customers":[{"code":"string","name":"string","address":"string","city":"string","zip_code":"string","province":"string","phone_number":"string","email":"string","pec":"string","notes":"string","vat_number":"string","fiscal_code":"string","is_enabled":true,"payment_mode_code":"string","payment_periodicity_code":"string","payment_terms_code":"string","max_period_credit":0,"period_debit":0,"exposure":0,"has_km_request":true,"has_km_check":true,"has_driver_request":true,"has_driver_check":true,"has_account_balance":true,"has_invoice":true,"notify_recharge":true,"notify":true,"notify1":true,"notify2":true,"notify3":true,"has_customer_recharge":true,"country_code":"string","sdi_code":null,"electronic_invoice":true,"oil_iban":"string","non_oil_iban":"string","vat_code":"string","total_recharge":0}]}; // PostCustomersRequest

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

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

Scopes

Parameters

Body parameters
Name Description
postCustomersRequest

Responses


postRecharges

Request a new recharge

Request to recharge a list of cards


/recharges

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/recharges" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        PostRechargesRequest postRechargesRequest = ; // PostRechargesRequest | 

        try {
            apiInstance.postRecharges(postRechargesRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#postRecharges");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PostRechargesRequest postRechargesRequest = new PostRechargesRequest(); // PostRechargesRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        PostRechargesRequest postRechargesRequest = ; // PostRechargesRequest | 

        try {
            apiInstance.postRecharges(postRechargesRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#postRecharges");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
PostRechargesRequest *postRechargesRequest = ; //  (optional)

// Request a new recharge
[apiInstance postRechargesWith:postRechargesRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var opts = {
  'postRechargesRequest':  // {PostRechargesRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var postRechargesRequest = new PostRechargesRequest(); // PostRechargesRequest |  (optional) 

            try {
                // Request a new recharge
                apiInstance.postRecharges(postRechargesRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.postRecharges: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$postRechargesRequest = ; // PostRechargesRequest | 

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

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

eval {
    $api_instance->postRecharges(postRechargesRequest => $postRechargesRequest);
};
if ($@) {
    warn "Exception when calling DefaultApi->postRecharges: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
postRechargesRequest =  # PostRechargesRequest |  (optional)

try:
    # Request a new recharge
    api_instance.post_recharges(postRechargesRequest=postRechargesRequest)
except ApiException as e:
    print("Exception when calling DefaultApi->postRecharges: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let postRechargesRequest = ; // PostRechargesRequest

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

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

Scopes

Parameters

Body parameters
Name Description
postRechargesRequest

Responses


Invoices

getInvoicesActive

Get invoices active

This API allows requesting the XML files of the documents (invoices and credit notes) sent by ICAD Sistemi to the SdI (Sistema di Interscambio). By querying the system with specific parameters, the client can then receive and save these files. This endpoint returns exclusively the invoices from the active cycle.


/invoices/active

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/invoices/active?from=01-06-2018&to=01-06-2018&fuelstation_code=ISXXXXXX&supplier_code=0001&outcomes=true/false&last_update_date=true/false&status_filter="", "SF05", "accettate", null"
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) {

        // Create an instance of the API class
        InvoicesApi apiInstance = new InvoicesApi();
        String from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String fuelstationCode = ISXXXXXX; // String | If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value.
        String supplierCode = 0001; // String | Supplier code being worked with
        String outcomes = true/false; // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
        String lastUpdateDate = true/false; // String | Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th.
        String statusFilter = "", "SF05", "accettate", null; // String | The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient).

        try {
            InvoicesActiveResponse result = apiInstance.getInvoicesActive(from, to, fuelstationCode, supplierCode, outcomes, lastUpdateDate, statusFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoicesActive");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String from = new String(); // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
final String to = new String(); // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
final String fuelstationCode = new String(); // String | If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value.
final String supplierCode = new String(); // String | Supplier code being worked with
final String outcomes = new String(); // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
final String lastUpdateDate = new String(); // String | Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th.
final String statusFilter = new String(); // String | The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient).

try {
    final result = await api_instance.getInvoicesActive(from, to, fuelstationCode, supplierCode, outcomes, lastUpdateDate, statusFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getInvoicesActive: $e\n');
}

import org.openapitools.client.api.InvoicesApi;

public class InvoicesApiExample {
    public static void main(String[] args) {
        InvoicesApi apiInstance = new InvoicesApi();
        String from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String fuelstationCode = ISXXXXXX; // String | If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value.
        String supplierCode = 0001; // String | Supplier code being worked with
        String outcomes = true/false; // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
        String lastUpdateDate = true/false; // String | Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th.
        String statusFilter = "", "SF05", "accettate", null; // String | The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient).

        try {
            InvoicesActiveResponse result = apiInstance.getInvoicesActive(from, to, fuelstationCode, supplierCode, outcomes, lastUpdateDate, statusFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoicesActive");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InvoicesApi *apiInstance = [[InvoicesApi alloc] init];
String *from = 01-06-2018; // String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
String *to = 01-06-2018; // String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
String *fuelstationCode = ISXXXXXX; // If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value. (default to null)
String *supplierCode = 0001; // Supplier code being worked with (default to null)
String *outcomes = true/false; // Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package). (optional) (default to null)
String *lastUpdateDate = true/false; // Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th. (optional) (default to null)
String *statusFilter = "", "SF05", "accettate", null; // The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient). (optional) (default to null)

// Get invoices active
[apiInstance getInvoicesActiveWith:from
    to:to
    fuelstationCode:fuelstationCode
    supplierCode:supplierCode
    outcomes:outcomes
    lastUpdateDate:lastUpdateDate
    statusFilter:statusFilter
              completionHandler: ^(InvoicesActiveResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.InvoicesApi()
var from = 01-06-2018; // {String} String representing the start date of the interval to be queried, in the format dd-MM-yyyy
var to = 01-06-2018; // {String} String representing the start date of the interval to be queried, in the format dd-MM-yyyy
var fuelstationCode = ISXXXXXX; // {String} If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value.
var supplierCode = 0001; // {String} Supplier code being worked with
var opts = {
  'outcomes': true/false, // {String} Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
  'lastUpdateDate': true/false, // {String} Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th.
  'statusFilter': "", "SF05", "accettate", null // {String} The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient).
};

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

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

            // Create an instance of the API class
            var apiInstance = new InvoicesApi();
            var from = 01-06-2018;  // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
            var to = 01-06-2018;  // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
            var fuelstationCode = ISXXXXXX;  // String | If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value. (default to null)
            var supplierCode = 0001;  // String | Supplier code being worked with (default to null)
            var outcomes = true/false;  // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package). (optional)  (default to null)
            var lastUpdateDate = true/false;  // String | Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th. (optional)  (default to null)
            var statusFilter = "", "SF05", "accettate", null;  // String | The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient). (optional)  (default to null)

            try {
                // Get invoices active
                InvoicesActiveResponse result = apiInstance.getInvoicesActive(from, to, fuelstationCode, supplierCode, outcomes, lastUpdateDate, statusFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InvoicesApi.getInvoicesActive: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InvoicesApi();
$from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
$to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
$fuelstationCode = ISXXXXXX; // String | If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value.
$supplierCode = 0001; // String | Supplier code being worked with
$outcomes = true/false; // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
$lastUpdateDate = true/false; // String | Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th.
$statusFilter = "", "SF05", "accettate", null; // String | The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient).

try {
    $result = $api_instance->getInvoicesActive($from, $to, $fuelstationCode, $supplierCode, $outcomes, $lastUpdateDate, $statusFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoicesApi->getInvoicesActive: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InvoicesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InvoicesApi->new();
my $from = 01-06-2018; # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
my $to = 01-06-2018; # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
my $fuelstationCode = ISXXXXXX; # String | If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value.
my $supplierCode = 0001; # String | Supplier code being worked with
my $outcomes = true/false; # String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
my $lastUpdateDate = true/false; # String | Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th.
my $statusFilter = "", "SF05", "accettate", null; # String | The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient).

eval {
    my $result = $api_instance->getInvoicesActive(from => $from, to => $to, fuelstationCode => $fuelstationCode, supplierCode => $supplierCode, outcomes => $outcomes, lastUpdateDate => $lastUpdateDate, statusFilter => $statusFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoicesApi->getInvoicesActive: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.InvoicesApi()
from = 01-06-2018 # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
to = 01-06-2018 # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
fuelstationCode = ISXXXXXX # String | If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value. (default to null)
supplierCode = 0001 # String | Supplier code being worked with (default to null)
outcomes = true/false # String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package). (optional) (default to null)
lastUpdateDate = true/false # String | Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th. (optional) (default to null)
statusFilter = "", "SF05", "accettate", null # String | The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient). (optional) (default to null)

try:
    # Get invoices active
    api_response = api_instance.get_invoices_active(from, to, fuelstationCode, supplierCode, outcomes=outcomes, lastUpdateDate=lastUpdateDate, statusFilter=statusFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoicesApi->getInvoicesActive: %s\n" % e)
extern crate InvoicesApi;

pub fn main() {
    let from = 01-06-2018; // String
    let to = 01-06-2018; // String
    let fuelstationCode = ISXXXXXX; // String
    let supplierCode = 0001; // String
    let outcomes = true/false; // String
    let lastUpdateDate = true/false; // String
    let statusFilter = "", "SF05", "accettate", null; // String

    let mut context = InvoicesApi::Context::default();
    let result = client.getInvoicesActive(from, to, fuelstationCode, supplierCode, outcomes, lastUpdateDate, statusFilter, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
from*
String
String representing the start date of the interval to be queried, in the format dd-MM-yyyy
Required
to*
String
String representing the start date of the interval to be queried, in the format dd-MM-yyyy
Required
fuelstation_code*
String
If set to "ALL", the request includes all points of sale in the network or use fuel station ISCODE value.
Required
supplier_code*
String
Supplier code being worked with
Required
outcomes
String
Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
last_update_date
String
Instead of filtering documents based on the issuance date, it filters based on the status change date. For example, if I request invoices between the 9th and 10th of the current month, I might not have invoices issued on those dates, but invoices for which a notification message with a positive outcome was received from the SdI during that time interval. So, I could have an invoice issued on the 7th but delivered to the customer on the 9th.
status_filter
String
The status code SFAC represents "Accepted invoices." These invoices include all issued invoices and group together the following states: SF05 (Delivered), SF08 (Accepted by recipient), SF10 (Automatically accepted), and SF11 (Not Delivered - Permanent). Other status codes include SF03 (Sent), SF04 (Error), SF06 (Not Delivered - Temporary), SF07 (Rejected), and SF09 (Rejected by recipient).

Responses


getInvoicesExternal

Get invoices external

This API allows requesting the XML files of the documents (invoices and credit notes) received from external sources through a specific API (not included in this document). ICAD Sistemi receives an unsigned XML file and proceeds to sign it before sending it to the SdI (Sistema di Interscambio). By querying the system with specific parameters, the client can then receive and save these files.


/invoices/external

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/invoices/external?from=01-06-2018&to=01-06-2018&supplier_code=0001&outcomes=true/false"
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) {

        // Create an instance of the API class
        InvoicesApi apiInstance = new InvoicesApi();
        String from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String supplierCode = 0001; // String | Supplier code being worked with
        String outcomes = true/false; // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).

        try {
            InvoicesExternalResponse result = apiInstance.getInvoicesExternal(from, to, supplierCode, outcomes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoicesExternal");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String from = new String(); // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
final String to = new String(); // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
final String supplierCode = new String(); // String | Supplier code being worked with
final String outcomes = new String(); // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).

try {
    final result = await api_instance.getInvoicesExternal(from, to, supplierCode, outcomes);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getInvoicesExternal: $e\n');
}

import org.openapitools.client.api.InvoicesApi;

public class InvoicesApiExample {
    public static void main(String[] args) {
        InvoicesApi apiInstance = new InvoicesApi();
        String from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String supplierCode = 0001; // String | Supplier code being worked with
        String outcomes = true/false; // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).

        try {
            InvoicesExternalResponse result = apiInstance.getInvoicesExternal(from, to, supplierCode, outcomes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoicesExternal");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InvoicesApi *apiInstance = [[InvoicesApi alloc] init];
String *from = 01-06-2018; // String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
String *to = 01-06-2018; // String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
String *supplierCode = 0001; // Supplier code being worked with (default to null)
String *outcomes = true/false; // Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package). (optional) (default to null)

// Get invoices external
[apiInstance getInvoicesExternalWith:from
    to:to
    supplierCode:supplierCode
    outcomes:outcomes
              completionHandler: ^(InvoicesExternalResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.InvoicesApi()
var from = 01-06-2018; // {String} String representing the start date of the interval to be queried, in the format dd-MM-yyyy
var to = 01-06-2018; // {String} String representing the start date of the interval to be queried, in the format dd-MM-yyyy
var supplierCode = 0001; // {String} Supplier code being worked with
var opts = {
  'outcomes': true/false // {String} Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).
};

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

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

            // Create an instance of the API class
            var apiInstance = new InvoicesApi();
            var from = 01-06-2018;  // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
            var to = 01-06-2018;  // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
            var supplierCode = 0001;  // String | Supplier code being worked with (default to null)
            var outcomes = true/false;  // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package). (optional)  (default to null)

            try {
                // Get invoices external
                InvoicesExternalResponse result = apiInstance.getInvoicesExternal(from, to, supplierCode, outcomes);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InvoicesApi.getInvoicesExternal: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InvoicesApi();
$from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
$to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
$supplierCode = 0001; // String | Supplier code being worked with
$outcomes = true/false; // String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InvoicesApi->new();
my $from = 01-06-2018; # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
my $to = 01-06-2018; # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
my $supplierCode = 0001; # String | Supplier code being worked with
my $outcomes = true/false; # String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).

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

# Create an instance of the API class
api_instance = openapi_client.InvoicesApi()
from = 01-06-2018 # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
to = 01-06-2018 # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
supplierCode = 0001 # String | Supplier code being worked with (default to null)
outcomes = true/false # String | Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package). (optional) (default to null)

try:
    # Get invoices external
    api_response = api_instance.get_invoices_external(from, to, supplierCode, outcomes=outcomes)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoicesApi->getInvoicesExternal: %s\n" % e)
extern crate InvoicesApi;

pub fn main() {
    let from = 01-06-2018; // String
    let to = 01-06-2018; // String
    let supplierCode = 0001; // String
    let outcomes = true/false; // String

    let mut context = InvoicesApi::Context::default();
    let result = client.getInvoicesExternal(from, to, supplierCode, outcomes, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
from*
String
String representing the start date of the interval to be queried, in the format dd-MM-yyyy
Required
to*
String
String representing the start date of the interval to be queried, in the format dd-MM-yyyy
Required
supplier_code*
String
Supplier code being worked with
Required
outcomes
String
Indicate whether you also want to receive the outcome files received from the SdI (usable only if you have subscribed to the relevant package).

Responses


getInvoicesPassive

Get invoices passive

This API allows requesting the XML files of the documents (invoices and credit notes) received by ICAD Sistemi from the SdI (Sistema di Interscambio) as an intermediary on behalf of third parties. By querying the system with specific parameters, the client can then receive and save these files. This endpoint returns exclusively the invoices from the passive cycle.


/invoices/passive

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://mxp-import-export-sn.dev.icadsistemi.com/v1/invoices/passive?from=01-06-2018&to=01-06-2018&supplier_code=0001&is_meta_data=true/false"
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) {

        // Create an instance of the API class
        InvoicesApi apiInstance = new InvoicesApi();
        String from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String supplierCode = 0001; // String | Supplier code being worked with
        String isMetaData = true/false; // String | Indicate whether you also want to receive the metadata files from the SdI

        try {
            InvoicesPassiveResponse result = apiInstance.getInvoicesPassive(from, to, supplierCode, isMetaData);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoicesPassive");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String from = new String(); // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
final String to = new String(); // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
final String supplierCode = new String(); // String | Supplier code being worked with
final String isMetaData = new String(); // String | Indicate whether you also want to receive the metadata files from the SdI

try {
    final result = await api_instance.getInvoicesPassive(from, to, supplierCode, isMetaData);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getInvoicesPassive: $e\n');
}

import org.openapitools.client.api.InvoicesApi;

public class InvoicesApiExample {
    public static void main(String[] args) {
        InvoicesApi apiInstance = new InvoicesApi();
        String from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
        String supplierCode = 0001; // String | Supplier code being worked with
        String isMetaData = true/false; // String | Indicate whether you also want to receive the metadata files from the SdI

        try {
            InvoicesPassiveResponse result = apiInstance.getInvoicesPassive(from, to, supplierCode, isMetaData);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoicesApi#getInvoicesPassive");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InvoicesApi *apiInstance = [[InvoicesApi alloc] init];
String *from = 01-06-2018; // String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
String *to = 01-06-2018; // String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
String *supplierCode = 0001; // Supplier code being worked with (default to null)
String *isMetaData = true/false; // Indicate whether you also want to receive the metadata files from the SdI (optional) (default to null)

// Get invoices passive
[apiInstance getInvoicesPassiveWith:from
    to:to
    supplierCode:supplierCode
    isMetaData:isMetaData
              completionHandler: ^(InvoicesPassiveResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportSelfnet = require('import_export_selfnet');

// Create an instance of the API class
var api = new ImportExportSelfnet.InvoicesApi()
var from = 01-06-2018; // {String} String representing the start date of the interval to be queried, in the format dd-MM-yyyy
var to = 01-06-2018; // {String} String representing the start date of the interval to be queried, in the format dd-MM-yyyy
var supplierCode = 0001; // {String} Supplier code being worked with
var opts = {
  'isMetaData': true/false // {String} Indicate whether you also want to receive the metadata files from the SdI
};

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

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

            // Create an instance of the API class
            var apiInstance = new InvoicesApi();
            var from = 01-06-2018;  // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
            var to = 01-06-2018;  // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
            var supplierCode = 0001;  // String | Supplier code being worked with (default to null)
            var isMetaData = true/false;  // String | Indicate whether you also want to receive the metadata files from the SdI (optional)  (default to null)

            try {
                // Get invoices passive
                InvoicesPassiveResponse result = apiInstance.getInvoicesPassive(from, to, supplierCode, isMetaData);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InvoicesApi.getInvoicesPassive: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InvoicesApi();
$from = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
$to = 01-06-2018; // String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
$supplierCode = 0001; // String | Supplier code being worked with
$isMetaData = true/false; // String | Indicate whether you also want to receive the metadata files from the SdI

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InvoicesApi->new();
my $from = 01-06-2018; # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
my $to = 01-06-2018; # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy
my $supplierCode = 0001; # String | Supplier code being worked with
my $isMetaData = true/false; # String | Indicate whether you also want to receive the metadata files from the SdI

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

# Create an instance of the API class
api_instance = openapi_client.InvoicesApi()
from = 01-06-2018 # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
to = 01-06-2018 # String | String representing the start date of the interval to be queried, in the format dd-MM-yyyy (default to null)
supplierCode = 0001 # String | Supplier code being worked with (default to null)
isMetaData = true/false # String | Indicate whether you also want to receive the metadata files from the SdI (optional) (default to null)

try:
    # Get invoices passive
    api_response = api_instance.get_invoices_passive(from, to, supplierCode, isMetaData=isMetaData)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoicesApi->getInvoicesPassive: %s\n" % e)
extern crate InvoicesApi;

pub fn main() {
    let from = 01-06-2018; // String
    let to = 01-06-2018; // String
    let supplierCode = 0001; // String
    let isMetaData = true/false; // String

    let mut context = InvoicesApi::Context::default();
    let result = client.getInvoicesPassive(from, to, supplierCode, isMetaData, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
from*
String
String representing the start date of the interval to be queried, in the format dd-MM-yyyy
Required
to*
String
String representing the start date of the interval to be queried, in the format dd-MM-yyyy
Required
supplier_code*
String
Supplier code being worked with
Required
is_meta_data
String
Indicate whether you also want to receive the metadata files from the SdI

Responses