Import export Overview

Closures

getExportClosureIscodeDateClosureTypeTurn

Get closure for the fuel station

Get closure for the fuel station


/export/closure/{iscode}/{date}/{closure_type}/{turn}

Usage and SDK Samples

curl -X GET \
 \
 \
 -H "Accept: application/json" \
 "https://mxp-import-export-ov.dev.icadsistemi.com/v1/export/closure/{iscode}/{date}/{closure_type}/{turn}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClosuresApi;

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

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

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

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

        // Create an instance of the API class
        ClosuresApi apiInstance = new ClosuresApi();
        String iscode = iscode_example; // String | IS code assigned to the fuel station
        String date = date_example; // String | Reference date on format YYYYMMDD
        String closureType = closureType_example; // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
        String turn = turn_example; // String | Turn number. User 0 for closure_type "day" or "pc".

        try {
            array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] result = apiInstance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClosuresApi#getExportClosureIscodeDateClosureTypeTurn");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String iscode = new String(); // String | IS code assigned to the fuel station
final String date = new String(); // String | Reference date on format YYYYMMDD
final String closureType = new String(); // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
final String turn = new String(); // String | Turn number. User 0 for closure_type "day" or "pc".

try {
    final result = await api_instance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getExportClosureIscodeDateClosureTypeTurn: $e\n');
}

import org.openapitools.client.api.ClosuresApi;

public class ClosuresApiExample {
    public static void main(String[] args) {
        ClosuresApi apiInstance = new ClosuresApi();
        String iscode = iscode_example; // String | IS code assigned to the fuel station
        String date = date_example; // String | Reference date on format YYYYMMDD
        String closureType = closureType_example; // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
        String turn = turn_example; // String | Turn number. User 0 for closure_type "day" or "pc".

        try {
            array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] result = apiInstance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClosuresApi#getExportClosureIscodeDateClosureTypeTurn");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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


// Create an instance of the API class
ClosuresApi *apiInstance = [[ClosuresApi alloc] init];
String *iscode = iscode_example; // IS code assigned to the fuel station (default to null)
String *date = date_example; // Reference date on format YYYYMMDD (default to null)
String *closureType = closureType_example; // Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures (default to null)
String *turn = turn_example; // Turn number. User 0 for closure_type "day" or "pc". (default to null)

// Get closure for the fuel station
[apiInstance getExportClosureIscodeDateClosureTypeTurnWith:iscode
    date:date
    closureType:closureType
    turn:turn
              completionHandler: ^(array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportOverview = require('import_export_overview');
var defaultClient = ImportExportOverview.ApiClient.instance;

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

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

// Create an instance of the API class
var api = new ImportExportOverview.ClosuresApi()
var iscode = iscode_example; // {String} IS code assigned to the fuel station
var date = date_example; // {String} Reference date on format YYYYMMDD
var closureType = closureType_example; // {String} Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
var turn = turn_example; // {String} Turn number. User 0 for closure_type "day" or "pc".

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

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

            // Create an instance of the API class
            var apiInstance = new ClosuresApi();
            var iscode = iscode_example;  // String | IS code assigned to the fuel station (default to null)
            var date = date_example;  // String | Reference date on format YYYYMMDD (default to null)
            var closureType = closureType_example;  // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures (default to null)
            var turn = turn_example;  // String | Turn number. User 0 for closure_type "day" or "pc". (default to null)

            try {
                // Get closure for the fuel station
                array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] result = apiInstance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClosuresApi.getExportClosureIscodeDateClosureTypeTurn: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ClosuresApi();
$iscode = iscode_example; // String | IS code assigned to the fuel station
$date = date_example; // String | Reference date on format YYYYMMDD
$closureType = closureType_example; // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
$turn = turn_example; // String | Turn number. User 0 for closure_type "day" or "pc".

try {
    $result = $api_instance->getExportClosureIscodeDateClosureTypeTurn($iscode, $date, $closureType, $turn);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClosuresApi->getExportClosureIscodeDateClosureTypeTurn: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ClosuresApi;

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ClosuresApi->new();
my $iscode = iscode_example; # String | IS code assigned to the fuel station
my $date = date_example; # String | Reference date on format YYYYMMDD
my $closureType = closureType_example; # String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
my $turn = turn_example; # String | Turn number. User 0 for closure_type "day" or "pc".

eval {
    my $result = $api_instance->getExportClosureIscodeDateClosureTypeTurn(iscode => $iscode, date => $date, closureType => $closureType, turn => $turn);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClosuresApi->getExportClosureIscodeDateClosureTypeTurn: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

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

# Create an instance of the API class
api_instance = openapi_client.ClosuresApi()
iscode = iscode_example # String | IS code assigned to the fuel station (default to null)
date = date_example # String | Reference date on format YYYYMMDD (default to null)
closureType = closureType_example # String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures (default to null)
turn = turn_example # String | Turn number. User 0 for closure_type "day" or "pc". (default to null)

try:
    # Get closure for the fuel station
    api_response = api_instance.get_export_closure_iscode_date_closure_type_turn(iscode, date, closureType, turn)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClosuresApi->getExportClosureIscodeDateClosureTypeTurn: %s\n" % e)
extern crate ClosuresApi;

pub fn main() {
    let iscode = iscode_example; // String
    let date = date_example; // String
    let closureType = closureType_example; // String
    let turn = turn_example; // String

    let mut context = ClosuresApi::Context::default();
    let result = client.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
iscode*
String
IS code assigned to the fuel station
Required
date*
String
Reference date on format YYYYMMDD
Required
closure_type*
String
Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
Required
turn*
String
Turn number. User 0 for closure_type "day" or "pc".
Required

Responses


Levels

getExportLevels

Get levels

Get levels


/export/levels

Usage and SDK Samples

curl -X GET \
 \
 \
 -H "Accept: application/json" \
 "https://mxp-import-export-ov.dev.icadsistemi.com/v1/export/levels?start_datetime=56&end_datetime=56&supplier_id=56&fuel_station_code=fuelStationCode_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LevelsApi;

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

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

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

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

        // Create an instance of the API class
        LevelsApi apiInstance = new LevelsApi();
        Integer startDatetime = 56; // Integer | start date time in unix time format (maximum interval between start and end 7 days)
        Integer endDatetime = 56; // Integer | end date time in unix time format (maximum interval between start and end 7 days)
        Integer supplierId = 56; // Integer | supplier identifier
        String fuelStationCode = fuelStationCode_example; // String | optional fuel station code (if omitted get levels for all fuel stations)

        try {
            array[level] result = apiInstance.getExportLevels(startDatetime, endDatetime, supplierId, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LevelsApi#getExportLevels");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer startDatetime = new Integer(); // Integer | start date time in unix time format (maximum interval between start and end 7 days)
final Integer endDatetime = new Integer(); // Integer | end date time in unix time format (maximum interval between start and end 7 days)
final Integer supplierId = new Integer(); // Integer | supplier identifier
final String fuelStationCode = new String(); // String | optional fuel station code (if omitted get levels for all fuel stations)

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

import org.openapitools.client.api.LevelsApi;

public class LevelsApiExample {
    public static void main(String[] args) {
        LevelsApi apiInstance = new LevelsApi();
        Integer startDatetime = 56; // Integer | start date time in unix time format (maximum interval between start and end 7 days)
        Integer endDatetime = 56; // Integer | end date time in unix time format (maximum interval between start and end 7 days)
        Integer supplierId = 56; // Integer | supplier identifier
        String fuelStationCode = fuelStationCode_example; // String | optional fuel station code (if omitted get levels for all fuel stations)

        try {
            array[level] result = apiInstance.getExportLevels(startDatetime, endDatetime, supplierId, fuelStationCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LevelsApi#getExportLevels");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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


// Create an instance of the API class
LevelsApi *apiInstance = [[LevelsApi alloc] init];
Integer *startDatetime = 56; // start date time in unix time format (maximum interval between start and end 7 days) (default to null)
Integer *endDatetime = 56; // end date time in unix time format (maximum interval between start and end 7 days) (default to null)
Integer *supplierId = 56; // supplier identifier (default to null)
String *fuelStationCode = fuelStationCode_example; // optional fuel station code (if omitted get levels for all fuel stations) (optional) (default to null)

// Get levels
[apiInstance getExportLevelsWith:startDatetime
    endDatetime:endDatetime
    supplierId:supplierId
    fuelStationCode:fuelStationCode
              completionHandler: ^(array[level] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ImportExportOverview = require('import_export_overview');
var defaultClient = ImportExportOverview.ApiClient.instance;

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

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

// Create an instance of the API class
var api = new ImportExportOverview.LevelsApi()
var startDatetime = 56; // {Integer} start date time in unix time format (maximum interval between start and end 7 days)
var endDatetime = 56; // {Integer} end date time in unix time format (maximum interval between start and end 7 days)
var supplierId = 56; // {Integer} supplier identifier
var opts = {
  'fuelStationCode': fuelStationCode_example // {String} optional fuel station code (if omitted get levels for all fuel stations)
};

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

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

            // Create an instance of the API class
            var apiInstance = new LevelsApi();
            var startDatetime = 56;  // Integer | start date time in unix time format (maximum interval between start and end 7 days) (default to null)
            var endDatetime = 56;  // Integer | end date time in unix time format (maximum interval between start and end 7 days) (default to null)
            var supplierId = 56;  // Integer | supplier identifier (default to null)
            var fuelStationCode = fuelStationCode_example;  // String | optional fuel station code (if omitted get levels for all fuel stations) (optional)  (default to null)

            try {
                // Get levels
                array[level] result = apiInstance.getExportLevels(startDatetime, endDatetime, supplierId, fuelStationCode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LevelsApi.getExportLevels: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LevelsApi();
$startDatetime = 56; // Integer | start date time in unix time format (maximum interval between start and end 7 days)
$endDatetime = 56; // Integer | end date time in unix time format (maximum interval between start and end 7 days)
$supplierId = 56; // Integer | supplier identifier
$fuelStationCode = fuelStationCode_example; // String | optional fuel station code (if omitted get levels for all fuel stations)

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

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LevelsApi->new();
my $startDatetime = 56; # Integer | start date time in unix time format (maximum interval between start and end 7 days)
my $endDatetime = 56; # Integer | end date time in unix time format (maximum interval between start and end 7 days)
my $supplierId = 56; # Integer | supplier identifier
my $fuelStationCode = fuelStationCode_example; # String | optional fuel station code (if omitted get levels for all fuel stations)

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

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

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

# Create an instance of the API class
api_instance = openapi_client.LevelsApi()
startDatetime = 56 # Integer | start date time in unix time format (maximum interval between start and end 7 days) (default to null)
endDatetime = 56 # Integer | end date time in unix time format (maximum interval between start and end 7 days) (default to null)
supplierId = 56 # Integer | supplier identifier (default to null)
fuelStationCode = fuelStationCode_example # String | optional fuel station code (if omitted get levels for all fuel stations) (optional) (default to null)

try:
    # Get levels
    api_response = api_instance.get_export_levels(startDatetime, endDatetime, supplierId, fuelStationCode=fuelStationCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LevelsApi->getExportLevels: %s\n" % e)
extern crate LevelsApi;

pub fn main() {
    let startDatetime = 56; // Integer
    let endDatetime = 56; // Integer
    let supplierId = 56; // Integer
    let fuelStationCode = fuelStationCode_example; // String

    let mut context = LevelsApi::Context::default();
    let result = client.getExportLevels(startDatetime, endDatetime, supplierId, fuelStationCode, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
start_datetime*
Integer
start date time in unix time format (maximum interval between start and end 7 days)
Required
end_datetime*
Integer
end date time in unix time format (maximum interval between start and end 7 days)
Required
supplier_id*
Integer
supplier identifier
Required
fuel_station_code
String
optional fuel station code (if omitted get levels for all fuel stations)

Responses