Order Management Webservices

OrdersOperations

approvePotentiallyFraudulentOrder

Approves an order that could potentially be fraudulent

Approves an order that could potentially be fraudulent.


/orders/{code}/fraud-reports/approve

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/fraud-reports/approve"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.approvePotentiallyFraudulentOrder(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#approvePotentiallyFraudulentOrder");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.approvePotentiallyFraudulentOrder(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#approvePotentiallyFraudulentOrder");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code

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

// Approves an order that could potentially be fraudulent
[apiInstance approvePotentiallyFraudulentOrderWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.approvePotentiallyFraudulentOrder(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code

            try
            {
                // Approves an order that could potentially be fraudulent
                apiInstance.approvePotentiallyFraudulentOrder(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.approvePotentiallyFraudulentOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code

try {
    $api_instance->approvePotentiallyFraudulentOrder($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->approvePotentiallyFraudulentOrder: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code

eval { 
    $api_instance->approvePotentiallyFraudulentOrder(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->approvePotentiallyFraudulentOrder: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code

try: 
    # Approves an order that could potentially be fraudulent
    api_instance.approve_potentially_fraudulent_order(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->approvePotentiallyFraudulentOrder: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


createCancelRequest

Creates an order cancellation in the system

Creates an order cancellation request.


/orders/{code}/cancel

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/xml,application/json"\
-H "Content-Type: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/cancel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        OrderCancelRequest body = ; // OrderCancelRequest | 
        String code = code_example; // String | Order code
        try {
            OrderCancelRecordEntry result = apiInstance.createCancelRequest(body, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#createCancelRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        OrderCancelRequest body = ; // OrderCancelRequest | 
        String code = code_example; // String | Order code
        try {
            OrderCancelRecordEntry result = apiInstance.createCancelRequest(body, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#createCancelRequest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
OrderCancelRequest *body = ; // 
String *code = code_example; // Order code

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

// Creates an order cancellation in the system
[apiInstance createCancelRequestWith:body
    code:code
              completionHandler: ^(OrderCancelRecordEntry output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var body = ; // {{OrderCancelRequest}} 
var code = code_example; // {{String}} Order code

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var body = new OrderCancelRequest(); // OrderCancelRequest | 
            var code = code_example;  // String | Order code

            try
            {
                // Creates an order cancellation in the system
                OrderCancelRecordEntry result = apiInstance.createCancelRequest(body, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.createCancelRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$body = ; // OrderCancelRequest | 
$code = code_example; // String | Order code

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $body = WWW::SwaggerClient::Object::OrderCancelRequest->new(); # OrderCancelRequest | 
my $code = code_example; # String | Order code

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
body =  # OrderCancelRequest | 
code = code_example # String | Order code

try: 
    # Creates an order cancellation in the system
    api_response = api_instance.create_cancel_request(body, code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->createCancelRequest: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required
Body parameters
Name Description
body *

Responses

Status: 201 - Created

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getCancelReason

Finds a list of all cancellation reasons

Returns a list of all cancellation reasons.


/orders/cancel-reasons

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/cancel-reasons"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

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

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        try {
            CancelReasonList result = apiInstance.getCancelReason();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getCancelReason");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Finds a list of all cancellation reasons
[apiInstance getCancelReasonWithCompletionHandler: 
              ^(CancelReasonList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();

            try
            {
                // Finds a list of all cancellation reasons
                CancelReasonList result = apiInstance.getCancelReason();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getCancelReason: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Finds a list of all cancellation reasons
    api_response = api_instance.get_cancel_reason()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getCancelReason: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getOrderEntriesForOrderCode

Finds a paginated list of order entries for the order with the given code

Returns a paginated list of order entries for the order with the given code.


/orders/{code}/entries

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/entries?currentPage=&fields=&pageSize=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to display per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            OrderEntrySearchPage result = apiInstance.getOrderEntriesForOrderCode(code, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderEntriesForOrderCode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to display per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            OrderEntrySearchPage result = apiInstance.getOrderEntriesForOrderCode(code, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderEntriesForOrderCode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code
Integer *currentPage = 56; // Current page number (optional) (default to 0)
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)
Integer *pageSize = 56; // Number of items to display per page (optional) (default to 10)
String *sort = sort_example; // Method in which to sort results (optional) (default to asc)

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

// Finds a paginated list of order entries for the order with the given code
[apiInstance getOrderEntriesForOrderCodeWith:code
    currentPage:currentPage
    fields:fields
    pageSize:pageSize
    sort:sort
              completionHandler: ^(OrderEntrySearchPage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code
var opts = { 
  'currentPage': 56, // {{Integer}} Current page number
  'fields': fields_example, // {{String}} Fields mapping level
  'pageSize': 56, // {{Integer}} Number of items to display per page
  'sort': sort_example // {{String}} Method in which to sort results
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrderEntriesForOrderCode(code, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code
            var currentPage = 56;  // Integer | Current page number (optional)  (default to 0)
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)
            var pageSize = 56;  // Integer | Number of items to display per page (optional)  (default to 10)
            var sort = sort_example;  // String | Method in which to sort results (optional)  (default to asc)

            try
            {
                // Finds a paginated list of order entries for the order with the given code
                OrderEntrySearchPage result = apiInstance.getOrderEntriesForOrderCode(code, currentPage, fields, pageSize, sort);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getOrderEntriesForOrderCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code
$currentPage = 56; // Integer | Current page number
$fields = fields_example; // String | Fields mapping level
$pageSize = 56; // Integer | Number of items to display per page
$sort = sort_example; // String | Method in which to sort results

try {
    $result = $api_instance->getOrderEntriesForOrderCode($code, $currentPage, $fields, $pageSize, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->getOrderEntriesForOrderCode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code
my $currentPage = 56; # Integer | Current page number
my $fields = fields_example; # String | Fields mapping level
my $pageSize = 56; # Integer | Number of items to display per page
my $sort = sort_example; # String | Method in which to sort results

eval { 
    my $result = $api_instance->getOrderEntriesForOrderCode(code => $code, currentPage => $currentPage, fields => $fields, pageSize => $pageSize, sort => $sort);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->getOrderEntriesForOrderCode: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code
currentPage = 56 # Integer | Current page number (optional) (default to 0)
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)
pageSize = 56 # Integer | Number of items to display per page (optional) (default to 10)
sort = sort_example # String | Method in which to sort results (optional) (default to asc)

try: 
    # Finds a paginated list of order entries for the order with the given code
    api_response = api_instance.get_order_entries_for_order_code(code, currentPage=currentPage, fields=fields, pageSize=pageSize, sort=sort)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getOrderEntriesForOrderCode: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required
Query parameters
Name Description
currentPage
Integer (int32)
Current page number
fields
String
Fields mapping level
pageSize
Integer (int32)
Number of items to display per page
sort
String
Method in which to sort results

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getOrderEntryForOrderCodeAndEntryNumber

Finds the order entry corresponding to the given entry number for the order with the given code

Returns the order entry corresponding to the given entry number for the order with the given code.


/orders/{code}/entries/{entryNumber}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/entries/{entryNumber}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        String entryNumber = entryNumber_example; // String | Order entry number
        String fields = fields_example; // String | Fields mapping level
        try {
            OrderEntry result = apiInstance.getOrderEntryForOrderCodeAndEntryNumber(code, entryNumber, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderEntryForOrderCodeAndEntryNumber");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        String entryNumber = entryNumber_example; // String | Order entry number
        String fields = fields_example; // String | Fields mapping level
        try {
            OrderEntry result = apiInstance.getOrderEntryForOrderCodeAndEntryNumber(code, entryNumber, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderEntryForOrderCodeAndEntryNumber");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code
String *entryNumber = entryNumber_example; // Order entry number
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Finds the order entry corresponding to the given entry number for the order with the given code
[apiInstance getOrderEntryForOrderCodeAndEntryNumberWith:code
    entryNumber:entryNumber
    fields:fields
              completionHandler: ^(OrderEntry output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code
var entryNumber = entryNumber_example; // {{String}} Order entry number
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrderEntryForOrderCodeAndEntryNumber(code, entryNumber, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code
            var entryNumber = entryNumber_example;  // String | Order entry number
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Finds the order entry corresponding to the given entry number for the order with the given code
                OrderEntry result = apiInstance.getOrderEntryForOrderCodeAndEntryNumber(code, entryNumber, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getOrderEntryForOrderCodeAndEntryNumber: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code
$entryNumber = entryNumber_example; // String | Order entry number
$fields = fields_example; // String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code
my $entryNumber = entryNumber_example; # String | Order entry number
my $fields = fields_example; # String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code
entryNumber = entryNumber_example # String | Order entry number
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Finds the order entry corresponding to the given entry number for the order with the given code
    api_response = api_instance.get_order_entry_for_order_code_and_entry_number(code, entryNumber, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getOrderEntryForOrderCodeAndEntryNumber: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required
entryNumber*
String
Order entry number
Required
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getOrderForCode

Finds a single order by a given order code

Returns a single order in the system.


/orders/{code}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/{code}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | The order code
        String fields = fields_example; // String | Fields mapping level
        try {
            Order result = apiInstance.getOrderForCode(code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderForCode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | The order code
        String fields = fields_example; // String | Fields mapping level
        try {
            Order result = apiInstance.getOrderForCode(code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderForCode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // The order code
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Finds a single order by a given order code
[apiInstance getOrderForCodeWith:code
    fields:fields
              completionHandler: ^(Order output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} The order code
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrderForCode(code, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | The order code
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Finds a single order by a given order code
                Order result = apiInstance.getOrderForCode(code, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getOrderForCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | The order code
$fields = fields_example; // String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | The order code
my $fields = fields_example; # String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | The order code
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Finds a single order by a given order code
    api_response = api_instance.get_order_for_code(code, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getOrderForCode: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
The order code
Required
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getOrderFraudReports

Finds a list of all fraud reports for an order with the given code

Returns a list of all fraud reports for an order with the given code.


/orders/{code}/fraud-reports

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/fraud-reports?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        String fields = fields_example; // String | Fields mapping level
        try {
            FraudReportList result = apiInstance.getOrderFraudReports(code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderFraudReports");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        String fields = fields_example; // String | Fields mapping level
        try {
            FraudReportList result = apiInstance.getOrderFraudReports(code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrderFraudReports");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Finds a list of all fraud reports for an order with the given code
[apiInstance getOrderFraudReportsWith:code
    fields:fields
              completionHandler: ^(FraudReportList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrderFraudReports(code, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Finds a list of all fraud reports for an order with the given code
                FraudReportList result = apiInstance.getOrderFraudReports(code, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getOrderFraudReports: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code
$fields = fields_example; // String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code
my $fields = fields_example; # String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Finds a list of all fraud reports for an order with the given code
    api_response = api_instance.get_order_fraud_reports(code, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getOrderFraudReports: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getOrders

Finds all orders in the system

Returns all orders in the system.


/orders

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders?currentPage=&fields=&pageSize=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            OrderSearchPage result = apiInstance.getOrders(currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrders");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            OrderSearchPage result = apiInstance.getOrders(currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrders");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *currentPage = 56; // Current page number (optional) (default to 0)
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)
Integer *pageSize = 56; // Number of items to be displayed per page (optional) (default to 10)
String *sort = sort_example; // Method in which to sort results (optional) (default to asc)

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

// Finds all orders in the system
[apiInstance getOrdersWith:currentPage
    fields:fields
    pageSize:pageSize
    sort:sort
              completionHandler: ^(OrderSearchPage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var opts = { 
  'currentPage': 56, // {{Integer}} Current page number
  'fields': fields_example, // {{String}} Fields mapping level
  'pageSize': 56, // {{Integer}} Number of items to be displayed per page
  'sort': sort_example // {{String}} Method in which to sort results
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrders(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var currentPage = 56;  // Integer | Current page number (optional)  (default to 0)
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)
            var pageSize = 56;  // Integer | Number of items to be displayed per page (optional)  (default to 10)
            var sort = sort_example;  // String | Method in which to sort results (optional)  (default to asc)

            try
            {
                // Finds all orders in the system
                OrderSearchPage result = apiInstance.getOrders(currentPage, fields, pageSize, sort);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getOrders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$currentPage = 56; // Integer | Current page number
$fields = fields_example; // String | Fields mapping level
$pageSize = 56; // Integer | Number of items to be displayed per page
$sort = sort_example; // String | Method in which to sort results

try {
    $result = $api_instance->getOrders($currentPage, $fields, $pageSize, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->getOrders: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $currentPage = 56; # Integer | Current page number
my $fields = fields_example; # String | Fields mapping level
my $pageSize = 56; # Integer | Number of items to be displayed per page
my $sort = sort_example; # String | Method in which to sort results

eval { 
    my $result = $api_instance->getOrders(currentPage => $currentPage, fields => $fields, pageSize => $pageSize, sort => $sort);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->getOrders: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
currentPage = 56 # Integer | Current page number (optional) (default to 0)
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)
pageSize = 56 # Integer | Number of items to be displayed per page (optional) (default to 10)
sort = sort_example # String | Method in which to sort results (optional) (default to asc)

try: 
    # Finds all orders in the system
    api_response = api_instance.get_orders(currentPage=currentPage, fields=fields, pageSize=pageSize, sort=sort)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getOrders: %s\n" % e)

Parameters

Query parameters
Name Description
currentPage
Integer (int32)
Current page number
fields
String
Fields mapping level
pageSize
Integer (int32)
Number of items to be displayed per page
sort
String
Method in which to sort results

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getOrdersByStatus

Finds a paginated list of orders for a given set of order statuses

Returns a paginated list of orders for a given set of order statuses.


/orders/status/{orderStatuses}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/status/{orderStatuses}?currentPage=&fields=&pageSize=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String orderStatuses = orderStatuses_example; // String | List of desired order statuses
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            OrderSearchPage result = apiInstance.getOrdersByStatus(orderStatuses, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrdersByStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String orderStatuses = orderStatuses_example; // String | List of desired order statuses
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            OrderSearchPage result = apiInstance.getOrdersByStatus(orderStatuses, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrdersByStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *orderStatuses = orderStatuses_example; // List of desired order statuses
Integer *currentPage = 56; // Current page number (optional) (default to 0)
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)
Integer *pageSize = 56; // Number of items to be displayed per page (optional) (default to 10)
String *sort = sort_example; // Method in which to sort results (optional) (default to asc)

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

// Finds a paginated list of orders for a given set of order statuses
[apiInstance getOrdersByStatusWith:orderStatuses
    currentPage:currentPage
    fields:fields
    pageSize:pageSize
    sort:sort
              completionHandler: ^(OrderSearchPage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var orderStatuses = orderStatuses_example; // {{String}} List of desired order statuses
var opts = { 
  'currentPage': 56, // {{Integer}} Current page number
  'fields': fields_example, // {{String}} Fields mapping level
  'pageSize': 56, // {{Integer}} Number of items to be displayed per page
  'sort': sort_example // {{String}} Method in which to sort results
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrdersByStatus(orderStatuses, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var orderStatuses = orderStatuses_example;  // String | List of desired order statuses
            var currentPage = 56;  // Integer | Current page number (optional)  (default to 0)
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)
            var pageSize = 56;  // Integer | Number of items to be displayed per page (optional)  (default to 10)
            var sort = sort_example;  // String | Method in which to sort results (optional)  (default to asc)

            try
            {
                // Finds a paginated list of orders for a given set of order statuses
                OrderSearchPage result = apiInstance.getOrdersByStatus(orderStatuses, currentPage, fields, pageSize, sort);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getOrdersByStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$orderStatuses = orderStatuses_example; // String | List of desired order statuses
$currentPage = 56; // Integer | Current page number
$fields = fields_example; // String | Fields mapping level
$pageSize = 56; // Integer | Number of items to be displayed per page
$sort = sort_example; // String | Method in which to sort results

try {
    $result = $api_instance->getOrdersByStatus($orderStatuses, $currentPage, $fields, $pageSize, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->getOrdersByStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $orderStatuses = orderStatuses_example; # String | List of desired order statuses
my $currentPage = 56; # Integer | Current page number
my $fields = fields_example; # String | Fields mapping level
my $pageSize = 56; # Integer | Number of items to be displayed per page
my $sort = sort_example; # String | Method in which to sort results

eval { 
    my $result = $api_instance->getOrdersByStatus(orderStatuses => $orderStatuses, currentPage => $currentPage, fields => $fields, pageSize => $pageSize, sort => $sort);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->getOrdersByStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
orderStatuses = orderStatuses_example # String | List of desired order statuses
currentPage = 56 # Integer | Current page number (optional) (default to 0)
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)
pageSize = 56 # Integer | Number of items to be displayed per page (optional) (default to 10)
sort = sort_example # String | Method in which to sort results (optional) (default to asc)

try: 
    # Finds a paginated list of orders for a given set of order statuses
    api_response = api_instance.get_orders_by_status(orderStatuses, currentPage=currentPage, fields=fields, pageSize=pageSize, sort=sort)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getOrdersByStatus: %s\n" % e)

Parameters

Path parameters
Name Description
orderStatuses*
String
List of desired order statuses
Required
Query parameters
Name Description
currentPage
Integer (int32)
Current page number
fields
String
Fields mapping level
pageSize
Integer (int32)
Number of items to be displayed per page
sort
String
Method in which to sort results

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getOrdersByStatuses

Finds a list of all possible order statuses in the system

Returns a list of all possible order statuses in the system.


/orders/statuses

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders/statuses"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

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

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        try {
            OrderStatusList result = apiInstance.getOrdersByStatuses();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#getOrdersByStatuses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Finds a list of all possible order statuses in the system
[apiInstance getOrdersByStatusesWithCompletionHandler: 
              ^(OrderStatusList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();

            try
            {
                // Finds a list of all possible order statuses in the system
                OrderStatusList result = apiInstance.getOrdersByStatuses();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.getOrdersByStatuses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Finds a list of all possible order statuses in the system
    api_response = api_instance.get_orders_by_statuses()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->getOrdersByStatuses: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReleaseDeliveryCostCommit

Moves an order out of the waiting step after delivery cost tax commit has failed, indicating tax was committed.

Moves an order out of the waiting step after delivery cost tax commit has failed, indicating tax was committed.


/orders/{code}/manual/delivery-cost-commit

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/manual/delivery-cost-commit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.manuallyReleaseDeliveryCostCommit(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseDeliveryCostCommit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.manuallyReleaseDeliveryCostCommit(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseDeliveryCostCommit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code

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

// Moves an order out of the waiting step after delivery cost tax commit has failed, indicating tax was committed.
[apiInstance manuallyReleaseDeliveryCostCommitWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReleaseDeliveryCostCommit(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code

            try
            {
                // Moves an order out of the waiting step after delivery cost tax commit has failed, indicating tax was committed.
                apiInstance.manuallyReleaseDeliveryCostCommit(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.manuallyReleaseDeliveryCostCommit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code

try {
    $api_instance->manuallyReleaseDeliveryCostCommit($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->manuallyReleaseDeliveryCostCommit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code

eval { 
    $api_instance->manuallyReleaseDeliveryCostCommit(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->manuallyReleaseDeliveryCostCommit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code

try: 
    # Moves an order out of the waiting step after delivery cost tax commit has failed, indicating tax was committed.
    api_instance.manually_release_delivery_cost_commit(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->manuallyReleaseDeliveryCostCommit: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReleasePaymentReauth

Moves an order out of the waiting step after payment reauthorization has failed, indicating payment was reauthorized.

Moves an order out of the waiting step after payment reauthorization has failed, indicating payment was reauthorized.


/orders/{code}/manual/reauth-payment

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/manual/reauth-payment"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.manuallyReleasePaymentReauth(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleasePaymentReauth");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.manuallyReleasePaymentReauth(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleasePaymentReauth");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code

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

// Moves an order out of the waiting step after payment reauthorization has failed, indicating payment was reauthorized.
[apiInstance manuallyReleasePaymentReauthWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReleasePaymentReauth(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code

            try
            {
                // Moves an order out of the waiting step after payment reauthorization has failed, indicating payment was reauthorized.
                apiInstance.manuallyReleasePaymentReauth(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.manuallyReleasePaymentReauth: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code

try {
    $api_instance->manuallyReleasePaymentReauth($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->manuallyReleasePaymentReauth: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code

eval { 
    $api_instance->manuallyReleasePaymentReauth(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->manuallyReleasePaymentReauth: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code

try: 
    # Moves an order out of the waiting step after payment reauthorization has failed, indicating payment was reauthorized.
    api_instance.manually_release_payment_reauth(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->manuallyReleasePaymentReauth: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReleasePaymentVoid

Moves an order out of the waiting step after payment authorization cancellation has failed, indicating payment was voided.

Moves an order out of the waiting step after payment authorization cancellation has failed, indicating payment was voided.


/orders/{code}/manual/void-payment

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/manual/void-payment"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.manuallyReleasePaymentVoid(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleasePaymentVoid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.manuallyReleasePaymentVoid(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleasePaymentVoid");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code

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

// Moves an order out of the waiting step after payment authorization cancellation has failed, indicating payment was voided.
[apiInstance manuallyReleasePaymentVoidWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReleasePaymentVoid(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code

            try
            {
                // Moves an order out of the waiting step after payment authorization cancellation has failed, indicating payment was voided.
                apiInstance.manuallyReleasePaymentVoid(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.manuallyReleasePaymentVoid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code

try {
    $api_instance->manuallyReleasePaymentVoid($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->manuallyReleasePaymentVoid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code

eval { 
    $api_instance->manuallyReleasePaymentVoid(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->manuallyReleasePaymentVoid: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code

try: 
    # Moves an order out of the waiting step after payment authorization cancellation has failed, indicating payment was voided.
    api_instance.manually_release_payment_void(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->manuallyReleasePaymentVoid: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReleaseTaxCommit

Moves an order out of the waiting step after tax commit has failed.

Moves an order out of the waiting step after tax commit has failed.


/orders/{code}/manual/commit-tax

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/manual/commit-tax"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | code
        try {
            apiInstance.manuallyReleaseTaxCommit(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseTaxCommit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | code
        try {
            apiInstance.manuallyReleaseTaxCommit(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseTaxCommit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // code

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

// Moves an order out of the waiting step after tax commit has failed.
[apiInstance manuallyReleaseTaxCommitWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReleaseTaxCommit(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | code

            try
            {
                // Moves an order out of the waiting step after tax commit has failed.
                apiInstance.manuallyReleaseTaxCommit(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.manuallyReleaseTaxCommit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | code

try {
    $api_instance->manuallyReleaseTaxCommit($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->manuallyReleaseTaxCommit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | code

eval { 
    $api_instance->manuallyReleaseTaxCommit(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->manuallyReleaseTaxCommit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | code

try: 
    # Moves an order out of the waiting step after tax commit has failed.
    api_instance.manually_release_tax_commit(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->manuallyReleaseTaxCommit: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReleaseTaxRequote

Moves an order out of the waiting step after tax requote has failed.

Moves an order out of the waiting step after tax requote has failed.


/orders/{code}/manual/requote-tax

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/manual/requote-tax"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | code
        try {
            apiInstance.manuallyReleaseTaxRequote(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseTaxRequote");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | code
        try {
            apiInstance.manuallyReleaseTaxRequote(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseTaxRequote");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // code

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

// Moves an order out of the waiting step after tax requote has failed.
[apiInstance manuallyReleaseTaxRequoteWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReleaseTaxRequote(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | code

            try
            {
                // Moves an order out of the waiting step after tax requote has failed.
                apiInstance.manuallyReleaseTaxRequote(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.manuallyReleaseTaxRequote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | code

try {
    $api_instance->manuallyReleaseTaxRequote($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->manuallyReleaseTaxRequote: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | code

eval { 
    $api_instance->manuallyReleaseTaxRequote(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->manuallyReleaseTaxRequote: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | code

try: 
    # Moves an order out of the waiting step after tax requote has failed.
    api_instance.manually_release_tax_requote(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->manuallyReleaseTaxRequote: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReleaseTaxVoid

Moves an order out of the waiting step after tax post void has failed.

Moves an order out of the waiting step after tax post void has failed.


/orders/{code}/manual/void-tax

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/manual/void-tax"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | code
        try {
            apiInstance.manuallyReleaseTaxVoid(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseTaxVoid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | code
        try {
            apiInstance.manuallyReleaseTaxVoid(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#manuallyReleaseTaxVoid");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // code

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

// Moves an order out of the waiting step after tax post void has failed.
[apiInstance manuallyReleaseTaxVoidWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReleaseTaxVoid(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | code

            try
            {
                // Moves an order out of the waiting step after tax post void has failed.
                apiInstance.manuallyReleaseTaxVoid(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.manuallyReleaseTaxVoid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | code

try {
    $api_instance->manuallyReleaseTaxVoid($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->manuallyReleaseTaxVoid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | code

eval { 
    $api_instance->manuallyReleaseTaxVoid(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->manuallyReleaseTaxVoid: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | code

try: 
    # Moves an order out of the waiting step after tax post void has failed.
    api_instance.manually_release_tax_void(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->manuallyReleaseTaxVoid: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


rejectPotentiallyFraudulentOrder

Rejects an order that could be potentially fraudulent

Rejects an order that could potentially be fraudulent.


/orders/{code}/fraud-reports/reject

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/orders/{code}/fraud-reports/reject"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.rejectPotentiallyFraudulentOrder(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#rejectPotentiallyFraudulentOrder");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        String code = code_example; // String | Order code
        try {
            apiInstance.rejectPotentiallyFraudulentOrder(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#rejectPotentiallyFraudulentOrder");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Order code

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

// Rejects an order that could be potentially fraudulent
[apiInstance rejectPotentiallyFraudulentOrderWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var code = code_example; // {{String}} Order code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.rejectPotentiallyFraudulentOrder(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var code = code_example;  // String | Order code

            try
            {
                // Rejects an order that could be potentially fraudulent
                apiInstance.rejectPotentiallyFraudulentOrder(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.rejectPotentiallyFraudulentOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$code = code_example; // String | Order code

try {
    $api_instance->rejectPotentiallyFraudulentOrder($code);
} catch (Exception $e) {
    echo 'Exception when calling OrdersOperationsApi->rejectPotentiallyFraudulentOrder: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $code = code_example; # String | Order code

eval { 
    $api_instance->rejectPotentiallyFraudulentOrder(code => $code);
};
if ($@) {
    warn "Exception when calling OrdersOperationsApi->rejectPotentiallyFraudulentOrder: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
code = code_example # String | Order code

try: 
    # Rejects an order that could be potentially fraudulent
    api_instance.reject_potentially_fraudulent_order(code)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->rejectPotentiallyFraudulentOrder: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Order code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


submitOrder

Submits an order to the system

Posts an order to the system.


/orders

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/xml,application/json"\
-H "Content-Type: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/orders?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersOperationsApi;

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

public class OrdersOperationsApiExample {

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

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

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

        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        OrderRequest body = ; // OrderRequest | 
        String fields = fields_example; // String | Fields mapping level
        try {
            Order result = apiInstance.submitOrder(body, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#submitOrder");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersOperationsApi;

public class OrdersOperationsApiExample {

    public static void main(String[] args) {
        OrdersOperationsApi apiInstance = new OrdersOperationsApi();
        OrderRequest body = ; // OrderRequest | 
        String fields = fields_example; // String | Fields mapping level
        try {
            Order result = apiInstance.submitOrder(body, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersOperationsApi#submitOrder");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
OrderRequest *body = ; // 
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Submits an order to the system
[apiInstance submitOrderWith:body
    fields:fields
              completionHandler: ^(Order output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.OrdersOperationsApi()
var body = ; // {{OrderRequest}} 
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.submitOrder(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrdersOperationsApi();
            var body = new OrderRequest(); // OrderRequest | 
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Submits an order to the system
                Order result = apiInstance.submitOrder(body, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersOperationsApi.submitOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiOrdersOperationsApi();
$body = ; // OrderRequest | 
$fields = fields_example; // String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::OrdersOperationsApi->new();
my $body = WWW::SwaggerClient::Object::OrderRequest->new(); # OrderRequest | 
my $fields = fields_example; # String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.OrdersOperationsApi()
body =  # OrderRequest | 
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Submits an order to the system
    api_response = api_instance.submit_order(body, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersOperationsApi->submitOrder: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 201 - Created

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


ReturnsOperations

approveReturnRequest

Approves a return request corresponding to the given code

Approves a return request corresponding to the given code


/returns/{code}/approve

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/returns/{code}/approve"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        try {
            apiInstance.approveReturnRequest(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#approveReturnRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        try {
            apiInstance.approveReturnRequest(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#approveReturnRequest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Return request code

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

// Approves a return request corresponding to the given code
[apiInstance approveReturnRequestWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var code = code_example; // {{String}} Return request code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.approveReturnRequest(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var code = code_example;  // String | Return request code

            try
            {
                // Approves a return request corresponding to the given code
                apiInstance.approveReturnRequest(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.approveReturnRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$code = code_example; // String | Return request code

try {
    $api_instance->approveReturnRequest($code);
} catch (Exception $e) {
    echo 'Exception when calling ReturnsOperationsApi->approveReturnRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReturnsOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $code = code_example; # String | Return request code

eval { 
    $api_instance->approveReturnRequest(code => $code);
};
if ($@) {
    warn "Exception when calling ReturnsOperationsApi->approveReturnRequest: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
code = code_example # String | Return request code

try: 
    # Approves a return request corresponding to the given code
    api_instance.approve_return_request(code)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->approveReturnRequest: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Return request code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


cancelReturnRequest

Cancels a return request

Cancels a return request


/returns/cancel

Usage and SDK Samples

curl -X POST\
\
\
-H "Content-Type: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/cancel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        CancelReturnRequest body = ; // CancelReturnRequest | 
        try {
            apiInstance.cancelReturnRequest(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#cancelReturnRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        CancelReturnRequest body = ; // CancelReturnRequest | 
        try {
            apiInstance.cancelReturnRequest(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#cancelReturnRequest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CancelReturnRequest *body = ; // 

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

// Cancels a return request
[apiInstance cancelReturnRequestWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var body = ; // {{CancelReturnRequest}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.cancelReturnRequest(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var body = new CancelReturnRequest(); // CancelReturnRequest | 

            try
            {
                // Cancels a return request
                apiInstance.cancelReturnRequest(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.cancelReturnRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$body = ; // CancelReturnRequest | 

try {
    $api_instance->cancelReturnRequest($body);
} catch (Exception $e) {
    echo 'Exception when calling ReturnsOperationsApi->cancelReturnRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReturnsOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $body = WWW::SwaggerClient::Object::CancelReturnRequest->new(); # CancelReturnRequest | 

eval { 
    $api_instance->cancelReturnRequest(body => $body);
};
if ($@) {
    warn "Exception when calling ReturnsOperationsApi->cancelReturnRequest: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
body =  # CancelReturnRequest | 

try: 
    # Cancels a return request
    api_instance.cancel_return_request(body)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->cancelReturnRequest: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


createReturnRequest

Creates a return request

Creates a return request


/returns

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/xml,application/json"\
-H "Content-Type: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        ReturnRequest body = ; // ReturnRequest | 
        String fields = fields_example; // String | Fields mapping level
        try {
            ReturnRequest result = apiInstance.createReturnRequest(body, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#createReturnRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        ReturnRequest body = ; // ReturnRequest | 
        String fields = fields_example; // String | Fields mapping level
        try {
            ReturnRequest result = apiInstance.createReturnRequest(body, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#createReturnRequest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ReturnRequest *body = ; // 
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Creates a return request
[apiInstance createReturnRequestWith:body
    fields:fields
              completionHandler: ^(ReturnRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var body = ; // {{ReturnRequest}} 
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createReturnRequest(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var body = new ReturnRequest(); // ReturnRequest | 
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Creates a return request
                ReturnRequest result = apiInstance.createReturnRequest(body, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.createReturnRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$body = ; // ReturnRequest | 
$fields = fields_example; // String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $body = WWW::SwaggerClient::Object::ReturnRequest->new(); # ReturnRequest | 
my $fields = fields_example; # String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
body =  # ReturnRequest | 
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Creates a return request
    api_response = api_instance.create_return_request(body, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->createReturnRequest: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 201 - Created

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getRefundReasons

Finds a list of all possible refund reasons

Finds a list of all possible return refund reasons


/returns/refund-reasons

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/refund-reasons"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

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

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        try {
            RefundReasonList result = apiInstance.getRefundReasons();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getRefundReasons");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Finds a list of all possible refund reasons
[apiInstance getRefundReasonsWithCompletionHandler: 
              ^(RefundReasonList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();

            try
            {
                // Finds a list of all possible refund reasons
                RefundReasonList result = apiInstance.getRefundReasons();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getRefundReasons: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Finds a list of all possible refund reasons
    api_response = api_instance.get_refund_reasons()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getRefundReasons: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getReturnActions

Finds a list of all possible return actions

Finds a list of all possible return actions


/returns/actions

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/actions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

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

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        try {
            ReturnActionList result = apiInstance.getReturnActions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Finds a list of all possible return actions
[apiInstance getReturnActionsWithCompletionHandler: 
              ^(ReturnActionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();

            try
            {
                // Finds a list of all possible return actions
                ReturnActionList result = apiInstance.getReturnActions();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getReturnActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Finds a list of all possible return actions
    api_response = api_instance.get_return_actions()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getReturnActions: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getReturnEntriesForOrderCode

Finds a paginated list of return entries for a return request corresponding to the given code

Returns a paginated list of return entries for a return request corresponding to the given code


/returns/{code}/entries

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/{code}/entries?currentPage=&fields=&pageSize=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to display per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            ReturnEntrySearchPage result = apiInstance.getReturnEntriesForOrderCode(code, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnEntriesForOrderCode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to display per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            ReturnEntrySearchPage result = apiInstance.getReturnEntriesForOrderCode(code, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnEntriesForOrderCode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Return request code
Integer *currentPage = 56; // Current page number (optional) (default to 0)
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)
Integer *pageSize = 56; // Number of items to display per page (optional) (default to 10)
String *sort = sort_example; // Method in which to sort results (optional) (default to asc)

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

// Finds a paginated list of return entries for a return request corresponding to the given code
[apiInstance getReturnEntriesForOrderCodeWith:code
    currentPage:currentPage
    fields:fields
    pageSize:pageSize
    sort:sort
              completionHandler: ^(ReturnEntrySearchPage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var code = code_example; // {{String}} Return request code
var opts = { 
  'currentPage': 56, // {{Integer}} Current page number
  'fields': fields_example, // {{String}} Fields mapping level
  'pageSize': 56, // {{Integer}} Number of items to display per page
  'sort': sort_example // {{String}} Method in which to sort results
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReturnEntriesForOrderCode(code, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var code = code_example;  // String | Return request code
            var currentPage = 56;  // Integer | Current page number (optional)  (default to 0)
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)
            var pageSize = 56;  // Integer | Number of items to display per page (optional)  (default to 10)
            var sort = sort_example;  // String | Method in which to sort results (optional)  (default to asc)

            try
            {
                // Finds a paginated list of return entries for a return request corresponding to the given code
                ReturnEntrySearchPage result = apiInstance.getReturnEntriesForOrderCode(code, currentPage, fields, pageSize, sort);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getReturnEntriesForOrderCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$code = code_example; // String | Return request code
$currentPage = 56; // Integer | Current page number
$fields = fields_example; // String | Fields mapping level
$pageSize = 56; // Integer | Number of items to display per page
$sort = sort_example; // String | Method in which to sort results

try {
    $result = $api_instance->getReturnEntriesForOrderCode($code, $currentPage, $fields, $pageSize, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReturnsOperationsApi->getReturnEntriesForOrderCode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReturnsOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $code = code_example; # String | Return request code
my $currentPage = 56; # Integer | Current page number
my $fields = fields_example; # String | Fields mapping level
my $pageSize = 56; # Integer | Number of items to display per page
my $sort = sort_example; # String | Method in which to sort results

eval { 
    my $result = $api_instance->getReturnEntriesForOrderCode(code => $code, currentPage => $currentPage, fields => $fields, pageSize => $pageSize, sort => $sort);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReturnsOperationsApi->getReturnEntriesForOrderCode: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
code = code_example # String | Return request code
currentPage = 56 # Integer | Current page number (optional) (default to 0)
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)
pageSize = 56 # Integer | Number of items to display per page (optional) (default to 10)
sort = sort_example # String | Method in which to sort results (optional) (default to asc)

try: 
    # Finds a paginated list of return entries for a return request corresponding to the given code
    api_response = api_instance.get_return_entries_for_order_code(code, currentPage=currentPage, fields=fields, pageSize=pageSize, sort=sort)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getReturnEntriesForOrderCode: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Return request code
Required
Query parameters
Name Description
currentPage
Integer (int32)
Current page number
fields
String
Fields mapping level
pageSize
Integer (int32)
Number of items to display per page
sort
String
Method in which to sort results

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getReturnForReturnCode

Finds a specific return request by its code

Returns a specific return request by its code


/returns/{code}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/{code}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        String fields = fields_example; // String | Fields mapping level
        try {
            ReturnRequest result = apiInstance.getReturnForReturnCode(code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnForReturnCode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        String fields = fields_example; // String | Fields mapping level
        try {
            ReturnRequest result = apiInstance.getReturnForReturnCode(code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnForReturnCode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Return request code
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Finds a specific return request by its code
[apiInstance getReturnForReturnCodeWith:code
    fields:fields
              completionHandler: ^(ReturnRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var code = code_example; // {{String}} Return request code
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReturnForReturnCode(code, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var code = code_example;  // String | Return request code
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Finds a specific return request by its code
                ReturnRequest result = apiInstance.getReturnForReturnCode(code, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getReturnForReturnCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$code = code_example; // String | Return request code
$fields = fields_example; // String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $code = code_example; # String | Return request code
my $fields = fields_example; # String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
code = code_example # String | Return request code
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Finds a specific return request by its code
    api_response = api_instance.get_return_for_return_code(code, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getReturnForReturnCode: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Return request code
Required
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getReturnStatuses

Finds a list of all return possible return statuses

Returns a list of all return possible return statuses


/returns/statuses

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/statuses"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

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

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        try {
            ReturnStatusList result = apiInstance.getReturnStatuses();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnStatuses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Finds a list of all return possible return statuses
[apiInstance getReturnStatusesWithCompletionHandler: 
              ^(ReturnStatusList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();

            try
            {
                // Finds a list of all return possible return statuses
                ReturnStatusList result = apiInstance.getReturnStatuses();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getReturnStatuses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Finds a list of all return possible return statuses
    api_response = api_instance.get_return_statuses()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getReturnStatuses: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getReturns

Finds a paginated list of all the returns in the system

Returns a paginated list of all the returns in the system


/returns

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns?currentPage=&fields=&pageSize=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            ReturnSearchPage result = apiInstance.getReturns(currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturns");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            ReturnSearchPage result = apiInstance.getReturns(currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturns");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *currentPage = 56; // Current page number (optional) (default to 0)
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)
Integer *pageSize = 56; // Number of items to be displayed per page (optional) (default to 10)
String *sort = sort_example; // Method in which to sort results (optional) (default to asc)

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

// Finds a paginated list of all the returns in the system
[apiInstance getReturnsWith:currentPage
    fields:fields
    pageSize:pageSize
    sort:sort
              completionHandler: ^(ReturnSearchPage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var opts = { 
  'currentPage': 56, // {{Integer}} Current page number
  'fields': fields_example, // {{String}} Fields mapping level
  'pageSize': 56, // {{Integer}} Number of items to be displayed per page
  'sort': sort_example // {{String}} Method in which to sort results
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReturns(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var currentPage = 56;  // Integer | Current page number (optional)  (default to 0)
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)
            var pageSize = 56;  // Integer | Number of items to be displayed per page (optional)  (default to 10)
            var sort = sort_example;  // String | Method in which to sort results (optional)  (default to asc)

            try
            {
                // Finds a paginated list of all the returns in the system
                ReturnSearchPage result = apiInstance.getReturns(currentPage, fields, pageSize, sort);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getReturns: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$currentPage = 56; // Integer | Current page number
$fields = fields_example; // String | Fields mapping level
$pageSize = 56; // Integer | Number of items to be displayed per page
$sort = sort_example; // String | Method in which to sort results

try {
    $result = $api_instance->getReturns($currentPage, $fields, $pageSize, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReturnsOperationsApi->getReturns: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReturnsOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $currentPage = 56; # Integer | Current page number
my $fields = fields_example; # String | Fields mapping level
my $pageSize = 56; # Integer | Number of items to be displayed per page
my $sort = sort_example; # String | Method in which to sort results

eval { 
    my $result = $api_instance->getReturns(currentPage => $currentPage, fields => $fields, pageSize => $pageSize, sort => $sort);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReturnsOperationsApi->getReturns: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
currentPage = 56 # Integer | Current page number (optional) (default to 0)
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)
pageSize = 56 # Integer | Number of items to be displayed per page (optional) (default to 10)
sort = sort_example # String | Method in which to sort results (optional) (default to asc)

try: 
    # Finds a paginated list of all the returns in the system
    api_response = api_instance.get_returns(currentPage=currentPage, fields=fields, pageSize=pageSize, sort=sort)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getReturns: %s\n" % e)

Parameters

Query parameters
Name Description
currentPage
Integer (int32)
Current page number
fields
String
Fields mapping level
pageSize
Integer (int32)
Number of items to be displayed per page
sort
String
Method in which to sort results

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getReturnsByStatus

Finds a paginated list of returns with one of a set of desired statuses

Returns a paginated list of returns with one of a set of desired statuses


/returns/status/{returnStatuses}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/status/{returnStatuses}?currentPage=&fields=&pageSize=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String returnStatuses = returnStatuses_example; // String | Set of desired return statuses
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            ReturnSearchPage result = apiInstance.getReturnsByStatus(returnStatuses, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnsByStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String returnStatuses = returnStatuses_example; // String | Set of desired return statuses
        Integer currentPage = 56; // Integer | Current page number
        String fields = fields_example; // String | Fields mapping level
        Integer pageSize = 56; // Integer | Number of items to be displayed per page
        String sort = sort_example; // String | Method in which to sort results
        try {
            ReturnSearchPage result = apiInstance.getReturnsByStatus(returnStatuses, currentPage, fields, pageSize, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnsByStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *returnStatuses = returnStatuses_example; // Set of desired return statuses
Integer *currentPage = 56; // Current page number (optional) (default to 0)
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)
Integer *pageSize = 56; // Number of items to be displayed per page (optional) (default to 10)
String *sort = sort_example; // Method in which to sort results (optional) (default to asc)

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

// Finds a paginated list of returns with one of a set of desired statuses
[apiInstance getReturnsByStatusWith:returnStatuses
    currentPage:currentPage
    fields:fields
    pageSize:pageSize
    sort:sort
              completionHandler: ^(ReturnSearchPage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var returnStatuses = returnStatuses_example; // {{String}} Set of desired return statuses
var opts = { 
  'currentPage': 56, // {{Integer}} Current page number
  'fields': fields_example, // {{String}} Fields mapping level
  'pageSize': 56, // {{Integer}} Number of items to be displayed per page
  'sort': sort_example // {{String}} Method in which to sort results
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReturnsByStatus(returnStatuses, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var returnStatuses = returnStatuses_example;  // String | Set of desired return statuses
            var currentPage = 56;  // Integer | Current page number (optional)  (default to 0)
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)
            var pageSize = 56;  // Integer | Number of items to be displayed per page (optional)  (default to 10)
            var sort = sort_example;  // String | Method in which to sort results (optional)  (default to asc)

            try
            {
                // Finds a paginated list of returns with one of a set of desired statuses
                ReturnSearchPage result = apiInstance.getReturnsByStatus(returnStatuses, currentPage, fields, pageSize, sort);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getReturnsByStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$returnStatuses = returnStatuses_example; // String | Set of desired return statuses
$currentPage = 56; // Integer | Current page number
$fields = fields_example; // String | Fields mapping level
$pageSize = 56; // Integer | Number of items to be displayed per page
$sort = sort_example; // String | Method in which to sort results

try {
    $result = $api_instance->getReturnsByStatus($returnStatuses, $currentPage, $fields, $pageSize, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReturnsOperationsApi->getReturnsByStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReturnsOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $returnStatuses = returnStatuses_example; # String | Set of desired return statuses
my $currentPage = 56; # Integer | Current page number
my $fields = fields_example; # String | Fields mapping level
my $pageSize = 56; # Integer | Number of items to be displayed per page
my $sort = sort_example; # String | Method in which to sort results

eval { 
    my $result = $api_instance->getReturnsByStatus(returnStatuses => $returnStatuses, currentPage => $currentPage, fields => $fields, pageSize => $pageSize, sort => $sort);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReturnsOperationsApi->getReturnsByStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
returnStatuses = returnStatuses_example # String | Set of desired return statuses
currentPage = 56 # Integer | Current page number (optional) (default to 0)
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)
pageSize = 56 # Integer | Number of items to be displayed per page (optional) (default to 10)
sort = sort_example # String | Method in which to sort results (optional) (default to asc)

try: 
    # Finds a paginated list of returns with one of a set of desired statuses
    api_response = api_instance.get_returns_by_status(returnStatuses, currentPage=currentPage, fields=fields, pageSize=pageSize, sort=sort)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getReturnsByStatus: %s\n" % e)

Parameters

Path parameters
Name Description
returnStatuses*
String
Set of desired return statuses
Required
Query parameters
Name Description
currentPage
Integer (int32)
Current page number
fields
String
Fields mapping level
pageSize
Integer (int32)
Number of items to be displayed per page
sort
String
Method in which to sort results

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getReturnsCancellationReasons

Finds a list of all possible return cancellation reasons

Finds a list of all possible return cancellation reasons


/returns/cancel-reasons

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/cancel-reasons"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

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

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        try {
            CancelReasonList result = apiInstance.getReturnsCancellationReasons();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#getReturnsCancellationReasons");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Finds a list of all possible return cancellation reasons
[apiInstance getReturnsCancellationReasonsWithCompletionHandler: 
              ^(CancelReasonList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();

            try
            {
                // Finds a list of all possible return cancellation reasons
                CancelReasonList result = apiInstance.getReturnsCancellationReasons();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.getReturnsCancellationReasons: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Finds a list of all possible return cancellation reasons
    api_response = api_instance.get_returns_cancellation_reasons()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->getReturnsCancellationReasons: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReversePayment

Requests manual reversal of the payment for a return

Requests manual reversal of the payment for a return


/returns/{code}/manual/reverse-payment

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/returns/{code}/manual/reverse-payment"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        try {
            apiInstance.manuallyReversePayment(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#manuallyReversePayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        try {
            apiInstance.manuallyReversePayment(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#manuallyReversePayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Return request code

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

// Requests manual reversal of the payment for a return
[apiInstance manuallyReversePaymentWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var code = code_example; // {{String}} Return request code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReversePayment(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var code = code_example;  // String | Return request code

            try
            {
                // Requests manual reversal of the payment for a return
                apiInstance.manuallyReversePayment(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.manuallyReversePayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$code = code_example; // String | Return request code

try {
    $api_instance->manuallyReversePayment($code);
} catch (Exception $e) {
    echo 'Exception when calling ReturnsOperationsApi->manuallyReversePayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReturnsOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $code = code_example; # String | Return request code

eval { 
    $api_instance->manuallyReversePayment(code => $code);
};
if ($@) {
    warn "Exception when calling ReturnsOperationsApi->manuallyReversePayment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
code = code_example # String | Return request code

try: 
    # Requests manual reversal of the payment for a return
    api_instance.manually_reverse_payment(code)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->manuallyReversePayment: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Return request code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


manuallyReverseTax

Requests manual reversal of the taxes for a return

Requests manual reversal of the taxes for a return


/returns/{code}/manual/reverse-tax

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/returns/{code}/manual/reverse-tax"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        try {
            apiInstance.manuallyReverseTax(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#manuallyReverseTax");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        String code = code_example; // String | Return request code
        try {
            apiInstance.manuallyReverseTax(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#manuallyReverseTax");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // Return request code

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

// Requests manual reversal of the taxes for a return
[apiInstance manuallyReverseTaxWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var code = code_example; // {{String}} Return request code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.manuallyReverseTax(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var code = code_example;  // String | Return request code

            try
            {
                // Requests manual reversal of the taxes for a return
                apiInstance.manuallyReverseTax(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.manuallyReverseTax: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$code = code_example; // String | Return request code

try {
    $api_instance->manuallyReverseTax($code);
} catch (Exception $e) {
    echo 'Exception when calling ReturnsOperationsApi->manuallyReverseTax: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReturnsOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $code = code_example; # String | Return request code

eval { 
    $api_instance->manuallyReverseTax(code => $code);
};
if ($@) {
    warn "Exception when calling ReturnsOperationsApi->manuallyReverseTax: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
code = code_example # String | Return request code

try: 
    # Requests manual reversal of the taxes for a return
    api_instance.manually_reverse_tax(code)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->manuallyReverseTax: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Return request code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


updateReturnByReturnCode

Updates a return request corresponding to the given code with the modifications provided

Updates a return request corresponding to the given code with the modifications provided.


/returns/{code}

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/xml,application/json"\
-H "Content-Type: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/returns/{code}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReturnsOperationsApi;

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

public class ReturnsOperationsApiExample {

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

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

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

        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        ReturnRequestModification body = ; // ReturnRequestModification | 
        String code = code_example; // String | Return request code
        String fields = fields_example; // String | Fields mapping level
        try {
            ReturnRequest result = apiInstance.updateReturnByReturnCode(body, code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#updateReturnByReturnCode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReturnsOperationsApi;

public class ReturnsOperationsApiExample {

    public static void main(String[] args) {
        ReturnsOperationsApi apiInstance = new ReturnsOperationsApi();
        ReturnRequestModification body = ; // ReturnRequestModification | 
        String code = code_example; // String | Return request code
        String fields = fields_example; // String | Fields mapping level
        try {
            ReturnRequest result = apiInstance.updateReturnByReturnCode(body, code, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReturnsOperationsApi#updateReturnByReturnCode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ReturnRequestModification *body = ; // 
String *code = code_example; // Return request code
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Updates a return request corresponding to the given code with the modifications provided
[apiInstance updateReturnByReturnCodeWith:body
    code:code
    fields:fields
              completionHandler: ^(ReturnRequest output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.ReturnsOperationsApi()
var body = ; // {{ReturnRequestModification}} 
var code = code_example; // {{String}} Return request code
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateReturnByReturnCode(bodycode, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReturnsOperationsApi();
            var body = new ReturnRequestModification(); // ReturnRequestModification | 
            var code = code_example;  // String | Return request code
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Updates a return request corresponding to the given code with the modifications provided
                ReturnRequest result = apiInstance.updateReturnByReturnCode(body, code, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReturnsOperationsApi.updateReturnByReturnCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiReturnsOperationsApi();
$body = ; // ReturnRequestModification | 
$code = code_example; // String | Return request code
$fields = fields_example; // String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReturnsOperationsApi->new();
my $body = WWW::SwaggerClient::Object::ReturnRequestModification->new(); # ReturnRequestModification | 
my $code = code_example; # String | Return request code
my $fields = fields_example; # String | Fields mapping level

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReturnsOperationsApi()
body =  # ReturnRequestModification | 
code = code_example # String | Return request code
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Updates a return request corresponding to the given code with the modifications provided
    api_response = api_instance.update_return_by_return_code(body, code, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReturnsOperationsApi->updateReturnByReturnCode: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Return request code
Required
Body parameters
Name Description
body *
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


WorkflowOperations

decideWorkflowAction

Performs the workflow actions with the provided decision.

Performs the workflow actions with the provided decision.


/workflows/{workflowCode}/{workflowDecisionCode}

Usage and SDK Samples

curl -X POST\
\
\
"http://localhost:9001/ordermanagementwebservices/workflows/{workflowCode}/{workflowDecisionCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WorkflowOperationsApi;

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

public class WorkflowOperationsApiExample {

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

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

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

        WorkflowOperationsApi apiInstance = new WorkflowOperationsApi();
        String workflowCode = workflowCode_example; // String | Workflow code
        String workflowDecisionCode = workflowDecisionCode_example; // String | Workflow Decision code
        try {
            apiInstance.decideWorkflowAction(workflowCode, workflowDecisionCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkflowOperationsApi#decideWorkflowAction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WorkflowOperationsApi;

public class WorkflowOperationsApiExample {

    public static void main(String[] args) {
        WorkflowOperationsApi apiInstance = new WorkflowOperationsApi();
        String workflowCode = workflowCode_example; // String | Workflow code
        String workflowDecisionCode = workflowDecisionCode_example; // String | Workflow Decision code
        try {
            apiInstance.decideWorkflowAction(workflowCode, workflowDecisionCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkflowOperationsApi#decideWorkflowAction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *workflowCode = workflowCode_example; // Workflow code
String *workflowDecisionCode = workflowDecisionCode_example; // Workflow Decision code

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

// Performs the workflow actions with the provided decision.
[apiInstance decideWorkflowActionWith:workflowCode
    workflowDecisionCode:workflowDecisionCode
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.WorkflowOperationsApi()
var workflowCode = workflowCode_example; // {{String}} Workflow code
var workflowDecisionCode = workflowDecisionCode_example; // {{String}} Workflow Decision code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.decideWorkflowAction(workflowCode, workflowDecisionCode, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WorkflowOperationsApi();
            var workflowCode = workflowCode_example;  // String | Workflow code
            var workflowDecisionCode = workflowDecisionCode_example;  // String | Workflow Decision code

            try
            {
                // Performs the workflow actions with the provided decision.
                apiInstance.decideWorkflowAction(workflowCode, workflowDecisionCode);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WorkflowOperationsApi.decideWorkflowAction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWorkflowOperationsApi();
$workflowCode = workflowCode_example; // String | Workflow code
$workflowDecisionCode = workflowDecisionCode_example; // String | Workflow Decision code

try {
    $api_instance->decideWorkflowAction($workflowCode, $workflowDecisionCode);
} catch (Exception $e) {
    echo 'Exception when calling WorkflowOperationsApi->decideWorkflowAction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WorkflowOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WorkflowOperationsApi->new();
my $workflowCode = workflowCode_example; # String | Workflow code
my $workflowDecisionCode = workflowDecisionCode_example; # String | Workflow Decision code

eval { 
    $api_instance->decideWorkflowAction(workflowCode => $workflowCode, workflowDecisionCode => $workflowDecisionCode);
};
if ($@) {
    warn "Exception when calling WorkflowOperationsApi->decideWorkflowAction: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WorkflowOperationsApi()
workflowCode = workflowCode_example # String | Workflow code
workflowDecisionCode = workflowDecisionCode_example # String | Workflow Decision code

try: 
    # Performs the workflow actions with the provided decision.
    api_instance.decide_workflow_action(workflowCode, workflowDecisionCode)
except ApiException as e:
    print("Exception when calling WorkflowOperationsApi->decideWorkflowAction: %s\n" % e)

Parameters

Path parameters
Name Description
workflowCode*
String
Workflow code
Required
workflowDecisionCode*
String
Workflow Decision code
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


decideWorkflowActions

Performs the workflow actions belonging to a list of workflows with the provided decision.

Performs the workflow actions belonging to a list of workflows with the provided decision.


/workflows/decide-action/{workflowDecisionCode}

Usage and SDK Samples

curl -X POST\
\
\
-H "Content-Type: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/workflows/decide-action/{workflowDecisionCode}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WorkflowOperationsApi;

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

public class WorkflowOperationsApiExample {

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

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

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

        WorkflowOperationsApi apiInstance = new WorkflowOperationsApi();
        WorkflowCodesList body = ; // WorkflowCodesList | 
        String workflowDecisionCode = workflowDecisionCode_example; // String | Workflow Decision code
        String fields = fields_example; // String | Fields mapping level
        try {
            apiInstance.decideWorkflowActions(body, workflowDecisionCode, fields);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkflowOperationsApi#decideWorkflowActions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WorkflowOperationsApi;

public class WorkflowOperationsApiExample {

    public static void main(String[] args) {
        WorkflowOperationsApi apiInstance = new WorkflowOperationsApi();
        WorkflowCodesList body = ; // WorkflowCodesList | 
        String workflowDecisionCode = workflowDecisionCode_example; // String | Workflow Decision code
        String fields = fields_example; // String | Fields mapping level
        try {
            apiInstance.decideWorkflowActions(body, workflowDecisionCode, fields);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkflowOperationsApi#decideWorkflowActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
WorkflowCodesList *body = ; // 
String *workflowDecisionCode = workflowDecisionCode_example; // Workflow Decision code
String *fields = fields_example; // Fields mapping level (optional) (default to DEFAULT)

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

// Performs the workflow actions belonging to a list of workflows with the provided decision.
[apiInstance decideWorkflowActionsWith:body
    workflowDecisionCode:workflowDecisionCode
    fields:fields
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

var api = new OrderManagementWebservices.WorkflowOperationsApi()
var body = ; // {{WorkflowCodesList}} 
var workflowDecisionCode = workflowDecisionCode_example; // {{String}} Workflow Decision code
var opts = { 
  'fields': fields_example // {{String}} Fields mapping level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.decideWorkflowActions(bodyworkflowDecisionCode, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WorkflowOperationsApi();
            var body = new WorkflowCodesList(); // WorkflowCodesList | 
            var workflowDecisionCode = workflowDecisionCode_example;  // String | Workflow Decision code
            var fields = fields_example;  // String | Fields mapping level (optional)  (default to DEFAULT)

            try
            {
                // Performs the workflow actions belonging to a list of workflows with the provided decision.
                apiInstance.decideWorkflowActions(body, workflowDecisionCode, fields);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WorkflowOperationsApi.decideWorkflowActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWorkflowOperationsApi();
$body = ; // WorkflowCodesList | 
$workflowDecisionCode = workflowDecisionCode_example; // String | Workflow Decision code
$fields = fields_example; // String | Fields mapping level

try {
    $api_instance->decideWorkflowActions($body, $workflowDecisionCode, $fields);
} catch (Exception $e) {
    echo 'Exception when calling WorkflowOperationsApi->decideWorkflowActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WorkflowOperationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WorkflowOperationsApi->new();
my $body = WWW::SwaggerClient::Object::WorkflowCodesList->new(); # WorkflowCodesList | 
my $workflowDecisionCode = workflowDecisionCode_example; # String | Workflow Decision code
my $fields = fields_example; # String | Fields mapping level

eval { 
    $api_instance->decideWorkflowActions(body => $body, workflowDecisionCode => $workflowDecisionCode, fields => $fields);
};
if ($@) {
    warn "Exception when calling WorkflowOperationsApi->decideWorkflowActions: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WorkflowOperationsApi()
body =  # WorkflowCodesList | 
workflowDecisionCode = workflowDecisionCode_example # String | Workflow Decision code
fields = fields_example # String | Fields mapping level (optional) (default to DEFAULT)

try: 
    # Performs the workflow actions belonging to a list of workflows with the provided decision.
    api_instance.decide_workflow_actions(body, workflowDecisionCode, fields=fields)
except ApiException as e:
    print("Exception when calling WorkflowOperationsApi->decideWorkflowActions: %s\n" % e)

Parameters

Path parameters
Name Description
workflowDecisionCode*
String
Workflow Decision code
Required
Body parameters
Name Description
body *
Query parameters
Name Description
fields
String
Fields mapping level

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getWorkflowActions

Finds all active workflow actions for the current user

Finds all active workflow actions for the current user.


/workflows/actions

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/ordermanagementwebservices/workflows/actions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WorkflowOperationsApi;

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

public class WorkflowOperationsApiExample {

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

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

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

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

public class WorkflowOperationsApiExample {

    public static void main(String[] args) {
        WorkflowOperationsApi apiInstance = new WorkflowOperationsApi();
        try {
            WorkflowActionList result = apiInstance.getWorkflowActions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkflowOperationsApi#getWorkflowActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Finds all active workflow actions for the current user
[apiInstance getWorkflowActionsWithCompletionHandler: 
              ^(WorkflowActionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrderManagementWebservices = require('order_management_webservices');
var defaultClient = OrderManagementWebservices.ApiClient.instance;

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

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

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WorkflowOperationsApi();

            try
            {
                // Finds all active workflow actions for the current user
                WorkflowActionList result = apiInstance.getWorkflowActions();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WorkflowOperationsApi.getWorkflowActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Finds all active workflow actions for the current user
    api_response = api_instance.get_workflow_actions()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WorkflowOperationsApi->getWorkflowActions: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found