# EyondCoreApi.ProductVariantsApi

All URIs are relative to *https://eyondcoreapi.azurewebsites.net*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteProductVariant**](ProductVariantsApi.md#deleteProductVariant) | **DELETE** /api/ProductVariants/delete/client/{clientId}/product/{prodId}/variant/{varId} | 
[**getProductVariant**](ProductVariantsApi.md#getProductVariant) | **GET** /api/ProductVariants/client/{clientId}/product/{prodId}/variant/{varId} | 
[**getProductVariants**](ProductVariantsApi.md#getProductVariants) | **GET** /api/ProductVariants/{clientId} | 
[**getProductVariants_0**](ProductVariantsApi.md#getProductVariants_0) | **GET** /api/ProductVariants/client/{clientId}/product/{prodId} | 
[**postProductVariant**](ProductVariantsApi.md#postProductVariant) | **POST** /api/ProductVariants/add | 
[**putProductVariant**](ProductVariantsApi.md#putProductVariant) | **PUT** /api/ProductVariants/modify/client/{clientId}/product/{prodId}/variant/{varId} | 


<a name="deleteProductVariant"></a>
# **deleteProductVariant**
> ProductVariant deleteProductVariant(clientId, prodId, varId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.ProductVariantsApi();

var clientId = 789; // Number | 

var prodId = 789; // Number | 

var varId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.deleteProductVariant(clientId, prodId, varId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **prodId** | **Number**|  | 
 **varId** | **Number**|  | 

### Return type

[**ProductVariant**](ProductVariant.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="getProductVariant"></a>
# **getProductVariant**
> ProductVariant getProductVariant(clientId, prodId, varId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.ProductVariantsApi();

var clientId = 789; // Number | 

var prodId = 789; // Number | 

var varId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getProductVariant(clientId, prodId, varId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **prodId** | **Number**|  | 
 **varId** | **Number**|  | 

### Return type

[**ProductVariant**](ProductVariant.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="getProductVariants"></a>
# **getProductVariants**
> [ProductVariant] getProductVariants(clientId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.ProductVariantsApi();

var clientId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getProductVariants(clientId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 

### Return type

[**[ProductVariant]**](ProductVariant.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="getProductVariants_0"></a>
# **getProductVariants_0**
> [ProductVariant] getProductVariants_0(clientId, prodId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.ProductVariantsApi();

var clientId = 789; // Number | 

var prodId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getProductVariants_0(clientId, prodId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **prodId** | **Number**|  | 

### Return type

[**[ProductVariant]**](ProductVariant.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="postProductVariant"></a>
# **postProductVariant**
> ProductVariant postProductVariant(opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.ProductVariantsApi();

var opts = { 
  'variantModel': new EyondCoreApi.ProductVariant() // ProductVariant | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postProductVariant(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **variantModel** | [**ProductVariant**](ProductVariant.md)|  | [optional] 

### Return type

[**ProductVariant**](ProductVariant.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: text/plain, application/json, text/json

<a name="putProductVariant"></a>
# **putProductVariant**
> putProductVariant(clientId, prodId, varId, opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.ProductVariantsApi();

var clientId = 789; // Number | 

var prodId = 789; // Number | 

var varId = 789; // Number | 

var opts = { 
  'variantModel': new EyondCoreApi.ProductVariant() // ProductVariant | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.putProductVariant(clientId, prodId, varId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **prodId** | **Number**|  | 
 **varId** | **Number**|  | 
 **variantModel** | [**ProductVariant**](ProductVariant.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: Not defined

