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/ |
\InventoryClient\Model\InventoryGroup[] allGet()
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
try {
$result = $api_instance->allGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->allGet: ', $e->getMessage(), PHP_EOL;
}
?>This endpoint does not need any parameter.
\InventoryClient\Model\InventoryGroup[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response categoriesDelete($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | Id of category to remove
try {
$result = $api_instance->categoriesDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->categoriesDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Id of category to remove |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Category[] categoriesPost($query)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$query = new \InventoryClient\Model\Category(); // \InventoryClient\Model\Category | Category to query against system
try {
$result = $api_instance->categoriesPost($query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->categoriesPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| query | \InventoryClient\Model\Category | Category to query against system | [optional] |
\InventoryClient\Model\Category[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Category categoriesPut($id, $category)
If no ID is specified a new category will be created!
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | category id to update.
$category = new \InventoryClient\Model\Category(); // \InventoryClient\Model\Category | New category information.
try {
$result = $api_instance->categoriesPut($id, $category);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->categoriesPut: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | category id to update. | |
| category | \InventoryClient\Model\Category | New category information. |
\InventoryClient\Model\Category
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Item itemAddPost($item)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$item = new \InventoryClient\Model\ItemRequest(); // \InventoryClient\Model\ItemRequest | Item to create.
try {
$result = $api_instance->itemAddPost($item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemAddPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| item | \InventoryClient\Model\ItemRequest | Item to create. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response itemAddbulkPost($items)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$items = array(new ItemRequest()); // \InventoryClient\Model\ItemRequest[] | Items to create.
try {
$result = $api_instance->itemAddbulkPost($items);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemAddbulkPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| items | \InventoryClient\Model\ItemRequest[] | Items to create. |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response itemDelete($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | item id to remove
try {
$result = $api_instance->itemDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | item id to remove |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Item itemGet($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | Item ID to open.
try {
$result = $api_instance->itemGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Item ID to open. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response itemMediaDelete($imageurl)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$imageurl = "imageurl_example"; // string | URL of image to remove
try {
$result = $api_instance->itemMediaDelete($imageurl);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemMediaDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| imageurl | string | URL of image to remove |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string itemMediaPost($id, $image)
This endpoint is currently in testing.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | Valid item id to bind image to.
$image = "/path/to/file.txt"; // \SplFileObject | Image.
try {
$result = $api_instance->itemMediaPost($id, $image);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemMediaPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Valid item id to bind image to. | |
| image | \SplFileObject | Image. |
string
- Content-Type: multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response itemPut($id, $item)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | item id to update.
$item = new \InventoryClient\Model\ItemRequest(); // \InventoryClient\Model\ItemRequest | New item information.
try {
$result = $api_instance->itemPut($id, $item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemPut: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | item id to update. | |
| item | \InventoryClient\Model\ItemRequest | New item information. |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
float itemsCountPost($minprice, $maxprice, $query)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$minprice = 3.4; // float | Min price of items to find
$maxprice = 3.4; // float | Max price of items to find
$query = new \InventoryClient\Model\ItemRequest(); // \InventoryClient\Model\ItemRequest | Item to query against system.
try {
$result = $api_instance->itemsCountPost($minprice, $maxprice, $query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemsCountPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| minprice | float | Min price of items to find | [optional] |
| maxprice | float | Max price of items to find | [optional] |
| query | \InventoryClient\Model\ItemRequest | Item to query against system. | [optional] |
float
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Item[] itemsPost($minprice, $maxprice, $query)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$minprice = 3.4; // float | Min price of items to find
$maxprice = 3.4; // float | Max price of items to find
$query = new \InventoryClient\Model\ItemRequest(); // \InventoryClient\Model\ItemRequest | Item to query against system.
try {
$result = $api_instance->itemsPost($minprice, $maxprice, $query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->itemsPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| minprice | float | Min price of items to find | [optional] |
| maxprice | float | Max price of items to find | [optional] |
| query | \InventoryClient\Model\ItemRequest | Item to query against system. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Order[] ordersPost($query)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$query = new \InventoryClient\Model\OrderRequest(); // \InventoryClient\Model\OrderRequest | Order to query against item invoices.
try {
$result = $api_instance->ordersPost($query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->ordersPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| query | \InventoryClient\Model\OrderRequest | Order to query against item invoices. | [optional] |
\InventoryClient\Model\Order[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Order[] ordersServicesPost($query)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$query = new \InventoryClient\Model\OrderRequest(); // \InventoryClient\Model\OrderRequest | Order to query against service invoices.
try {
$result = $api_instance->ordersServicesPost($query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->ordersServicesPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| query | \InventoryClient\Model\OrderRequest | Order to query against service invoices. | [optional] |
\InventoryClient\Model\Order[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Item[] queryPost($page, $categoryid, $sort, $search, $minprice, $maxprice, $query)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$page = 3.4; // float | 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; // float | Min price in hundreds (cents).
$maxprice = 3.4; // float | Max price in hundreds (cents).
$query = new \InventoryClient\Model\ItemRequest(); // \InventoryClient\Model\ItemRequest | Custom parameters to query against system.
try {
$result = $api_instance->queryPost($page, $categoryid, $sort, $search, $minprice, $maxprice, $query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->queryPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| page | float | 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 | float | Min price in hundreds (cents). | [optional] |
| maxprice | float | Max price in hundreds (cents). | [optional] |
| query | \InventoryClient\Model\ItemRequest | Custom parameters to query against system. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response servicesDelete($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | ID of the service to update
try {
$result = $api_instance->servicesDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->servicesDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of the service to update |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Service[] servicesGet()
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
try {
$result = $api_instance->servicesGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->servicesGet: ', $e->getMessage(), PHP_EOL;
}
?>This endpoint does not need any parameter.
\InventoryClient\Model\Service[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Service servicesOpenGet($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | ID of service to open
try {
$result = $api_instance->servicesOpenGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->servicesOpenGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of service to open |
\InventoryClient\Model\Service
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Service servicesPost($service)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$service = new \InventoryClient\Model\ServiceRequest(); // \InventoryClient\Model\ServiceRequest | Service to create.
try {
$result = $api_instance->servicesPost($service);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->servicesPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| service | \InventoryClient\Model\ServiceRequest | Service to create. |
\InventoryClient\Model\Service
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response servicesPut($id, $service)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | ID of the service to update
$service = new \InventoryClient\Model\ServiceRequest(); // \InventoryClient\Model\ServiceRequest | New service data to set.
try {
$result = $api_instance->servicesPut($id, $service);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->servicesPut: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ID of the service to update | |
| service | \InventoryClient\Model\ServiceRequest | New service data to set. |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response variationDelete($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | variation id to remove
try {
$result = $api_instance->variationDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->variationDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | variation id to remove |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Variation variationGet($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | Variation ID to open.
try {
$result = $api_instance->variationGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->variationGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Variation ID to open. |
\InventoryClient\Model\Variation
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response variationPost($id, $item)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | Valid item id to bind variation to.
$item = new \InventoryClient\Model\Variation(); // \InventoryClient\Model\Variation | Variation information.
try {
$result = $api_instance->variationPost($id, $item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->variationPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Valid item id to bind variation to. | |
| item | \InventoryClient\Model\Variation | Variation information. |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response variationPut($id, $item)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | variation id to update.
$item = new \InventoryClient\Model\Variation(); // \InventoryClient\Model\Variation | New variation information.
try {
$result = $api_instance->variationPut($id, $item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->variationPut: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | variation id to update. | |
| item | \InventoryClient\Model\Variation | New variation information. |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response writeDelete($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$id = "id_example"; // string | Will delete event attached to this serviceid
try {
$result = $api_instance->writeDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->writeDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Will delete event attached to this serviceid | [optional] |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\InventoryClient\Model\Response writePost($event_request)
Will ovveride the current event of the specified service.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKey
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');
// Configure API key authorization: AccountID
InventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');
$api_instance = new InventoryClient\Api\DefaultApi();
$event_request = new \InventoryClient\Model\EventRequest(); // \InventoryClient\Model\EventRequest | Event to upload
try {
$result = $api_instance->writePost($event_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->writePost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| event_request | \InventoryClient\Model\EventRequest | Event to upload |
\InventoryClient\Model\Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]