Subscribed Product TMF Webservices API

SubscribedProductInventory

createProduct

Creates a Product

This operation creates a Product entity.


/product

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8,application/xml,application/json"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/product"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryApi;

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

public class SubscribedProductInventoryApiExample {

    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");

        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        Product body = ; // Product | 
        try {
            Product result = apiInstance.createProduct(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#createProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscribedProductInventoryApi;

public class SubscribedProductInventoryApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        Product body = ; // Product | 
        try {
            Product result = apiInstance.createProduct(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#createProduct");
            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"];
Product *body = ; // 

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

// Creates a Product
[apiInstance createProductWith:body
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryApi()
var body = ; // {{Product}} 

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

namespace Example
{
    public class createProductExample
    {
        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 SubscribedProductInventoryApi();
            var body = new Product(); // Product | 

            try
            {
                // Creates a Product
                Product result = apiInstance.createProduct(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryApi.createProduct: " + 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\ApiSubscribedProductInventoryApi();
$body = ; // Product | 

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

# 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::SubscribedProductInventoryApi->new();
my $body = WWW::SwaggerClient::Object::Product->new(); # Product | 

eval { 
    my $result = $api_instance->createProduct(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryApi->createProduct: $@\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.SubscribedProductInventoryApi()
body =  # Product | 

try: 
    # Creates a Product
    api_response = api_instance.create_product(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryApi->createProduct: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Created

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


deleteProduct

Deletes a Product

This operation deletes a Product entity.


/product/{id}

Usage and SDK Samples

curl -X DELETE\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/product/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryApi;

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

public class SubscribedProductInventoryApiExample {

    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");

        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        String id = id_example; // String | Identifier of the Product
        try {
            apiInstance.deleteProduct(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#deleteProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscribedProductInventoryApi;

public class SubscribedProductInventoryApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        String id = id_example; // String | Identifier of the Product
        try {
            apiInstance.deleteProduct(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#deleteProduct");
            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 *id = id_example; // Identifier of the Product

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

// Deletes a Product
[apiInstance deleteProductWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryApi()
var id = id_example; // {{String}} Identifier of the Product

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

namespace Example
{
    public class deleteProductExample
    {
        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 SubscribedProductInventoryApi();
            var id = id_example;  // String | Identifier of the Product

            try
            {
                // Deletes a Product
                apiInstance.deleteProduct(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryApi.deleteProduct: " + 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\ApiSubscribedProductInventoryApi();
$id = id_example; // String | Identifier of the Product

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

# 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::SubscribedProductInventoryApi->new();
my $id = id_example; # String | Identifier of the Product

eval { 
    $api_instance->deleteProduct(id => $id);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryApi->deleteProduct: $@\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.SubscribedProductInventoryApi()
id = id_example # String | Identifier of the Product

try: 
    # Deletes a Product
    api_instance.delete_product(id)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryApi->deleteProduct: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Identifier of the Product
Required

Responses

Status: 204 - Deleted

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


listProduct

List or find Product objects

This operation list or find Product entities


/product

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8,application/xml,application/json"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/product?billingAccount.id=&fields=&limit=&offset=&status="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryApi;

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

public class SubscribedProductInventoryApiExample {

    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");

        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        String billingAccount.id = billingAccount.id_example; // String | Identifier of the billing account
        String fields = fields_example; // String | Comma-separated properties to be provided in response
        Integer limit = 56; // Integer | Requested number of resources to be provided in response
        Integer offset = 56; // Integer | Requested index for start of resources to be provided in response
        String status = status_example; // String | Product Status value
        try {
            array[Product] result = apiInstance.listProduct(billingAccount.id, fields, limit, offset, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#listProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscribedProductInventoryApi;

public class SubscribedProductInventoryApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        String billingAccount.id = billingAccount.id_example; // String | Identifier of the billing account
        String fields = fields_example; // String | Comma-separated properties to be provided in response
        Integer limit = 56; // Integer | Requested number of resources to be provided in response
        Integer offset = 56; // Integer | Requested index for start of resources to be provided in response
        String status = status_example; // String | Product Status value
        try {
            array[Product] result = apiInstance.listProduct(billingAccount.id, fields, limit, offset, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#listProduct");
            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 *billingAccount.id = billingAccount.id_example; // Identifier of the billing account (optional)
String *fields = fields_example; // Comma-separated properties to be provided in response (optional)
Integer *limit = 56; // Requested number of resources to be provided in response (optional)
Integer *offset = 56; // Requested index for start of resources to be provided in response (optional)
String *status = status_example; // Product Status value (optional)

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

// List or find Product objects
[apiInstance listProductWith:billingAccount.id
    fields:fields
    limit:limit
    offset:offset
    status:status
              completionHandler: ^(array[Product] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryApi()
var opts = { 
  'billingAccount.id': billingAccount.id_example, // {{String}} Identifier of the billing account
  'fields': fields_example, // {{String}} Comma-separated properties to be provided in response
  'limit': 56, // {{Integer}} Requested number of resources to be provided in response
  'offset': 56, // {{Integer}} Requested index for start of resources to be provided in response
  'status': status_example // {{String}} Product Status value
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listProduct(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listProductExample
    {
        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 SubscribedProductInventoryApi();
            var billingAccount.id = billingAccount.id_example;  // String | Identifier of the billing account (optional) 
            var fields = fields_example;  // String | Comma-separated properties to be provided in response (optional) 
            var limit = 56;  // Integer | Requested number of resources to be provided in response (optional) 
            var offset = 56;  // Integer | Requested index for start of resources to be provided in response (optional) 
            var status = status_example;  // String | Product Status value (optional) 

            try
            {
                // List or find Product objects
                array[Product] result = apiInstance.listProduct(billingAccount.id, fields, limit, offset, status);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryApi.listProduct: " + 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\ApiSubscribedProductInventoryApi();
$billingAccount.id = billingAccount.id_example; // String | Identifier of the billing account
$fields = fields_example; // String | Comma-separated properties to be provided in response
$limit = 56; // Integer | Requested number of resources to be provided in response
$offset = 56; // Integer | Requested index for start of resources to be provided in response
$status = status_example; // String | Product Status value

try {
    $result = $api_instance->listProduct($billingAccount.id, $fields, $limit, $offset, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscribedProductInventoryApi->listProduct: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscribedProductInventoryApi;

# 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::SubscribedProductInventoryApi->new();
my $billingAccount.id = billingAccount.id_example; # String | Identifier of the billing account
my $fields = fields_example; # String | Comma-separated properties to be provided in response
my $limit = 56; # Integer | Requested number of resources to be provided in response
my $offset = 56; # Integer | Requested index for start of resources to be provided in response
my $status = status_example; # String | Product Status value

eval { 
    my $result = $api_instance->listProduct(billingAccount.id => $billingAccount.id, fields => $fields, limit => $limit, offset => $offset, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryApi->listProduct: $@\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.SubscribedProductInventoryApi()
billingAccount.id = billingAccount.id_example # String | Identifier of the billing account (optional)
fields = fields_example # String | Comma-separated properties to be provided in response (optional)
limit = 56 # Integer | Requested number of resources to be provided in response (optional)
offset = 56 # Integer | Requested index for start of resources to be provided in response (optional)
status = status_example # String | Product Status value (optional)

try: 
    # List or find Product objects
    api_response = api_instance.list_product(billingAccount.id=billingAccount.id, fields=fields, limit=limit, offset=offset, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryApi->listProduct: %s\n" % e)

Parameters

Query parameters
Name Description
billingAccount.id
String
Identifier of the billing account
fields
String
Comma-separated properties to be provided in response
limit
Integer (int32)
Requested number of resources to be provided in response
offset
Integer (int32)
Requested index for start of resources to be provided in response
status
String
Product Status value

Responses

Status: 200 - Success

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


patchProduct

Partially updates a Product

This operation updates partially a Product entity.


/product/{id}

Usage and SDK Samples

curl -X PATCH\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8,application/xml,application/json"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/product/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryApi;

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

public class SubscribedProductInventoryApiExample {

    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");

        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        Product body = ; // Product | 
        String id = id_example; // String | Identifier of the Product
        try {
            Product result = apiInstance.patchProduct(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#patchProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscribedProductInventoryApi;

public class SubscribedProductInventoryApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        Product body = ; // Product | 
        String id = id_example; // String | Identifier of the Product
        try {
            Product result = apiInstance.patchProduct(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#patchProduct");
            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"];
Product *body = ; // 
String *id = id_example; // Identifier of the Product

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

// Partially updates a Product
[apiInstance patchProductWith:body
    id:id
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryApi()
var body = ; // {{Product}} 
var id = id_example; // {{String}} Identifier of the Product

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

namespace Example
{
    public class patchProductExample
    {
        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 SubscribedProductInventoryApi();
            var body = new Product(); // Product | 
            var id = id_example;  // String | Identifier of the Product

            try
            {
                // Partially updates a Product
                Product result = apiInstance.patchProduct(body, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryApi.patchProduct: " + 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\ApiSubscribedProductInventoryApi();
$body = ; // Product | 
$id = id_example; // String | Identifier of the Product

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

# 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::SubscribedProductInventoryApi->new();
my $body = WWW::SwaggerClient::Object::Product->new(); # Product | 
my $id = id_example; # String | Identifier of the Product

eval { 
    my $result = $api_instance->patchProduct(body => $body, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryApi->patchProduct: $@\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.SubscribedProductInventoryApi()
body =  # Product | 
id = id_example # String | Identifier of the Product

try: 
    # Partially updates a Product
    api_response = api_instance.patch_product(body, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryApi->patchProduct: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Identifier of the Product
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Updated

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


retrieveProduct

Retrieves a Product by ID

This operation retrieves a Product entity. Attribute selection is enabled for all first level attributes.


/product/{id}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json;charset=utf-8,application/xml,application/json"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/product/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryApi;

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

public class SubscribedProductInventoryApiExample {

    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");

        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        String id = id_example; // String | Identifier of the Product
        String fields = fields_example; // String | Comma-separated properties to provide in response
        try {
            Product result = apiInstance.retrieveProduct(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#retrieveProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscribedProductInventoryApi;

public class SubscribedProductInventoryApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryApi apiInstance = new SubscribedProductInventoryApi();
        String id = id_example; // String | Identifier of the Product
        String fields = fields_example; // String | Comma-separated properties to provide in response
        try {
            Product result = apiInstance.retrieveProduct(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryApi#retrieveProduct");
            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 *id = id_example; // Identifier of the Product
String *fields = fields_example; // Comma-separated properties to provide in response (optional)

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

// Retrieves a Product by ID
[apiInstance retrieveProductWith:id
    fields:fields
              completionHandler: ^(Product output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryApi()
var id = id_example; // {{String}} Identifier of the Product
var opts = { 
  'fields': fields_example // {{String}} Comma-separated properties to provide in response
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.retrieveProduct(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class retrieveProductExample
    {
        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 SubscribedProductInventoryApi();
            var id = id_example;  // String | Identifier of the Product
            var fields = fields_example;  // String | Comma-separated properties to provide in response (optional) 

            try
            {
                // Retrieves a Product by ID
                Product result = apiInstance.retrieveProduct(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryApi.retrieveProduct: " + 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\ApiSubscribedProductInventoryApi();
$id = id_example; // String | Identifier of the Product
$fields = fields_example; // String | Comma-separated properties to provide in response

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

# 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::SubscribedProductInventoryApi->new();
my $id = id_example; # String | Identifier of the Product
my $fields = fields_example; # String | Comma-separated properties to provide in response

eval { 
    my $result = $api_instance->retrieveProduct(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryApi->retrieveProduct: $@\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.SubscribedProductInventoryApi()
id = id_example # String | Identifier of the Product
fields = fields_example # String | Comma-separated properties to provide in response (optional)

try: 
    # Retrieves a Product by ID
    api_response = api_instance.retrieve_product(id, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryApi->retrieveProduct: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Identifier of the Product
Required
Query parameters
Name Description
fields
String
Comma-separated properties to provide in response

Responses

Status: 200 - Success

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


SubscribedProductInventoryNotificationListeners

listenToProductAttributeValueChangeEvent

Client listener for entity ProductAttributeValueChangeEvent

Example of a client listener for receiving the notification ProductAttributeValueChangeEvent


/listener/productAttributeValueChangeEvent

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/listener/productAttributeValueChangeEvent"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryNotificationListenersApi;

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

public class SubscribedProductInventoryNotificationListenersApiExample {

    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");

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

public class SubscribedProductInventoryNotificationListenersApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryNotificationListenersApi apiInstance = new SubscribedProductInventoryNotificationListenersApi();
        ProductAttributeValueChangeEvent body = ; // ProductAttributeValueChangeEvent | 
        try {
            'String' result = apiInstance.listenToProductAttributeValueChangeEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryNotificationListenersApi#listenToProductAttributeValueChangeEvent");
            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"];
ProductAttributeValueChangeEvent *body = ; // 

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

// Client listener for entity ProductAttributeValueChangeEvent
[apiInstance listenToProductAttributeValueChangeEventWith:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryNotificationListenersApi()
var body = ; // {{ProductAttributeValueChangeEvent}} 

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

namespace Example
{
    public class listenToProductAttributeValueChangeEventExample
    {
        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 SubscribedProductInventoryNotificationListenersApi();
            var body = new ProductAttributeValueChangeEvent(); // ProductAttributeValueChangeEvent | 

            try
            {
                // Client listener for entity ProductAttributeValueChangeEvent
                'String' result = apiInstance.listenToProductAttributeValueChangeEvent(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryNotificationListenersApi.listenToProductAttributeValueChangeEvent: " + 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\ApiSubscribedProductInventoryNotificationListenersApi();
$body = ; // ProductAttributeValueChangeEvent | 

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

# 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::SubscribedProductInventoryNotificationListenersApi->new();
my $body = WWW::SwaggerClient::Object::ProductAttributeValueChangeEvent->new(); # ProductAttributeValueChangeEvent | 

eval { 
    my $result = $api_instance->listenToProductAttributeValueChangeEvent(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductAttributeValueChangeEvent: $@\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.SubscribedProductInventoryNotificationListenersApi()
body =  # ProductAttributeValueChangeEvent | 

try: 
    # Client listener for entity ProductAttributeValueChangeEvent
    api_response = api_instance.listen_to_product_attribute_value_change_event(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductAttributeValueChangeEvent: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Notified

Status: 201 - Notified

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


listenToProductCreateEvent

Client listener for entity ProductCreateEvent

Example of a client listener for receiving the notification ProductCreateEvent


/listener/productCreateEvent

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/listener/productCreateEvent"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryNotificationListenersApi;

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

public class SubscribedProductInventoryNotificationListenersApiExample {

    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");

        SubscribedProductInventoryNotificationListenersApi apiInstance = new SubscribedProductInventoryNotificationListenersApi();
        ProductCreateEvent body = ; // ProductCreateEvent | 
        try {
            EventSubscription result = apiInstance.listenToProductCreateEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryNotificationListenersApi#listenToProductCreateEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscribedProductInventoryNotificationListenersApi;

public class SubscribedProductInventoryNotificationListenersApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryNotificationListenersApi apiInstance = new SubscribedProductInventoryNotificationListenersApi();
        ProductCreateEvent body = ; // ProductCreateEvent | 
        try {
            EventSubscription result = apiInstance.listenToProductCreateEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryNotificationListenersApi#listenToProductCreateEvent");
            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"];
ProductCreateEvent *body = ; // 

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

// Client listener for entity ProductCreateEvent
[apiInstance listenToProductCreateEventWith:body
              completionHandler: ^(EventSubscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryNotificationListenersApi()
var body = ; // {{ProductCreateEvent}} 

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

namespace Example
{
    public class listenToProductCreateEventExample
    {
        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 SubscribedProductInventoryNotificationListenersApi();
            var body = new ProductCreateEvent(); // ProductCreateEvent | 

            try
            {
                // Client listener for entity ProductCreateEvent
                EventSubscription result = apiInstance.listenToProductCreateEvent(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryNotificationListenersApi.listenToProductCreateEvent: " + 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\ApiSubscribedProductInventoryNotificationListenersApi();
$body = ; // ProductCreateEvent | 

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

# 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::SubscribedProductInventoryNotificationListenersApi->new();
my $body = WWW::SwaggerClient::Object::ProductCreateEvent->new(); # ProductCreateEvent | 

eval { 
    my $result = $api_instance->listenToProductCreateEvent(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductCreateEvent: $@\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.SubscribedProductInventoryNotificationListenersApi()
body =  # ProductCreateEvent | 

try: 
    # Client listener for entity ProductCreateEvent
    api_response = api_instance.listen_to_product_create_event(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductCreateEvent: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Notified

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


listenToProductDeleteEvent

Client listener for entity ProductDeleteEvent

Example of a client listener for receiving the notification ProductDeleteEvent


/listener/productDeleteEvent

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/listener/productDeleteEvent"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryNotificationListenersApi;

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

public class SubscribedProductInventoryNotificationListenersApiExample {

    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");

        SubscribedProductInventoryNotificationListenersApi apiInstance = new SubscribedProductInventoryNotificationListenersApi();
        ProductDeleteEvent body = ; // ProductDeleteEvent | 
        try {
            EventSubscription result = apiInstance.listenToProductDeleteEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryNotificationListenersApi#listenToProductDeleteEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscribedProductInventoryNotificationListenersApi;

public class SubscribedProductInventoryNotificationListenersApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryNotificationListenersApi apiInstance = new SubscribedProductInventoryNotificationListenersApi();
        ProductDeleteEvent body = ; // ProductDeleteEvent | 
        try {
            EventSubscription result = apiInstance.listenToProductDeleteEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryNotificationListenersApi#listenToProductDeleteEvent");
            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"];
ProductDeleteEvent *body = ; // 

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

// Client listener for entity ProductDeleteEvent
[apiInstance listenToProductDeleteEventWith:body
              completionHandler: ^(EventSubscription output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryNotificationListenersApi()
var body = ; // {{ProductDeleteEvent}} 

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

namespace Example
{
    public class listenToProductDeleteEventExample
    {
        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 SubscribedProductInventoryNotificationListenersApi();
            var body = new ProductDeleteEvent(); // ProductDeleteEvent | 

            try
            {
                // Client listener for entity ProductDeleteEvent
                EventSubscription result = apiInstance.listenToProductDeleteEvent(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryNotificationListenersApi.listenToProductDeleteEvent: " + 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\ApiSubscribedProductInventoryNotificationListenersApi();
$body = ; // ProductDeleteEvent | 

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

# 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::SubscribedProductInventoryNotificationListenersApi->new();
my $body = WWW::SwaggerClient::Object::ProductDeleteEvent->new(); # ProductDeleteEvent | 

eval { 
    my $result = $api_instance->listenToProductDeleteEvent(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductDeleteEvent: $@\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.SubscribedProductInventoryNotificationListenersApi()
body =  # ProductDeleteEvent | 

try: 
    # Client listener for entity ProductDeleteEvent
    api_response = api_instance.listen_to_product_delete_event(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductDeleteEvent: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Notified

Status: 204 - No Content

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


listenToProductStateChangeEvent

Client listener for entity ProductStateChangeEvent

Example of a client listener for receiving the notification ProductStateChangeEvent


/listener/productStateChangeEvent

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/subscribedproducttmfwebservices/v2/listener/productStateChangeEvent"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscribedProductInventoryNotificationListenersApi;

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

public class SubscribedProductInventoryNotificationListenersApiExample {

    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");

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

public class SubscribedProductInventoryNotificationListenersApiExample {

    public static void main(String[] args) {
        SubscribedProductInventoryNotificationListenersApi apiInstance = new SubscribedProductInventoryNotificationListenersApi();
        ProductStateChangeEvent body = ; // ProductStateChangeEvent | 
        try {
            'String' result = apiInstance.listenToProductStateChangeEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscribedProductInventoryNotificationListenersApi#listenToProductStateChangeEvent");
            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"];
ProductStateChangeEvent *body = ; // 

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

// Client listener for entity ProductStateChangeEvent
[apiInstance listenToProductStateChangeEventWith:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SubscribedProductTmfWebservicesApi = require('subscribed_product_tmf_webservices_api');
var defaultClient = SubscribedProductTmfWebservicesApi.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 SubscribedProductTmfWebservicesApi.SubscribedProductInventoryNotificationListenersApi()
var body = ; // {{ProductStateChangeEvent}} 

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

namespace Example
{
    public class listenToProductStateChangeEventExample
    {
        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 SubscribedProductInventoryNotificationListenersApi();
            var body = new ProductStateChangeEvent(); // ProductStateChangeEvent | 

            try
            {
                // Client listener for entity ProductStateChangeEvent
                'String' result = apiInstance.listenToProductStateChangeEvent(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscribedProductInventoryNotificationListenersApi.listenToProductStateChangeEvent: " + 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\ApiSubscribedProductInventoryNotificationListenersApi();
$body = ; // ProductStateChangeEvent | 

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

# 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::SubscribedProductInventoryNotificationListenersApi->new();
my $body = WWW::SwaggerClient::Object::ProductStateChangeEvent->new(); # ProductStateChangeEvent | 

eval { 
    my $result = $api_instance->listenToProductStateChangeEvent(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductStateChangeEvent: $@\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.SubscribedProductInventoryNotificationListenersApi()
body =  # ProductStateChangeEvent | 

try: 
    # Client listener for entity ProductStateChangeEvent
    api_response = api_instance.listen_to_product_state_change_event(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscribedProductInventoryNotificationListenersApi->listenToProductStateChangeEvent: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Notified

Status: 201 - Notified

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error