acceptOrder
Accept Order(s)
This call shall be used for accepting order
/OrderManagement/Accept
Usage and SDK Samples
curl -X POST "https://api.connectvl.com/api/v1/OrderManagement/Accept"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrderManagementApi;
import java.io.File;
import java.util.*;
public class OrderManagementApiExample {
public static void main(String[] args) {
OrderManagementApi apiInstance = new OrderManagementApi();
String clientId = clientId_example; // String | API Client ID used for Client (Vendor Master) Identification
String contentType = contentType_example; // String | Content-Type defines the type of the content of the login requrest
String apiKey = apiKey_example; // String | API key used for accessing API calls.
AcceptDecline body = ; // AcceptDecline | Accept Order(s) Request
try {
SuccessMessageV2Response result = apiInstance.acceptOrder(clientId, contentType, apiKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderManagementApi#acceptOrder");
e.printStackTrace();
}
}
}
import io.swagger.client.api.OrderManagementApi;
public class OrderManagementApiExample {
public static void main(String[] args) {
OrderManagementApi apiInstance = new OrderManagementApi();
String clientId = clientId_example; // String | API Client ID used for Client (Vendor Master) Identification
String contentType = contentType_example; // String | Content-Type defines the type of the content of the login requrest
String apiKey = apiKey_example; // String | API key used for accessing API calls.
AcceptDecline body = ; // AcceptDecline | Accept Order(s) Request
try {
SuccessMessageV2Response result = apiInstance.acceptOrder(clientId, contentType, apiKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderManagementApi#acceptOrder");
e.printStackTrace();
}
}
}
String *clientId = clientId_example; // API Client ID used for Client (Vendor Master) Identification
String *contentType = contentType_example; // Content-Type defines the type of the content of the login requrest
String *apiKey = apiKey_example; // API key used for accessing API calls.
AcceptDecline *body = ; // Accept Order(s) Request
OrderManagementApi *apiInstance = [[OrderManagementApi alloc] init];
// Accept Order(s)
[apiInstance acceptOrderWith:clientId
contentType:contentType
apiKey:apiKey
body:body
completionHandler: ^(SuccessMessageV2Response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ConnectVendorIntegrationApiDocument = require('connect___vendor_integration_api_document');
var api = new ConnectVendorIntegrationApiDocument.OrderManagementApi()
var clientId = clientId_example; // {String} API Client ID used for Client (Vendor Master) Identification
var contentType = contentType_example; // {String} Content-Type defines the type of the content of the login requrest
var apiKey = apiKey_example; // {String} API key used for accessing API calls.
var body = ; // {AcceptDecline} Accept Order(s) Request
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.acceptOrder(clientId, contentType, apiKey, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class acceptOrderExample
{
public void main()
{
var apiInstance = new OrderManagementApi();
var clientId = clientId_example; // String | API Client ID used for Client (Vendor Master) Identification
var contentType = contentType_example; // String | Content-Type defines the type of the content of the login requrest
var apiKey = apiKey_example; // String | API key used for accessing API calls.
var body = new AcceptDecline(); // AcceptDecline | Accept Order(s) Request
try
{
// Accept Order(s)
SuccessMessageV2Response result = apiInstance.acceptOrder(clientId, contentType, apiKey, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OrderManagementApi.acceptOrder: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\OrderManagementApi();
$clientId = clientId_example; // String | API Client ID used for Client (Vendor Master) Identification
$contentType = contentType_example; // String | Content-Type defines the type of the content of the login requrest
$apiKey = apiKey_example; // String | API key used for accessing API calls.
$body = ; // AcceptDecline | Accept Order(s) Request
try {
$result = $api_instance->acceptOrder($clientId, $contentType, $apiKey, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderManagementApi->acceptOrder: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrderManagementApi;
my $api_instance = WWW::SwaggerClient::OrderManagementApi->new();
my $clientId = clientId_example; # String | API Client ID used for Client (Vendor Master) Identification
my $contentType = contentType_example; # String | Content-Type defines the type of the content of the login requrest
my $apiKey = apiKey_example; # String | API key used for accessing API calls.
my $body = WWW::SwaggerClient::Object::AcceptDecline->new(); # AcceptDecline | Accept Order(s) Request
eval {
my $result = $api_instance->acceptOrder(clientId => $clientId, contentType => $contentType, apiKey => $apiKey, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling OrderManagementApi->acceptOrder: $@\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.OrderManagementApi()
clientId = clientId_example # String | API Client ID used for Client (Vendor Master) Identification
contentType = contentType_example # String | Content-Type defines the type of the content of the login requrest
apiKey = apiKey_example # String | API key used for accessing API calls.
body = # AcceptDecline | Accept Order(s) Request
try:
# Accept Order(s)
api_response = api_instance.accept_order(clientId, contentType, apiKey, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrderManagementApi->acceptOrder: %s\n" % e)
Parameters
Name | Description |
---|---|
client_id* |
String
API Client ID used for Client (Vendor Master) Identification
Required
|
api_key* |
String
API key used for accessing API calls.
Required
|
Name | Description |
---|---|
body * |