createRequest
Create new request
/api/mct/requests
Usage and SDK Samples
curl -X POST "https://localhost/mct/services/rest/mct/api/mct/requests?processType=&contract=&amendment=&eic=&decisiveDate=&validTo=&author="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MctApi;
import java.io.File;
import java.util.*;
public class MctApiExample {
public static void main(String[] args) {
MctApi apiInstance = new MctApi();
String processType = processType_example; // String | Process type
String contract = contract_example; // String | Contract number
String eic = eic_example; // String | EIC for point of delivery
date decisiveDate = 2013-10-20; // date | Decisive date
String author = author_example; // String | Request creator
String amendment = amendment_example; // String | Amendment number
Date validTo = 2013-10-20T19:20:30+01:00; // Date |
APIBusinessPartnerInfo body = ; // APIBusinessPartnerInfo | Information about business partner
try {
'String' result = apiInstance.createRequest(processType, contract, eic, decisiveDate, author, amendment, validTo, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MctApi#createRequest");
e.printStackTrace();
}
}
}
import io.swagger.client.api.MctApi;
public class MctApiExample {
public static void main(String[] args) {
MctApi apiInstance = new MctApi();
String processType = processType_example; // String | Process type
String contract = contract_example; // String | Contract number
String eic = eic_example; // String | EIC for point of delivery
date decisiveDate = 2013-10-20; // date | Decisive date
String author = author_example; // String | Request creator
String amendment = amendment_example; // String | Amendment number
Date validTo = 2013-10-20T19:20:30+01:00; // Date |
APIBusinessPartnerInfo body = ; // APIBusinessPartnerInfo | Information about business partner
try {
'String' result = apiInstance.createRequest(processType, contract, eic, decisiveDate, author, amendment, validTo, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MctApi#createRequest");
e.printStackTrace();
}
}
}
String *processType = processType_example; // Process type
String *contract = contract_example; // Contract number
String *eic = eic_example; // EIC for point of delivery
date *decisiveDate = 2013-10-20; // Decisive date
String *author = author_example; // Request creator
String *amendment = amendment_example; // Amendment number (optional)
Date *validTo = 2013-10-20T19:20:30+01:00; // (optional)
APIBusinessPartnerInfo *body = ; // Information about business partner (optional)
MctApi *apiInstance = [[MctApi alloc] init];
// Create new request
[apiInstance createRequestWith:processType
contract:contract
eic:eic
decisiveDate:decisiveDate
author:author
amendment:amendment
validTo:validTo
body:body
completionHandler: ^('String' output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EmpiricaMctApi = require('empirica_mct_api');
var api = new EmpiricaMctApi.MctApi()
var processType = processType_example; // {String} Process type
var contract = contract_example; // {String} Contract number
var eic = eic_example; // {String} EIC for point of delivery
var decisiveDate = 2013-10-20; // {date} Decisive date
var author = author_example; // {String} Request creator
var opts = {
'amendment': amendment_example, // {String} Amendment number
'validTo': 2013-10-20T19:20:30+01:00, // {Date}
'body': // {APIBusinessPartnerInfo} Information about business partner
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createRequest(processType, contract, eic, decisiveDate, author, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createRequestExample
{
public void main()
{
var apiInstance = new MctApi();
var processType = processType_example; // String | Process type
var contract = contract_example; // String | Contract number
var eic = eic_example; // String | EIC for point of delivery
var decisiveDate = 2013-10-20; // date | Decisive date
var author = author_example; // String | Request creator
var amendment = amendment_example; // String | Amendment number (optional)
var validTo = 2013-10-20T19:20:30+01:00; // Date | (optional)
var body = new APIBusinessPartnerInfo(); // APIBusinessPartnerInfo | Information about business partner (optional)
try
{
// Create new request
'String' result = apiInstance.createRequest(processType, contract, eic, decisiveDate, author, amendment, validTo, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MctApi.createRequest: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\MctApi();
$processType = processType_example; // String | Process type
$contract = contract_example; // String | Contract number
$eic = eic_example; // String | EIC for point of delivery
$decisiveDate = 2013-10-20; // date | Decisive date
$author = author_example; // String | Request creator
$amendment = amendment_example; // String | Amendment number
$validTo = 2013-10-20T19:20:30+01:00; // Date |
$body = ; // APIBusinessPartnerInfo | Information about business partner
try {
$result = $api_instance->createRequest($processType, $contract, $eic, $decisiveDate, $author, $amendment, $validTo, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MctApi->createRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MctApi;
my $api_instance = WWW::SwaggerClient::MctApi->new();
my $processType = processType_example; # String | Process type
my $contract = contract_example; # String | Contract number
my $eic = eic_example; # String | EIC for point of delivery
my $decisiveDate = 2013-10-20; # date | Decisive date
my $author = author_example; # String | Request creator
my $amendment = amendment_example; # String | Amendment number
my $validTo = 2013-10-20T19:20:30+01:00; # Date |
my $body = WWW::SwaggerClient::Object::APIBusinessPartnerInfo->new(); # APIBusinessPartnerInfo | Information about business partner
eval {
my $result = $api_instance->createRequest(processType => $processType, contract => $contract, eic => $eic, decisiveDate => $decisiveDate, author => $author, amendment => $amendment, validTo => $validTo, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling MctApi->createRequest: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.MctApi()
processType = processType_example # String | Process type
contract = contract_example # String | Contract number
eic = eic_example # String | EIC for point of delivery
decisiveDate = 2013-10-20 # date | Decisive date
author = author_example # String | Request creator
amendment = amendment_example # String | Amendment number (optional)
validTo = 2013-10-20T19:20:30+01:00 # Date | (optional)
body = # APIBusinessPartnerInfo | Information about business partner (optional)
try:
# Create new request
api_response = api_instance.create_request(processType, contract, eic, decisiveDate, author, amendment=amendment, validTo=validTo, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MctApi->createRequest: %s\n" % e)
Parameters
Body parameters
Name | Description |
---|---|
body |
Query parameters
Name | Description |
---|---|
processType* |
String
Process type
Required
|
contract* |
String
Contract number
Required
|
amendment |
String
Amendment number
|
eic* |
String
EIC for point of delivery
Required
|
decisiveDate* |
date
(date)
Decisive date
Required
|
validTo |
Date
(date-time)
|
author* |