All URIs are relative to https://secure.ultracart.com/rest/v2
Method | HTTP request | Description |
---|---|---|
deleteDigitalItem | DELETE /item/digital_library/{digital_item_oid} | Delete a digital item, which is a file within the digital library, not an actual merchant item |
deleteItem | DELETE /item/items/{merchant_item_oid} | Delete an item |
deleteReview | DELETE /item/items/{merchant_item_oid}/reviews/{review_oid} | Delete a review |
getDigitalItem | GET /item/digital_library/{digital_item_oid} | Retrieve a digital item from the digital library, which are digital files that may be attached to normal items |
getDigitalItems | GET /item/digital_library | Retrieve digital items from the digital library which are digital files that may be attached to normal items |
getDigitalItemsByExternalId | GET /item/digital_library/by_external/{external_id} | Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id |
getItem | GET /item/items/{merchant_item_oid} | Retrieve an item |
getItemByMerchantItemId | GET /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id |
getItems | GET /item/items | Retrieve items |
getPricingTiers | GET /item/pricing_tiers | Retrieve pricing tiers |
getReview | GET /item/items/{merchant_item_oid}/reviews/{review_oid} | Get a review |
getReviews | GET /item/items/{merchant_item_oid}/reviews | Get reviews for an item |
getUnassociatedDigitalItems | GET /item/digital_library/unassociated | Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items |
insertDigitalItem | POST /item/digital_library | Create a file within the digital library |
insertItem | POST /item/items | Create an item |
insertReview | POST /item/items/{merchant_item_oid}/reviews | Insert a review |
insertUpdateItemContentAttribute | POST /item/items/{merchant_item_oid}/content/attributes | Upsert an item content attribute |
restItemInventorySnapshotResponse | GET /item/items/inventory_snapshot | Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response. |
updateDigitalItem | PUT /item/digital_library/{digital_item_oid} | Updates a file within the digital library |
updateItem | PUT /item/items/{merchant_item_oid} | Update an item |
updateItems | PUT /item/items/batch | Update multiple items |
updateReview | PUT /item/items/{merchant_item_oid}/reviews/{review_oid} | Update a review |
uploadTemporaryMultimedia | POST /item/temp_multimedia | Upload an image to the temporary multimedia. |
deleteDigitalItem($digital_item_oid)
Delete a digital item, which is a file within the digital library, not an actual merchant item
Delete a digital item on the UltraCart account.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$digital_item_oid = 56; // int | The digital item oid to delete.
try {
$apiInstance->deleteDigitalItem($digital_item_oid);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->deleteDigitalItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
digital_item_oid | int | The digital item oid to delete. |
void (empty response body)
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteItem($merchant_item_oid)
Delete an item
Delete an item on the UltraCart account.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$merchant_item_oid = 56; // int | The item oid to delete.
try {
$apiInstance->deleteItem($merchant_item_oid);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->deleteItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_item_oid | int | The item oid to delete. |
void (empty response body)
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteReview($review_oid, $merchant_item_oid)
Delete a review
Delete an item review.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$review_oid = 56; // int | The review oid to delete.
$merchant_item_oid = 56; // int | The item oid the review is associated with.
try {
$apiInstance->deleteReview($review_oid, $merchant_item_oid);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->deleteReview: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
review_oid | int | The review oid to delete. | |
merchant_item_oid | int | The item oid the review is associated with. |
void (empty response body)
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemDigitalItemResponse getDigitalItem($digital_item_oid)
Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
Retrieves a digital item (file information) from the account. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$digital_item_oid = 56; // int | The digital item oid to retrieve.
try {
$result = $apiInstance->getDigitalItem($digital_item_oid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getDigitalItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
digital_item_oid | int | The digital item oid to retrieve. |
\ultracart\v2\models\ItemDigitalItemResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemDigitalItemsResponse getDigitalItems($_limit, $_offset, $_since, $_sort, $_expand, $_placeholders)
Retrieve digital items from the digital library which are digital files that may be attached to normal items
Retrieves a group of digital items (file information) from the account. If no parameters are specified, all digital items will be returned. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$_limit = 100; // int | The maximum number of records to return on this one API call. (Default 100, Max 2000)
$_offset = 0; // int | Pagination of the record set. Offset is a zero based index.
$_since = "_since_example"; // string | Fetch items that have been created/modified since this date/time.
$_sort = "_sort_example"; // string | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
try {
$result = $apiInstance->getDigitalItems($_limit, $_offset, $_since, $_sort, $_expand, $_placeholders);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getDigitalItems: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
_limit | int | The maximum number of records to return on this one API call. (Default 100, Max 2000) | [optional] [default to 100] |
_offset | int | Pagination of the record set. Offset is a zero based index. | [optional] [default to 0] |
_since | string | Fetch items that have been created/modified since this date/time. | [optional] |
_sort | string | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
\ultracart\v2\models\ItemDigitalItemsResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemDigitalItemsResponse getDigitalItemsByExternalId($external_id)
Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$external_id = "external_id_example"; // string | The external id to match against.
try {
$result = $apiInstance->getDigitalItemsByExternalId($external_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getDigitalItemsByExternalId: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
external_id | string | The external id to match against. |
\ultracart\v2\models\ItemDigitalItemsResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemResponse getItem($merchant_item_oid, $_expand, $_placeholders)
Retrieve an item
Retrieves a single item using the specified item oid.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$merchant_item_oid = 56; // int | The item oid to retrieve.
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
try {
$result = $apiInstance->getItem($merchant_item_oid, $_expand, $_placeholders);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_item_oid | int | The item oid to retrieve. | |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
\ultracart\v2\models\ItemResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemResponse getItemByMerchantItemId($merchant_item_id, $_expand, $_placeholders)
Retrieve an item by item id
Retrieves a single item using the specified item id.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$merchant_item_id = "merchant_item_id_example"; // string | The item id to retrieve.
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
try {
$result = $apiInstance->getItemByMerchantItemId($merchant_item_id, $_expand, $_placeholders);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getItemByMerchantItemId: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_item_id | string | The item id to retrieve. | |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
\ultracart\v2\models\ItemResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemsResponse getItems($parent_category_id, $parent_category_path, $_limit, $_offset, $_since, $_sort, $_expand, $_placeholders)
Retrieve items
Retrieves a group of items from the account. If no parameters are specified, all items will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$parent_category_id = 56; // int | The parent category object id to retrieve items for. Unspecified means all items on the account. 0 = root
$parent_category_path = "parent_category_path_example"; // string | The parent category path to retrieve items for. Unspecified means all items on the account. / = root
$_limit = 100; // int | The maximum number of records to return on this one API call. (Default 100, Max 2000)
$_offset = 0; // int | Pagination of the record set. Offset is a zero based index.
$_since = "_since_example"; // string | Fetch items that have been created/modified since this date/time.
$_sort = "_sort_example"; // string | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
try {
$result = $apiInstance->getItems($parent_category_id, $parent_category_path, $_limit, $_offset, $_since, $_sort, $_expand, $_placeholders);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getItems: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
parent_category_id | int | The parent category object id to retrieve items for. Unspecified means all items on the account. 0 = root | [optional] |
parent_category_path | string | The parent category path to retrieve items for. Unspecified means all items on the account. / = root | [optional] |
_limit | int | The maximum number of records to return on this one API call. (Default 100, Max 2000) | [optional] [default to 100] |
_offset | int | Pagination of the record set. Offset is a zero based index. | [optional] [default to 0] |
_since | string | Fetch items that have been created/modified since this date/time. | [optional] |
_sort | string | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
\ultracart\v2\models\ItemsResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\PricingTiersResponse getPricingTiers($_expand)
Retrieve pricing tiers
Retrieves the pricing tiers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
try {
$result = $apiInstance->getPricingTiers($_expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getPricingTiers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
\ultracart\v2\models\PricingTiersResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemReviewResponse getReview($review_oid, $merchant_item_oid)
Get a review
Retrieve an item review.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$review_oid = 56; // int | The review oid to retrieve.
$merchant_item_oid = 56; // int | The item oid the review is associated with.
try {
$result = $apiInstance->getReview($review_oid, $merchant_item_oid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getReview: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
review_oid | int | The review oid to retrieve. | |
merchant_item_oid | int | The item oid the review is associated with. |
\ultracart\v2\models\ItemReviewResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemReviewsResponse getReviews($merchant_item_oid)
Get reviews for an item
Retrieve item reviews.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$merchant_item_oid = 56; // int | The item oid the review is associated with.
try {
$result = $apiInstance->getReviews($merchant_item_oid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getReviews: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_item_oid | int | The item oid the review is associated with. |
\ultracart\v2\models\ItemReviewsResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemDigitalItemsResponse getUnassociatedDigitalItems($_limit, $_offset, $_since, $_sort, $_expand, $_placeholders)
Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items
Retrieves a group of digital items (file information) from the account that are not yet associated with any actual items. If no parameters are specified, all digital items will be returned. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$_limit = 100; // int | The maximum number of records to return on this one API call. (Default 100, Max 2000)
$_offset = 0; // int | Pagination of the record set. Offset is a zero based index.
$_since = "_since_example"; // string | Fetch items that have been created/modified since this date/time.
$_sort = "_sort_example"; // string | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
try {
$result = $apiInstance->getUnassociatedDigitalItems($_limit, $_offset, $_since, $_sort, $_expand, $_placeholders);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->getUnassociatedDigitalItems: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
_limit | int | The maximum number of records to return on this one API call. (Default 100, Max 2000) | [optional] [default to 100] |
_offset | int | Pagination of the record set. Offset is a zero based index. | [optional] [default to 0] |
_since | string | Fetch items that have been created/modified since this date/time. | [optional] |
_sort | string | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
\ultracart\v2\models\ItemDigitalItemsResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemDigitalItemResponse insertDigitalItem($digital_item)
Create a file within the digital library
Create a file within the digital library. This does not create an item, but makes this digital file available and selectable as part (or all) of an item.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$digital_item = new \ultracart\v2\models\ItemDigitalItem(); // \ultracart\v2\models\ItemDigitalItem | Digital item to create
try {
$result = $apiInstance->insertDigitalItem($digital_item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->insertDigitalItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
digital_item | \ultracart\v2\models\ItemDigitalItem | Digital item to create |
\ultracart\v2\models\ItemDigitalItemResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemResponse insertItem($item, $_expand, $_placeholders)
Create an item
Create a new item on the UltraCart account.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$item = new \ultracart\v2\models\Item(); // \ultracart\v2\models\Item | Item to create
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
try {
$result = $apiInstance->insertItem($item, $_expand, $_placeholders);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->insertItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
item | \ultracart\v2\models\Item | Item to create | |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
\ultracart\v2\models\ItemResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemReviewResponse insertReview($review, $merchant_item_oid)
Insert a review
Insert a item review.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$review = new \ultracart\v2\models\ItemReview(); // \ultracart\v2\models\ItemReview | Review to insert
$merchant_item_oid = 56; // int | The item oid the review is associated with.
try {
$result = $apiInstance->insertReview($review, $merchant_item_oid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->insertReview: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
review | \ultracart\v2\models\ItemReview | Review to insert | |
merchant_item_oid | int | The item oid the review is associated with. |
\ultracart\v2\models\ItemReviewResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
insertUpdateItemContentAttribute($item_attribute, $merchant_item_oid)
Upsert an item content attribute
Update an item content attribute, creating it new if it does not yet exist.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$item_attribute = new \ultracart\v2\models\ItemContentAttribute(); // \ultracart\v2\models\ItemContentAttribute | Item content attribute to upsert
$merchant_item_oid = 56; // int | The item oid to modify.
try {
$apiInstance->insertUpdateItemContentAttribute($item_attribute, $merchant_item_oid);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->insertUpdateItemContentAttribute: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
item_attribute | \ultracart\v2\models\ItemContentAttribute | Item content attribute to upsert | |
merchant_item_oid | int | The item oid to modify. |
void (empty response body)
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemInventorySnapshotResponse restItemInventorySnapshotResponse()
Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
try {
$result = $apiInstance->restItemInventorySnapshotResponse();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->restItemInventorySnapshotResponse: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\ultracart\v2\models\ItemInventorySnapshotResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemDigitalItemResponse updateDigitalItem($digital_item_oid, $digital_item)
Updates a file within the digital library
Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$digital_item_oid = 56; // int | The digital item oid to update.
$digital_item = new \ultracart\v2\models\ItemDigitalItem(); // \ultracart\v2\models\ItemDigitalItem | Digital item to update
try {
$result = $apiInstance->updateDigitalItem($digital_item_oid, $digital_item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->updateDigitalItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
digital_item_oid | int | The digital item oid to update. | |
digital_item | \ultracart\v2\models\ItemDigitalItem | Digital item to update |
\ultracart\v2\models\ItemDigitalItemResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemResponse updateItem($item, $merchant_item_oid, $_expand, $_placeholders)
Update an item
Update a new item on the UltraCart account.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$item = new \ultracart\v2\models\Item(); // \ultracart\v2\models\Item | Item to update
$merchant_item_oid = 56; // int | The item oid to update.
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
try {
$result = $apiInstance->updateItem($item, $merchant_item_oid, $_expand, $_placeholders);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->updateItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
item | \ultracart\v2\models\Item | Item to update | |
merchant_item_oid | int | The item oid to update. | |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
\ultracart\v2\models\ItemResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemsResponse updateItems($items_request, $_expand, $_placeholders, $_async)
Update multiple items
Update multiple item on the UltraCart account.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$items_request = new \ultracart\v2\models\ItemsRequest(); // \ultracart\v2\models\ItemsRequest | Items to update (synchronous maximum 20 / asynchronous maximum 100)
$_expand = "_expand_example"; // string | The object expansion to perform on the result. See documentation for examples
$_placeholders = true; // bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
$_async = true; // bool | True if the operation should be run async. No result returned
try {
$result = $apiInstance->updateItems($items_request, $_expand, $_placeholders, $_async);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->updateItems: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
items_request | \ultracart\v2\models\ItemsRequest | Items to update (synchronous maximum 20 / asynchronous maximum 100) | |
_expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
_placeholders | bool | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
_async | bool | True if the operation should be run async. No result returned | [optional] |
\ultracart\v2\models\ItemsResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\ItemReviewResponse updateReview($review, $review_oid, $merchant_item_oid)
Update a review
Update an item review.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$review = new \ultracart\v2\models\ItemReview(); // \ultracart\v2\models\ItemReview | Review to update
$review_oid = 56; // int | The review oid to update.
$merchant_item_oid = 56; // int | The item oid the review is associated with.
try {
$result = $apiInstance->updateReview($review, $review_oid, $merchant_item_oid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->updateReview: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
review | \ultracart\v2\models\ItemReview | Review to update | |
review_oid | int | The review oid to update. | |
merchant_item_oid | int | The item oid the review is associated with. |
\ultracart\v2\models\ItemReviewResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json; charset=UTF-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\TempMultimediaResponse uploadTemporaryMultimedia($file)
Upload an image to the temporary multimedia.
Uploads an image and returns back meta information about the image as well as the identifier needed for the item update.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\ItemApi::usingApiKey($simple_key);
$file = "/path/to/file.txt"; // \SplFileObject | File to upload
try {
$result = $apiInstance->uploadTemporaryMultimedia($file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ItemApi->uploadTemporaryMultimedia: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
file | \SplFileObject | File to upload |
\ultracart\v2\models\TempMultimediaResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]