All URIs are relative to https://www.orkiv.com/i/api
Method | HTTP request | Description |
---|---|---|
allGet | GET /all/ | |
categoriesDelete | DELETE /categories/ | |
categoriesPost | POST /categories/ | |
categoriesPut | PUT /categories/ | |
itemAddPost | POST /item/add/ | |
itemAddbulkPost | POST /item/addbulk/ | |
itemDelete | DELETE /item/ | |
itemGet | GET /item/ | |
itemMediaDelete | DELETE /item-media/ | |
itemMediaPost | POST /item-media/ | |
itemPut | PUT /item/ | |
itemsCountPost | POST /items/count/ | |
itemsPost | POST /items/ | |
ordersPost | POST /orders/ | |
ordersServicesPost | POST /orders/services/ | |
queryPost | POST /query/ | |
servicesDelete | DELETE /services/ | |
servicesGet | GET /services/ | |
servicesOpenGet | GET /services/open/ | |
servicesPost | POST /services/ | |
servicesPut | PUT /services/ | |
variationDelete | DELETE /variation/ | |
variationGet | GET /variation/ | |
variationPost | POST /variation/ | |
variationPut | PUT /variation/ | |
writeDelete | DELETE /write/ | |
writePost | POST /write/ |
[InventoryGroup] allGet()
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.allGet(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Response categoriesDelete(id)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | Id of category to remove
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.categoriesDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | Id of category to remove |
- Content-Type: Not defined
- Accept: application/json
[Category] categoriesPost(opts)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var opts = {
'query': new InventoryClient.Category() // Category | Category to query against system
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.categoriesPost(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
query | Category | Category to query against system | [optional] |
- Content-Type: Not defined
- Accept: application/json
Category categoriesPut(id, category)
If no ID is specified a new category will be created!
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | category id to update.
var category = new InventoryClient.Category(); // Category | New category information.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.categoriesPut(id, category, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | category id to update. | |
category | Category | New category information. |
- Content-Type: Not defined
- Accept: application/json
Item itemAddPost(item)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var item = new InventoryClient.ItemRequest(); // ItemRequest | Item to create.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemAddPost(item, callback);
Name | Type | Description | Notes |
---|---|---|---|
item | ItemRequest | Item to create. |
- Content-Type: Not defined
- Accept: application/json
Response itemAddbulkPost(items)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var items = [new InventoryClient.ItemRequest()]; // [ItemRequest] | Items to create.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemAddbulkPost(items, callback);
Name | Type | Description | Notes |
---|---|---|---|
items | [ItemRequest] | Items to create. |
- Content-Type: Not defined
- Accept: application/json
Response itemDelete(id)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | item id to remove
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | item id to remove |
- Content-Type: Not defined
- Accept: application/json
Item itemGet(id)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | Item ID to open.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemGet(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | Item ID to open. |
- Content-Type: Not defined
- Accept: application/json
Response itemMediaDelete(imageurl)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var imageurl = "imageurl_example"; // String | URL of image to remove
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemMediaDelete(imageurl, callback);
Name | Type | Description | Notes |
---|---|---|---|
imageurl | String | URL of image to remove |
- Content-Type: Not defined
- Accept: application/json
'String' itemMediaPost(id, image)
This endpoint is currently in testing.
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | Valid item id to bind image to.
var image = "/path/to/file.txt"; // File | Image.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemMediaPost(id, image, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | Valid item id to bind image to. | |
image | File | Image. |
'String'
- Content-Type: multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json
Response itemPut(id, item)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | item id to update.
var item = new InventoryClient.ItemRequest(); // ItemRequest | New item information.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemPut(id, item, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | item id to update. | |
item | ItemRequest | New item information. |
- Content-Type: Not defined
- Accept: application/json
'Number' itemsCountPost(opts)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var opts = {
'minprice': 3.4, // Number | Min price of items to find
'maxprice': 3.4, // Number | Max price of items to find
'query': new InventoryClient.ItemRequest() // ItemRequest | Item to query against system.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemsCountPost(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
minprice | Number | Min price of items to find | [optional] |
maxprice | Number | Max price of items to find | [optional] |
query | ItemRequest | Item to query against system. | [optional] |
'Number'
- Content-Type: Not defined
- Accept: application/json
[Item] itemsPost(opts)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var opts = {
'minprice': 3.4, // Number | Min price of items to find
'maxprice': 3.4, // Number | Max price of items to find
'query': new InventoryClient.ItemRequest() // ItemRequest | Item to query against system.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.itemsPost(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
minprice | Number | Min price of items to find | [optional] |
maxprice | Number | Max price of items to find | [optional] |
query | ItemRequest | Item to query against system. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Order] ordersPost(opts)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var opts = {
'query': new InventoryClient.OrderRequest() // OrderRequest | Order to query against item invoices.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.ordersPost(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
query | OrderRequest | Order to query against item invoices. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Order] ordersServicesPost(opts)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var opts = {
'query': new InventoryClient.OrderRequest() // OrderRequest | Order to query against service invoices.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.ordersServicesPost(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
query | OrderRequest | Order to query against service invoices. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Item] queryPost(opts)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var opts = {
'page': 3.4, // Number | Current page index.
'categoryid': "categoryid_example", // String | Get items under specified category id.
'sort': "sort_example", // String | Comma delimited Sort string. ie ; +ordprice. Please use number based fields only
'search': "search_example", // String | Performs a regex pattern match against the items within your account
'minprice': 3.4, // Number | Min price in hundreds (cents).
'maxprice': 3.4, // Number | Max price in hundreds (cents).
'query': new InventoryClient.ItemRequest() // ItemRequest | Custom parameters to query against system.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.queryPost(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
page | Number | Current page index. | [optional] |
categoryid | String | Get items under specified category id. | [optional] |
sort | String | Comma delimited Sort string. ie ; +ordprice. Please use number based fields only | [optional] |
search | String | Performs a regex pattern match against the items within your account | [optional] |
minprice | Number | Min price in hundreds (cents). | [optional] |
maxprice | Number | Max price in hundreds (cents). | [optional] |
query | ItemRequest | Custom parameters to query against system. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Response servicesDelete(id)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | ID of the service to update
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.servicesDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the service to update |
- Content-Type: Not defined
- Accept: application/json
[Service] servicesGet()
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.servicesGet(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Service servicesOpenGet(id)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | ID of service to open
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.servicesOpenGet(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of service to open |
- Content-Type: Not defined
- Accept: application/json
Service servicesPost(service)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var service = new InventoryClient.ServiceRequest(); // ServiceRequest | Service to create.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.servicesPost(service, callback);
Name | Type | Description | Notes |
---|---|---|---|
service | ServiceRequest | Service to create. |
- Content-Type: Not defined
- Accept: application/json
Response servicesPut(id, service)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | ID of the service to update
var service = new InventoryClient.ServiceRequest(); // ServiceRequest | New service data to set.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.servicesPut(id, service, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the service to update | |
service | ServiceRequest | New service data to set. |
- Content-Type: Not defined
- Accept: application/json
Response variationDelete(id)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | variation id to remove
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.variationDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | variation id to remove |
- Content-Type: Not defined
- Accept: application/json
Variation variationGet(id)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | Variation ID to open.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.variationGet(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | Variation ID to open. |
- Content-Type: Not defined
- Accept: application/json
Response variationPost(id, item)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | Valid item id to bind variation to.
var item = new InventoryClient.Variation(); // Variation | Variation information.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.variationPost(id, item, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | Valid item id to bind variation to. | |
item | Variation | Variation information. |
- Content-Type: Not defined
- Accept: application/json
Response variationPut(id, item)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var id = "id_example"; // String | variation id to update.
var item = new InventoryClient.Variation(); // Variation | New variation information.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.variationPut(id, item, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | variation id to update. | |
item | Variation | New variation information. |
- Content-Type: Not defined
- Accept: application/json
Response writeDelete(opts)
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var opts = {
'id': "id_example" // String | Will delete event attached to this serviceid
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.writeDelete(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | Will delete event attached to this serviceid | [optional] |
- Content-Type: Not defined
- Accept: application/json
Response writePost(eventRequest)
Will ovveride the current event of the specified service.
var InventoryClient = require('InventoryClient');
var defaultClient = InventoryClient.ApiClient.default;
// Configure API key authorization: APIKey
var APIKey = defaultClient.authentications['APIKey'];
APIKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey.apiKeyPrefix = 'Token';
// Configure API key authorization: AccountID
var AccountID = defaultClient.authentications['AccountID'];
AccountID.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccountID.apiKeyPrefix = 'Token';
var apiInstance = new InventoryClient.DefaultApi();
var eventRequest = new InventoryClient.EventRequest(); // EventRequest | Event to upload
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.writePost(eventRequest, callback);
Name | Type | Description | Notes |
---|---|---|---|
eventRequest | EventRequest | Event to upload |
- Content-Type: Not defined
- Accept: application/json