Mustangserver

MustangController

cii2ubl

Converts a UN/CEFACT CII XML file to UBL


/mustang/cii2ubl

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: application/xml"\
-H "Content-Type: application/xml"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/cii2ubl"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        String body = ; // String | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.cii2ubl(body, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#cii2ubl");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        String body = ; // String | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.cii2ubl(body, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#cii2ubl");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *body = ; // 
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Converts a UN/CEFACT CII XML file to UBL
[apiInstance cii2ublWith:body
    uSERNAME:uSERNAME
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var body = ; // {{String}} 
var opts = { 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cii2ubl(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var body = new String(); // String | 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Converts a UN/CEFACT CII XML file to UBL
                'String' result = apiInstance.cii2ubl(body, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.cii2ubl: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$body = ; // String | 
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $body = WWW::SwaggerClient::Object::String->new(); # String | 
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
body =  # String | 
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Converts a UN/CEFACT CII XML file to UBL
    api_response = api_instance.cii2ubl(body, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->cii2ubl: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Body parameters
Name Description
body *

Responses

Status: 200 - Converts a UN/CEFACT CII XML file to UBL

Status: 400 - Bad Request


ciitoubl


/mustang/ciitoubl

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: application/xml"\
-H "Content-Type: application/xml"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/ciitoubl"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        String body = ; // String | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.ciitoubl(body, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#ciitoubl");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        String body = ; // String | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.ciitoubl(body, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#ciitoubl");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *body = ; // 
String *uSERNAME = uSERNAME_example; //  (optional)

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

[apiInstance ciitoublWith:body
    uSERNAME:uSERNAME
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var body = ; // {{String}} 
var opts = { 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ciitoubl(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var body = new String(); // String | 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

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

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$body = ; // String | 
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $body = WWW::SwaggerClient::Object::String->new(); # String | 
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
body =  # String | 
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    api_response = api_instance.ciitoubl(body, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->ciitoubl: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Body parameters
Name Description
body *

Responses

Status: 200 - OK


combine

Combine PDF/A file and JSON invoice object. Output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.


/mustang/combine

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/combine?format=&profile=&version="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        String format = format_example; // String | 
        String profile = profile_example; // String | 
        Integer version = 56; // Integer | 
        byte[] file = file_example; // byte[] | 
        String json = json_example; // String | 
        Boolean ignorePDFAErrors = true; // Boolean | 
        Boolean returnJSON = true; // Boolean | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            array[byte[]] result = apiInstance.combine(format, profile, version, file, json, ignorePDFAErrors, returnJSON, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#combine");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        String format = format_example; // String | 
        String profile = profile_example; // String | 
        Integer version = 56; // Integer | 
        byte[] file = file_example; // byte[] | 
        String json = json_example; // String | 
        Boolean ignorePDFAErrors = true; // Boolean | 
        Boolean returnJSON = true; // Boolean | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            array[byte[]] result = apiInstance.combine(format, profile, version, file, json, ignorePDFAErrors, returnJSON, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#combine");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *format = format_example; // 
String *profile = profile_example; // 
Integer *version = 56; // 
byte[] *file = file_example; //  (optional)
String *json = json_example; //  (optional)
Boolean *ignorePDFAErrors = true; //  (optional)
Boolean *returnJSON = true; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Combine PDF/A file and JSON invoice object. Output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.
[apiInstance combineWith:format
    profile:profile
    version:version
    file:file
    json:json
    ignorePDFAErrors:ignorePDFAErrors
    returnJSON:returnJSON
    uSERNAME:uSERNAME
              completionHandler: ^(array[byte[]] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var format = format_example; // {{String}} 
var profile = profile_example; // {{String}} 
var version = 56; // {{Integer}} 
var opts = { 
  'file': file_example // {{byte[]}} 
  'json': json_example // {{String}} 
  'ignorePDFAErrors': true // {{Boolean}} 
  'returnJSON': true // {{Boolean}} 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.combine(formatprofileversion, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var format = format_example;  // String | 
            var profile = profile_example;  // String | 
            var version = 56;  // Integer | 
            var file = file_example;  // byte[] |  (optional) 
            var json = json_example;  // String |  (optional) 
            var ignorePDFAErrors = true;  // Boolean |  (optional) 
            var returnJSON = true;  // Boolean |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Combine PDF/A file and JSON invoice object. Output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.
                array[byte[]] result = apiInstance.combine(format, profile, version, file, json, ignorePDFAErrors, returnJSON, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.combine: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$format = format_example; // String | 
$profile = profile_example; // String | 
$version = 56; // Integer | 
$file = file_example; // byte[] | 
$json = json_example; // String | 
$ignorePDFAErrors = true; // Boolean | 
$returnJSON = true; // Boolean | 
$uSERNAME = uSERNAME_example; // String | 

try {
    $result = $api_instance->combine($format, $profile, $version, $file, $json, $ignorePDFAErrors, $returnJSON, $uSERNAME);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MustangControllerApi->combine: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MustangControllerApi;

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $format = format_example; # String | 
my $profile = profile_example; # String | 
my $version = 56; # Integer | 
my $file = file_example; # byte[] | 
my $json = json_example; # String | 
my $ignorePDFAErrors = true; # Boolean | 
my $returnJSON = true; # Boolean | 
my $uSERNAME = uSERNAME_example; # String | 

eval { 
    my $result = $api_instance->combine(format => $format, profile => $profile, version => $version, file => $file, json => $json, ignorePDFAErrors => $ignorePDFAErrors, returnJSON => $returnJSON, uSERNAME => $uSERNAME);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MustangControllerApi->combine: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
format = format_example # String | 
profile = profile_example # String | 
version = 56 # Integer | 
file = file_example # byte[] |  (optional)
json = json_example # String |  (optional)
ignorePDFAErrors = true # Boolean |  (optional)
returnJSON = true # Boolean |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Combine PDF/A file and JSON invoice object. Output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.
    api_response = api_instance.combine(format, profile, version, file=file, json=json, ignorePDFAErrors=ignorePDFAErrors, returnJSON=returnJSON, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->combine: %s\n" % e)

Parameters

Header parameters
Name Description
ignorePDFAErrors
Boolean
returnJSON
Boolean
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)
json
String
Query parameters
Name Description
format*
String
Required
profile*
String
Required
version*
Integer (int32)
Required

Responses

Status: 200 - Combine PDF/A file and JSON to zf/fx PDF. Input PDF must be PDF/A-1 or PDF/A-3, output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.

Status: 400 - Bad Request


combineXML

Combine PDF/A file and custom XML to zf/fx PDF. Input PDF must be PDF/A-1 or A-3, output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.


/mustang/combineXML

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/combineXML?format=&version=&profile="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        String format = format_example; // String | 
        Integer version = 56; // Integer | 
        String profile = profile_example; // String | 
        byte[] file = file_example; // byte[] | 
        String xML = xML_example; // String | 
        Boolean ignorePDFAErrors = true; // Boolean | 
        Boolean returnJSON = true; // Boolean | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            array[byte[]] result = apiInstance.combineXML(format, version, profile, file, xML, ignorePDFAErrors, returnJSON, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#combineXML");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        String format = format_example; // String | 
        Integer version = 56; // Integer | 
        String profile = profile_example; // String | 
        byte[] file = file_example; // byte[] | 
        String xML = xML_example; // String | 
        Boolean ignorePDFAErrors = true; // Boolean | 
        Boolean returnJSON = true; // Boolean | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            array[byte[]] result = apiInstance.combineXML(format, version, profile, file, xML, ignorePDFAErrors, returnJSON, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#combineXML");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *format = format_example; // 
Integer *version = 56; // 
String *profile = profile_example; // 
byte[] *file = file_example; //  (optional)
String *xML = xML_example; //  (optional)
Boolean *ignorePDFAErrors = true; //  (optional)
Boolean *returnJSON = true; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Combine PDF/A file and custom XML to zf/fx PDF. Input PDF must be PDF/A-1 or A-3, output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.
[apiInstance combineXMLWith:format
    version:version
    profile:profile
    file:file
    xML:xML
    ignorePDFAErrors:ignorePDFAErrors
    returnJSON:returnJSON
    uSERNAME:uSERNAME
              completionHandler: ^(array[byte[]] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var format = format_example; // {{String}} 
var version = 56; // {{Integer}} 
var profile = profile_example; // {{String}} 
var opts = { 
  'file': file_example // {{byte[]}} 
  'xML': xML_example // {{String}} 
  'ignorePDFAErrors': true // {{Boolean}} 
  'returnJSON': true // {{Boolean}} 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.combineXML(formatversionprofile, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var format = format_example;  // String | 
            var version = 56;  // Integer | 
            var profile = profile_example;  // String | 
            var file = file_example;  // byte[] |  (optional) 
            var xML = xML_example;  // String |  (optional) 
            var ignorePDFAErrors = true;  // Boolean |  (optional) 
            var returnJSON = true;  // Boolean |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Combine PDF/A file and custom XML to zf/fx PDF. Input PDF must be PDF/A-1 or A-3, output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.
                array[byte[]] result = apiInstance.combineXML(format, version, profile, file, xML, ignorePDFAErrors, returnJSON, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.combineXML: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$format = format_example; // String | 
$version = 56; // Integer | 
$profile = profile_example; // String | 
$file = file_example; // byte[] | 
$xML = xML_example; // String | 
$ignorePDFAErrors = true; // Boolean | 
$returnJSON = true; // Boolean | 
$uSERNAME = uSERNAME_example; // String | 

try {
    $result = $api_instance->combineXML($format, $version, $profile, $file, $xML, $ignorePDFAErrors, $returnJSON, $uSERNAME);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MustangControllerApi->combineXML: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MustangControllerApi;

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $format = format_example; # String | 
my $version = 56; # Integer | 
my $profile = profile_example; # String | 
my $file = file_example; # byte[] | 
my $xML = xML_example; # String | 
my $ignorePDFAErrors = true; # Boolean | 
my $returnJSON = true; # Boolean | 
my $uSERNAME = uSERNAME_example; # String | 

eval { 
    my $result = $api_instance->combineXML(format => $format, version => $version, profile => $profile, file => $file, xML => $xML, ignorePDFAErrors => $ignorePDFAErrors, returnJSON => $returnJSON, uSERNAME => $uSERNAME);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MustangControllerApi->combineXML: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
format = format_example # String | 
version = 56 # Integer | 
profile = profile_example # String | 
file = file_example # byte[] |  (optional)
xML = xML_example # String |  (optional)
ignorePDFAErrors = true # Boolean |  (optional)
returnJSON = true # Boolean |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Combine PDF/A file and custom XML to zf/fx PDF. Input PDF must be PDF/A-1 or A-3, output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.
    api_response = api_instance.combine_xml(format, version, profile, file=file, xML=xML, ignorePDFAErrors=ignorePDFAErrors, returnJSON=returnJSON, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->combineXML: %s\n" % e)

Parameters

Header parameters
Name Description
ignorePDFAErrors
Boolean
returnJSON
Boolean
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)
XML
String
Query parameters
Name Description
format*
String
Required
version*
Integer (int32)
Required
profile*
String
Required

Responses

Status: 200 - Combine PDF/A file and custom XML to zf/fx PDF. Input PDF must be PDF/A-1 or PDF/A-3, output PDF will be a ZUGFeRD/Factur-X PDF/A-3 file called invoice.pdf.

Status: 400 - Bad Request


detach

Extract invoice file attachments from XML and PDF files


/mustang/detach

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: application/json"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/detach"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            map['String', Object] result = apiInstance.detach(file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#detach");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            map['String', Object] result = apiInstance.detach(file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#detach");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Extract invoice file attachments from XML and PDF files
[apiInstance detachWith:file
    uSERNAME:uSERNAME
              completionHandler: ^(map['String', Object] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var opts = { 
  'file': file_example // {{byte[]}} 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.detach(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var file = file_example;  // byte[] |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Extract invoice file attachments from XML and PDF files
                map['String', Object] result = apiInstance.detach(file, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.detach: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$file = file_example; // byte[] | 
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $file = file_example; # byte[] | 
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
file = file_example # byte[] |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Extract invoice file attachments from XML and PDF files
    api_response = api_instance.detach(file=file, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->detach: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)

Responses

Status: 200 - OK

Status: 400 - Bad Request


extractFile

Extracts XML from a zf/fx PDF or XML. Input PDF must be ZUGFeRD or Factur-X, XML must be xr,zf,fx or ox


/mustang/extract

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/extract"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.extractFile(file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#extractFile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.extractFile(file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#extractFile");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Extracts XML from a zf/fx PDF or XML. Input PDF must be ZUGFeRD or Factur-X, XML must be xr,zf,fx or ox
[apiInstance extractFileWith:file
    uSERNAME:uSERNAME
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var opts = { 
  'file': file_example // {{byte[]}} 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.extractFile(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var file = file_example;  // byte[] |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Extracts XML from a zf/fx PDF or XML. Input PDF must be ZUGFeRD or Factur-X, XML must be xr,zf,fx or ox
                'String' result = apiInstance.extractFile(file, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.extractFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$file = file_example; // byte[] | 
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $file = file_example; # byte[] | 
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
file = file_example # byte[] |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Extracts XML from a zf/fx PDF or XML. Input PDF must be ZUGFeRD or Factur-X, XML must be xr,zf,fx or ox
    api_response = api_instance.extract_file(file=file, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->extractFile: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)

Responses

Status: 200 - Extracts XML from a PDF or XML

Status: 400 - Bad Request


invoice2xml

Invoice class to XML. Input must be JSON.


/mustang/invoice2XML

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: application/xml"\
-H "Content-Type: application/json"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/invoice2XML?format=&profile=&version="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        CalculatedInvoice body = ; // CalculatedInvoice | 
        String format = format_example; // String | 
        String profile = profile_example; // String | 
        Integer version = 56; // Integer | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.invoice2xml(body, format, profile, version, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#invoice2xml");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        CalculatedInvoice body = ; // CalculatedInvoice | 
        String format = format_example; // String | 
        String profile = profile_example; // String | 
        Integer version = 56; // Integer | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.invoice2xml(body, format, profile, version, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#invoice2xml");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CalculatedInvoice *body = ; // 
String *format = format_example; // 
String *profile = profile_example; // 
Integer *version = 56; // 
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Invoice class to XML. Input must be JSON.
[apiInstance invoice2xmlWith:body
    format:format
    profile:profile
    version:version
    uSERNAME:uSERNAME
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var body = ; // {{CalculatedInvoice}} 
var format = format_example; // {{String}} 
var profile = profile_example; // {{String}} 
var version = 56; // {{Integer}} 
var opts = { 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.invoice2xml(bodyformatprofileversion, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var body = new CalculatedInvoice(); // CalculatedInvoice | 
            var format = format_example;  // String | 
            var profile = profile_example;  // String | 
            var version = 56;  // Integer | 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Invoice class to XML. Input must be JSON.
                'String' result = apiInstance.invoice2xml(body, format, profile, version, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.invoice2xml: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$body = ; // CalculatedInvoice | 
$format = format_example; // String | 
$profile = profile_example; // String | 
$version = 56; // Integer | 
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $body = WWW::SwaggerClient::Object::CalculatedInvoice->new(); # CalculatedInvoice | 
my $format = format_example; # String | 
my $profile = profile_example; # String | 
my $version = 56; # Integer | 
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
body =  # CalculatedInvoice | 
format = format_example # String | 
profile = profile_example # String | 
version = 56 # Integer | 
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Invoice class to XML. Input must be JSON.
    api_response = api_instance.invoice2xml(body, format, profile, version, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->invoice2xml: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Body parameters
Name Description
body *
Query parameters
Name Description
format*
String
Required
profile*
String
Required
version*
Integer (int32)
Required

Responses

Status: 200 - Invoice class to XML. Input must be JSON, output will be XML (CII).

Status: 400 - Bad Request


parse

Reads a Factur-X file into an invoice object. Requires a PDF or CII or UBL XML file.


/mustang/parse

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/parse"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            CalculatedInvoice result = apiInstance.parse(file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#parse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            CalculatedInvoice result = apiInstance.parse(file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#parse");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Reads a Factur-X file into an invoice object. Requires a PDF or CII or UBL XML file.
[apiInstance parseWith:file
    uSERNAME:uSERNAME
              completionHandler: ^(CalculatedInvoice output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var opts = { 
  'file': file_example // {{byte[]}} 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.parse(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var file = file_example;  // byte[] |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Reads a Factur-X file into an invoice object. Requires a PDF or CII or UBL XML file.
                CalculatedInvoice result = apiInstance.parse(file, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.parse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$file = file_example; // byte[] | 
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $file = file_example; # byte[] | 
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
file = file_example # byte[] |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Reads a Factur-X file into an invoice object. Requires a PDF or CII or UBL XML file.
    api_response = api_instance.parse(file=file, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->parse: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)

Responses

Status: 200 - Reads a Factur-X file into an invoice object

Status: 400 - Bad Request


ping

Healthcheck. Just request a ping, will respond with a 'pong'


/mustang/ping

Usage and SDK Samples

curl -X GET\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/ping"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.ping(uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#ping");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.ping(uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#ping");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Healthcheck. Just request a ping, will respond with a 'pong'
[apiInstance pingWith:uSERNAME
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var opts = { 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ping(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Healthcheck. Just request a ping, will respond with a 'pong'
                'String' result = apiInstance.ping(uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.ping: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Healthcheck. Just request a ping, will respond with a 'pong'
    api_response = api_instance.ping(uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->ping: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String

Responses

Status: 200 - Healthcheck. Just request a ping, will respond with a 'pong'

Status: 400 - Bad Request


xmltohtml

Visualisation from XML to HTML.


/mustang/xmltohtml

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: application/octet-stream"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/xmltohtml?language="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        String language = language_example; // String | 
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.xmltohtml(language, file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#xmltohtml");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        String language = language_example; // String | 
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.xmltohtml(language, file, uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#xmltohtml");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *language = language_example; // 
byte[] *file = file_example; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Visualisation from XML to HTML.
[apiInstance xmltohtmlWith:language
    file:file
    uSERNAME:uSERNAME
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var language = language_example; // {{String}} 
var opts = { 
  'file': file_example // {{byte[]}} 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.xmltohtml(language, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var language = language_example;  // String | 
            var file = file_example;  // byte[] |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Visualisation from XML to HTML.
                'String' result = apiInstance.xmltohtml(language, file, uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.xmltohtml: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$language = language_example; // String | 
$file = file_example; // byte[] | 
$uSERNAME = uSERNAME_example; // String | 

try {
    $result = $api_instance->xmltohtml($language, $file, $uSERNAME);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MustangControllerApi->xmltohtml: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MustangControllerApi;

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $language = language_example; # String | 
my $file = file_example; # byte[] | 
my $uSERNAME = uSERNAME_example; # String | 

eval { 
    my $result = $api_instance->xmltohtml(language => $language, file => $file, uSERNAME => $uSERNAME);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MustangControllerApi->xmltohtml: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
language = language_example # String | 
file = file_example # byte[] |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Visualisation from XML to HTML.
    api_response = api_instance.xmltohtml(language, file=file, uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->xmltohtml: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)
Query parameters
Name Description
language*
String
Required

Responses

Status: 200 - Visualisation from XML to HTML.

Status: 400 - Bad Request


xmltopdf

Returns a PDF/A-3 visualisation from a XML string.


/mustang/xmltopdf

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/xmltopdf?returnJSON="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;

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

public class MustangControllerApiExample {

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

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

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

        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        Boolean returnJSON = true; // Boolean | 
        try {
            array[byte[]] result = apiInstance.xmltopdf(file, uSERNAME, returnJSON);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#xmltopdf");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MustangControllerApi;

public class MustangControllerApiExample {

    public static void main(String[] args) {
        MustangControllerApi apiInstance = new MustangControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        Boolean returnJSON = true; // Boolean | 
        try {
            array[byte[]] result = apiInstance.xmltopdf(file, uSERNAME, returnJSON);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MustangControllerApi#xmltopdf");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)
Boolean *returnJSON = true; //  (optional) (default to false)

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

// Returns a PDF/A-3 visualisation from a XML string.
[apiInstance xmltopdfWith:file
    uSERNAME:uSERNAME
    returnJSON:returnJSON
              completionHandler: ^(array[byte[]] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.MustangControllerApi()
var opts = { 
  'file': file_example // {{byte[]}} 
  'uSERNAME': uSERNAME_example // {{String}} 
  'returnJSON': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.xmltopdf(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MustangControllerApi();
            var file = file_example;  // byte[] |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 
            var returnJSON = true;  // Boolean |  (optional)  (default to false)

            try
            {
                // Returns a PDF/A-3 visualisation from a XML string.
                array[byte[]] result = apiInstance.xmltopdf(file, uSERNAME, returnJSON);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MustangControllerApi.xmltopdf: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMustangControllerApi();
$file = file_example; // byte[] | 
$uSERNAME = uSERNAME_example; // String | 
$returnJSON = true; // Boolean | 

try {
    $result = $api_instance->xmltopdf($file, $uSERNAME, $returnJSON);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MustangControllerApi->xmltopdf: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MustangControllerApi;

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $file = file_example; # byte[] | 
my $uSERNAME = uSERNAME_example; # String | 
my $returnJSON = true; # Boolean | 

eval { 
    my $result = $api_instance->xmltopdf(file => $file, uSERNAME => $uSERNAME, returnJSON => $returnJSON);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MustangControllerApi->xmltopdf: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
file = file_example # byte[] |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)
returnJSON = true # Boolean |  (optional) (default to false)

try: 
    # Returns a PDF/A-3 visualisation from a XML string.
    api_response = api_instance.xmltopdf(file=file, uSERNAME=uSERNAME, returnJSON=returnJSON)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MustangControllerApi->xmltopdf: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)
Query parameters
Name Description
returnJSON
Boolean

Responses

Status: 200 - Returns a PDF/A-3 visualisation from a XML string.

Status: 400 - Bad Request


PreErrorController

error


/error

Usage and SDK Samples

curl -X GET\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
"https://gw.usegroup.de:8243/mustang/1.7.1/error"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PreErrorControllerApi;

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

public class PreErrorControllerApiExample {

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

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

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

        PreErrorControllerApi apiInstance = new PreErrorControllerApi();
        try {
            'String' result = apiInstance.error();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreErrorControllerApi#error");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PreErrorControllerApi;

public class PreErrorControllerApiExample {

    public static void main(String[] args) {
        PreErrorControllerApi apiInstance = new PreErrorControllerApi();
        try {
            'String' result = apiInstance.error();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreErrorControllerApi#error");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

[apiInstance errorWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

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

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PreErrorControllerApi();

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

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPreErrorControllerApi();

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PreErrorControllerApi->new();

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PreErrorControllerApi()

try: 
    api_response = api_instance.error()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreErrorControllerApi->error: %s\n" % e)

Parameters

Responses

Status: 200 - OK


ValidationController

phive

Validates a XML file


/mustang/phive

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/phive?VESID="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ValidationControllerApi;

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

public class ValidationControllerApiExample {

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

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

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

        ValidationControllerApi apiInstance = new ValidationControllerApi();
        byte[] inputFile = inputFile_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        String vESID = vESID_example; // String | 
        try {
            'String' result = apiInstance.phive(inputFile, uSERNAME, vESID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ValidationControllerApi#phive");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ValidationControllerApi;

public class ValidationControllerApiExample {

    public static void main(String[] args) {
        ValidationControllerApi apiInstance = new ValidationControllerApi();
        byte[] inputFile = inputFile_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        String vESID = vESID_example; // String | 
        try {
            'String' result = apiInstance.phive(inputFile, uSERNAME, vESID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ValidationControllerApi#phive");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *inputFile = inputFile_example; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)
String *vESID = vESID_example; //  (optional)

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

// Validates a XML file
[apiInstance phiveWith:inputFile
    uSERNAME:uSERNAME
    vESID:vESID
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.ValidationControllerApi()
var opts = { 
  'inputFile': inputFile_example // {{byte[]}} 
  'uSERNAME': uSERNAME_example // {{String}} 
  'vESID': vESID_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.phive(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ValidationControllerApi();
            var inputFile = inputFile_example;  // byte[] |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 
            var vESID = vESID_example;  // String |  (optional) 

            try
            {
                // Validates a XML file
                'String' result = apiInstance.phive(inputFile, uSERNAME, vESID);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ValidationControllerApi.phive: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiValidationControllerApi();
$inputFile = inputFile_example; // byte[] | 
$uSERNAME = uSERNAME_example; // String | 
$vESID = vESID_example; // String | 

try {
    $result = $api_instance->phive($inputFile, $uSERNAME, $vESID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ValidationControllerApi->phive: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ValidationControllerApi;

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ValidationControllerApi->new();
my $inputFile = inputFile_example; # byte[] | 
my $uSERNAME = uSERNAME_example; # String | 
my $vESID = vESID_example; # String | 

eval { 
    my $result = $api_instance->phive(inputFile => $inputFile, uSERNAME => $uSERNAME, vESID => $vESID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ValidationControllerApi->phive: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ValidationControllerApi()
inputFile = inputFile_example # byte[] |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)
vESID = vESID_example # String |  (optional)

try: 
    # Validates a XML file
    api_response = api_instance.phive(inputFile=inputFile, uSERNAME=uSERNAME, vESID=vESID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ValidationControllerApi->phive: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Form parameters
Name Description
inputFile
byte[] (binary)
Query parameters
Name Description
VESID
String

Responses

Status: 200 - Returns a JSON validation result

Status: 400 - Bad Request


validateFile

Checks a PDF or XML file for syntactical and mathematical correctness. Input file must be a PDF/A file (Factur-X, ZUGFeRD, Order-X) or a XML file (Factur-X, Order-X, ZUGFeRD, XRechnung(CII)), output will be a XML report


/mustang/validate

Usage and SDK Samples

curl -X POST\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
-H "Content-Type: multipart/form-data"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/validate?ignoreNotices="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ValidationControllerApi;

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

public class ValidationControllerApiExample {

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

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

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

        ValidationControllerApi apiInstance = new ValidationControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        Boolean ignoreNotices = true; // Boolean | 
        try {
            'String' result = apiInstance.validateFile(file, uSERNAME, ignoreNotices);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ValidationControllerApi#validateFile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ValidationControllerApi;

public class ValidationControllerApiExample {

    public static void main(String[] args) {
        ValidationControllerApi apiInstance = new ValidationControllerApi();
        byte[] file = file_example; // byte[] | 
        String uSERNAME = uSERNAME_example; // String | 
        Boolean ignoreNotices = true; // Boolean | 
        try {
            'String' result = apiInstance.validateFile(file, uSERNAME, ignoreNotices);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ValidationControllerApi#validateFile");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)
String *uSERNAME = uSERNAME_example; //  (optional)
Boolean *ignoreNotices = true; //  (optional) (default to false)

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

// Checks a PDF or XML file for syntactical and mathematical correctness. Input file must be a PDF/A file (Factur-X, ZUGFeRD, Order-X) or a XML file (Factur-X, Order-X, ZUGFeRD, XRechnung(CII)), output will be a XML report
[apiInstance validateFileWith:file
    uSERNAME:uSERNAME
    ignoreNotices:ignoreNotices
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.ValidationControllerApi()
var opts = { 
  'file': file_example // {{byte[]}} 
  'uSERNAME': uSERNAME_example // {{String}} 
  'ignoreNotices': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.validateFile(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ValidationControllerApi();
            var file = file_example;  // byte[] |  (optional) 
            var uSERNAME = uSERNAME_example;  // String |  (optional) 
            var ignoreNotices = true;  // Boolean |  (optional)  (default to false)

            try
            {
                // Checks a PDF or XML file for syntactical and mathematical correctness. Input file must be a PDF/A file (Factur-X, ZUGFeRD, Order-X) or a XML file (Factur-X, Order-X, ZUGFeRD, XRechnung(CII)), output will be a XML report
                'String' result = apiInstance.validateFile(file, uSERNAME, ignoreNotices);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ValidationControllerApi.validateFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiValidationControllerApi();
$file = file_example; // byte[] | 
$uSERNAME = uSERNAME_example; // String | 
$ignoreNotices = true; // Boolean | 

try {
    $result = $api_instance->validateFile($file, $uSERNAME, $ignoreNotices);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ValidationControllerApi->validateFile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ValidationControllerApi;

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ValidationControllerApi->new();
my $file = file_example; # byte[] | 
my $uSERNAME = uSERNAME_example; # String | 
my $ignoreNotices = true; # Boolean | 

eval { 
    my $result = $api_instance->validateFile(file => $file, uSERNAME => $uSERNAME, ignoreNotices => $ignoreNotices);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ValidationControllerApi->validateFile: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ValidationControllerApi()
file = file_example # byte[] |  (optional)
uSERNAME = uSERNAME_example # String |  (optional)
ignoreNotices = true # Boolean |  (optional) (default to false)

try: 
    # Checks a PDF or XML file for syntactical and mathematical correctness. Input file must be a PDF/A file (Factur-X, ZUGFeRD, Order-X) or a XML file (Factur-X, Order-X, ZUGFeRD, XRechnung(CII)), output will be a XML report
    api_response = api_instance.validate_file(file=file, uSERNAME=uSERNAME, ignoreNotices=ignoreNotices)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ValidationControllerApi->validateFile: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String
Form parameters
Name Description
file
byte[] (binary)
Query parameters
Name Description
ignoreNotices
Boolean

Responses

Status: 200 - Checks a PDF or XML file for syntactical and mathematical correctness. Input file must be a PDF/A file (Factur-X, Order-X, ZUGFeRD) or a XML file (Factur-X, Order-X, ZUGFeRD, XRechnung(CII)), output will be a XML report

Status: 400 - Bad Request


VersionController

notice

Returns legal related information


/mustang/notice

Usage and SDK Samples

curl -X GET\
-H "apikey: [[apiKey]]"\
 -H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: */*"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/notice"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VersionControllerApi;

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

public class VersionControllerApiExample {

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

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

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

        VersionControllerApi apiInstance = new VersionControllerApi();
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.notice(uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VersionControllerApi#notice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VersionControllerApi;

public class VersionControllerApiExample {

    public static void main(String[] args) {
        VersionControllerApi apiInstance = new VersionControllerApi();
        String uSERNAME = uSERNAME_example; // String | 
        try {
            'String' result = apiInstance.notice(uSERNAME);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VersionControllerApi#notice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
// Configure HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *uSERNAME = uSERNAME_example; //  (optional)

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

// Returns legal related information
[apiInstance noticeWith:uSERNAME
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;

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

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

var api = new Mustangserver.VersionControllerApi()
var opts = { 
  'uSERNAME': uSERNAME_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.notice(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: default
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new VersionControllerApi();
            var uSERNAME = uSERNAME_example;  // String |  (optional) 

            try
            {
                // Returns legal related information
                'String' result = apiInstance.notice(uSERNAME);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VersionControllerApi.notice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');// Configure HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiVersionControllerApi();
$uSERNAME = uSERNAME_example; // String | 

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

# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";# Configure HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::VersionControllerApi->new();
my $uSERNAME = uSERNAME_example; # String | 

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

# Configure API key authorization: api_key
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'# Configure HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.VersionControllerApi()
uSERNAME = uSERNAME_example # String |  (optional)

try: 
    # Returns legal related information
    api_response = api_instance.notice(uSERNAME=uSERNAME)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VersionControllerApi->notice: %s\n" % e)

Parameters

Header parameters
Name Description
USERNAME
String

Responses

Status: 200 - Returns legal related information

Status: 400 - Bad Request