Car Wash API

Configuration

getConfiguration

Get base configuration

Get the handled IINs, fuelcoupons and card codes


/configuration

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.ConfigurationApi;

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

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


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

// Get base configuration
[apiInstance getConfigurationWithCompletionHandler: 
              ^(Configuration output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CarWashApi = require('car_wash_api');

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

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

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

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

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

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

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses


Transaction

postTransactionCard

Create a new transaction with card

Create a new car wash transaction with all cards, icad card (end of month, rechargeable) and gt cards (DKV, UTA ecc..)


/transaction/card

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://mxp-public-wash-api.dev.icadsistemi.com/v1/transaction/card" \
 -d '{
  "transaction_id" : 5.637376656633329,
  "card_pin" : "card_pin",
  "amount" : 0.8008281904610115,
  "date_time" : "2000-01-23T04:56:07.000+00:00",
  "is_code" : "is_code",
  "card" : "card",
  "transaction_details" : [ {
    "amount" : 1.4658129,
    "quantity" : 5,
    "unit_price" : 6.0274563,
    "article_code" : "article_code"
  }, {
    "amount" : 1.4658129,
    "quantity" : 5,
    "unit_price" : 6.0274563,
    "article_code" : "article_code"
  } ],
  "terminal_id" : "terminal_id",
  "label_key" : "label_key"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionApi;

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

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

        // Create an instance of the API class
        TransactionApi apiInstance = new TransactionApi();
        Transaction transaction = ; // Transaction | 

        try {
            Transaction-output result = apiInstance.postTransactionCard(transaction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionApi#postTransactionCard");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Transaction transaction = new Transaction(); // Transaction | 

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

import org.openapitools.client.api.TransactionApi;

public class TransactionApiExample {
    public static void main(String[] args) {
        TransactionApi apiInstance = new TransactionApi();
        Transaction transaction = ; // Transaction | 

        try {
            Transaction-output result = apiInstance.postTransactionCard(transaction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionApi#postTransactionCard");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TransactionApi *apiInstance = [[TransactionApi alloc] init];
Transaction *transaction = ; //  (optional)

// Create a new transaction with card
[apiInstance postTransactionCardWith:transaction
              completionHandler: ^(Transaction-output output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CarWashApi = require('car_wash_api');

// Create an instance of the API class
var api = new CarWashApi.TransactionApi()
var opts = {
  'transaction':  // {Transaction} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TransactionApi();
            var transaction = new Transaction(); // Transaction |  (optional) 

            try {
                // Create a new transaction with card
                Transaction-output result = apiInstance.postTransactionCard(transaction);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TransactionApi.postTransactionCard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TransactionApi();
$transaction = ; // Transaction | 

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

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

eval {
    my $result = $api_instance->postTransactionCard(transaction => $transaction);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransactionApi->postTransactionCard: $@\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.TransactionApi()
transaction =  # Transaction |  (optional)

try:
    # Create a new transaction with card
    api_response = api_instance.post_transaction_card(transaction=transaction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransactionApi->postTransactionCard: %s\n" % e)
extern crate TransactionApi;

pub fn main() {
    let transaction = ; // Transaction

    let mut context = TransactionApi::Context::default();
    let result = client.postTransactionCard(transaction, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
transaction

Responses


postTransactionFuelcoupon

Create a new transaction with fuel coupons [Details To be define]


/transaction/fuelcoupon

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://mxp-public-wash-api.dev.icadsistemi.com/v1/transaction/fuelcoupon" \
 -d '{
  "transaction_id" : 5.637376656633329,
  "card_pin" : "card_pin",
  "amount" : 0.8008281904610115,
  "date_time" : "2000-01-23T04:56:07.000+00:00",
  "is_code" : "is_code",
  "card" : "card",
  "transaction_details" : [ {
    "amount" : 1.4658129,
    "quantity" : 5,
    "unit_price" : 6.0274563,
    "article_code" : "article_code"
  }, {
    "amount" : 1.4658129,
    "quantity" : 5,
    "unit_price" : 6.0274563,
    "article_code" : "article_code"
  } ],
  "terminal_id" : "terminal_id",
  "label_key" : "label_key"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionApi;

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

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

        // Create an instance of the API class
        TransactionApi apiInstance = new TransactionApi();
        Transaction transaction = ; // Transaction | 

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

final api_instance = DefaultApi();

final Transaction transaction = new Transaction(); // Transaction | 

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

import org.openapitools.client.api.TransactionApi;

public class TransactionApiExample {
    public static void main(String[] args) {
        TransactionApi apiInstance = new TransactionApi();
        Transaction transaction = ; // Transaction | 

        try {
            apiInstance.postTransactionFuelcoupon(transaction);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionApi#postTransactionFuelcoupon");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TransactionApi *apiInstance = [[TransactionApi alloc] init];
Transaction *transaction = ; //  (optional)

// Create a new transaction with fuel coupons [Details To be define]
[apiInstance postTransactionFuelcouponWith:transaction
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CarWashApi = require('car_wash_api');

// Create an instance of the API class
var api = new CarWashApi.TransactionApi()
var opts = {
  'transaction':  // {Transaction} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TransactionApi();
            var transaction = new Transaction(); // Transaction |  (optional) 

            try {
                // Create a new transaction with fuel coupons [Details To be define]
                apiInstance.postTransactionFuelcoupon(transaction);
            } catch (Exception e) {
                Debug.Print("Exception when calling TransactionApi.postTransactionFuelcoupon: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TransactionApi();
$transaction = ; // Transaction | 

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

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

eval {
    $api_instance->postTransactionFuelcoupon(transaction => $transaction);
};
if ($@) {
    warn "Exception when calling TransactionApi->postTransactionFuelcoupon: $@\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.TransactionApi()
transaction =  # Transaction |  (optional)

try:
    # Create a new transaction with fuel coupons [Details To be define]
    api_instance.post_transaction_fuelcoupon(transaction=transaction)
except ApiException as e:
    print("Exception when calling TransactionApi->postTransactionFuelcoupon: %s\n" % e)
extern crate TransactionApi;

pub fn main() {
    let transaction = ; // Transaction

    let mut context = TransactionApi::Context::default();
    let result = client.postTransactionFuelcoupon(transaction, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
transaction

Responses


postTransactionLoyaltyPoints

Create a new transaction with point card [Details To be define]

Register a transaction made with a point card.


/transaction/loyalty/points

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://mxp-public-wash-api.dev.icadsistemi.com/v1/transaction/loyalty/points" \
 -d '{
  "transaction_id" : 5.637376656633329,
  "card_pin" : "card_pin",
  "amount" : 0.8008281904610115,
  "date_time" : "2000-01-23T04:56:07.000+00:00",
  "is_code" : "is_code",
  "card" : "card",
  "transaction_details" : [ {
    "amount" : 1.4658129,
    "quantity" : 5,
    "unit_price" : 6.0274563,
    "article_code" : "article_code"
  }, {
    "amount" : 1.4658129,
    "quantity" : 5,
    "unit_price" : 6.0274563,
    "article_code" : "article_code"
  } ],
  "terminal_id" : "terminal_id",
  "label_key" : "label_key"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionApi;

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

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

        // Create an instance of the API class
        TransactionApi apiInstance = new TransactionApi();
        Transaction transaction = ; // Transaction | 

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

final api_instance = DefaultApi();

final Transaction transaction = new Transaction(); // Transaction | 

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

import org.openapitools.client.api.TransactionApi;

public class TransactionApiExample {
    public static void main(String[] args) {
        TransactionApi apiInstance = new TransactionApi();
        Transaction transaction = ; // Transaction | 

        try {
            apiInstance.postTransactionLoyaltyPoints(transaction);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionApi#postTransactionLoyaltyPoints");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TransactionApi *apiInstance = [[TransactionApi alloc] init];
Transaction *transaction = ; //  (optional)

// Create a new transaction with point card [Details To be define]
[apiInstance postTransactionLoyaltyPointsWith:transaction
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CarWashApi = require('car_wash_api');

// Create an instance of the API class
var api = new CarWashApi.TransactionApi()
var opts = {
  'transaction':  // {Transaction} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TransactionApi();
            var transaction = new Transaction(); // Transaction |  (optional) 

            try {
                // Create a new transaction with point card [Details To be define]
                apiInstance.postTransactionLoyaltyPoints(transaction);
            } catch (Exception e) {
                Debug.Print("Exception when calling TransactionApi.postTransactionLoyaltyPoints: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TransactionApi();
$transaction = ; // Transaction | 

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

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

eval {
    $api_instance->postTransactionLoyaltyPoints(transaction => $transaction);
};
if ($@) {
    warn "Exception when calling TransactionApi->postTransactionLoyaltyPoints: $@\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.TransactionApi()
transaction =  # Transaction |  (optional)

try:
    # Create a new transaction with point card [Details To be define]
    api_instance.post_transaction_loyalty_points(transaction=transaction)
except ApiException as e:
    print("Exception when calling TransactionApi->postTransactionLoyaltyPoints: %s\n" % e)
extern crate TransactionApi;

pub fn main() {
    let transaction = ; // Transaction

    let mut context = TransactionApi::Context::default();
    let result = client.postTransactionLoyaltyPoints(transaction, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
transaction

Responses