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 |
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. |
void DeleteDigitalItem (int? digitalItemOid)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class DeleteDigitalItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var digitalItemOid = 56; // int? | The digital item oid to delete.
try
{
// Delete a digital item, which is a file within the digital library, not an actual merchant item
apiInstance.DeleteDigitalItem(digitalItemOid);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.DeleteDigitalItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
digitalItemOid | 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]
void DeleteItem (int? merchantItemOid)
Delete an item
Delete an item on the UltraCart account.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class DeleteItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var merchantItemOid = 56; // int? | The item oid to delete.
try
{
// Delete an item
apiInstance.DeleteItem(merchantItemOid);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.DeleteItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
merchantItemOid | 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]
void DeleteReview (int? reviewOid, int? merchantItemOid)
Delete a review
Delete an item review.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class DeleteReviewExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var reviewOid = 56; // int? | The review oid to delete.
var merchantItemOid = 56; // int? | The item oid the review is associated with.
try
{
// Delete a review
apiInstance.DeleteReview(reviewOid, merchantItemOid);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.DeleteReview: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
reviewOid | int? | The review oid to delete. | |
merchantItemOid | 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]
ItemDigitalItemResponse GetDigitalItem (int? digitalItemOid)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetDigitalItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var digitalItemOid = 56; // int? | The digital item oid to retrieve.
try
{
// Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
ItemDigitalItemResponse result = apiInstance.GetDigitalItem(digitalItemOid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetDigitalItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
digitalItemOid | int? | The digital item oid to retrieve. |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ItemDigitalItemsResponse GetDigitalItems (int? limit = null, int? offset = null, string since = null, string sort = null, string expand = null, bool? placeholders = null)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetDigitalItemsExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var limit = 56; // int? | The maximum number of records to return on this one API call. (Default 100, Max 2000) (optional) (default to 100)
var offset = 56; // int? | Pagination of the record set. Offset is a zero based index. (optional) (default to 0)
var since = since_example; // string | Fetch items that have been created/modified since this date/time. (optional)
var 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. (optional)
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
try
{
// Retrieve digital items from the digital library which are digital files that may be attached to normal items
ItemDigitalItemsResponse result = apiInstance.GetDigitalItems(limit, offset, since, sort, expand, placeholders);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetDigitalItems: " + e.Message );
}
}
}
}
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] |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ItemDigitalItemsResponse GetDigitalItemsByExternalId (string externalId)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetDigitalItemsByExternalIdExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var externalId = externalId_example; // string | The external id to match against.
try
{
// Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
ItemDigitalItemsResponse result = apiInstance.GetDigitalItemsByExternalId(externalId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetDigitalItemsByExternalId: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
externalId | string | The external id to match against. |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ItemResponse GetItem (int? merchantItemOid, string expand = null, bool? placeholders = null)
Retrieve an item
Retrieves a single item using the specified item oid.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var merchantItemOid = 56; // int? | The item oid to retrieve.
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
try
{
// Retrieve an item
ItemResponse result = apiInstance.GetItem(merchantItemOid, expand, placeholders);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
merchantItemOid | 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] |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ItemResponse GetItemByMerchantItemId (string merchantItemId, string expand = null, bool? placeholders = null)
Retrieve an item by item id
Retrieves a single item using the specified item id.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetItemByMerchantItemIdExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var merchantItemId = merchantItemId_example; // string | The item id to retrieve.
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
try
{
// Retrieve an item by item id
ItemResponse result = apiInstance.GetItemByMerchantItemId(merchantItemId, expand, placeholders);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetItemByMerchantItemId: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
merchantItemId | 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] |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ItemsResponse GetItems (int? parentCategoryId = null, string parentCategoryPath = null, int? limit = null, int? offset = null, string since = null, string sort = null, string expand = null, bool? placeholders = null)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetItemsExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var parentCategoryId = 56; // int? | The parent category object id to retrieve items for. Unspecified means all items on the account. 0 = root (optional)
var parentCategoryPath = parentCategoryPath_example; // string | The parent category path to retrieve items for. Unspecified means all items on the account. / = root (optional)
var limit = 56; // int? | The maximum number of records to return on this one API call. (Default 100, Max 2000) (optional) (default to 100)
var offset = 56; // int? | Pagination of the record set. Offset is a zero based index. (optional) (default to 0)
var since = since_example; // string | Fetch items that have been created/modified since this date/time. (optional)
var 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. (optional)
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
try
{
// Retrieve items
ItemsResponse result = apiInstance.GetItems(parentCategoryId, parentCategoryPath, limit, offset, since, sort, expand, placeholders);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetItems: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
parentCategoryId | int? | The parent category object id to retrieve items for. Unspecified means all items on the account. 0 = root | [optional] |
parentCategoryPath | 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] |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PricingTiersResponse GetPricingTiers (string expand = null)
Retrieve pricing tiers
Retrieves the pricing tiers
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetPricingTiersExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
try
{
// Retrieve pricing tiers
PricingTiersResponse result = apiInstance.GetPricingTiers(expand);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetPricingTiers: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
expand | string | The object expansion to perform on the result. See documentation for examples | [optional] |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ItemReviewResponse GetReview (int? reviewOid, int? merchantItemOid)
Get a review
Retrieve an item review.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetReviewExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var reviewOid = 56; // int? | The review oid to retrieve.
var merchantItemOid = 56; // int? | The item oid the review is associated with.
try
{
// Get a review
ItemReviewResponse result = apiInstance.GetReview(reviewOid, merchantItemOid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetReview: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
reviewOid | int? | The review oid to retrieve. | |
merchantItemOid | int? | The item oid the review is associated with. |
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]
ItemReviewsResponse GetReviews (int? merchantItemOid)
Get reviews for an item
Retrieve item reviews.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetReviewsExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var merchantItemOid = 56; // int? | The item oid the review is associated with.
try
{
// Get reviews for an item
ItemReviewsResponse result = apiInstance.GetReviews(merchantItemOid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetReviews: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
merchantItemOid | int? | The item oid the review is associated with. |
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]
ItemDigitalItemsResponse GetUnassociatedDigitalItems (int? limit = null, int? offset = null, string since = null, string sort = null, string expand = null, bool? placeholders = null)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class GetUnassociatedDigitalItemsExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var limit = 56; // int? | The maximum number of records to return on this one API call. (Default 100, Max 2000) (optional) (default to 100)
var offset = 56; // int? | Pagination of the record set. Offset is a zero based index. (optional) (default to 0)
var since = since_example; // string | Fetch items that have been created/modified since this date/time. (optional)
var 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. (optional)
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
try
{
// Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items
ItemDigitalItemsResponse result = apiInstance.GetUnassociatedDigitalItems(limit, offset, since, sort, expand, placeholders);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.GetUnassociatedDigitalItems: " + e.Message );
}
}
}
}
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] |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ItemDigitalItemResponse InsertDigitalItem (ItemDigitalItem digitalItem)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class InsertDigitalItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var digitalItem = new ItemDigitalItem(); // ItemDigitalItem | Digital item to create
try
{
// Create a file within the digital library
ItemDigitalItemResponse result = apiInstance.InsertDigitalItem(digitalItem);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.InsertDigitalItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
digitalItem | ItemDigitalItem | Digital item to create |
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]
ItemResponse InsertItem (Item item, string expand = null, bool? placeholders = null)
Create an item
Create a new item on the UltraCart account.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class InsertItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var item = new Item(); // Item | Item to create
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
try
{
// Create an item
ItemResponse result = apiInstance.InsertItem(item, expand, placeholders);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.InsertItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
item | 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] |
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]
ItemReviewResponse InsertReview (ItemReview review, int? merchantItemOid)
Insert a review
Insert a item review.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class InsertReviewExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var review = new ItemReview(); // ItemReview | Review to insert
var merchantItemOid = 56; // int? | The item oid the review is associated with.
try
{
// Insert a review
ItemReviewResponse result = apiInstance.InsertReview(review, merchantItemOid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.InsertReview: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
review | ItemReview | Review to insert | |
merchantItemOid | int? | The item oid the review is associated with. |
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]
void InsertUpdateItemContentAttribute (ItemContentAttribute itemAttribute, int? merchantItemOid)
Upsert an item content attribute
Update an item content attribute, creating it new if it does not yet exist.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class InsertUpdateItemContentAttributeExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var itemAttribute = new ItemContentAttribute(); // ItemContentAttribute | Item content attribute to upsert
var merchantItemOid = 56; // int? | The item oid to modify.
try
{
// Upsert an item content attribute
apiInstance.InsertUpdateItemContentAttribute(itemAttribute, merchantItemOid);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.InsertUpdateItemContentAttribute: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
itemAttribute | ItemContentAttribute | Item content attribute to upsert | |
merchantItemOid | 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]
ItemDigitalItemResponse UpdateDigitalItem (int? digitalItemOid, ItemDigitalItem digitalItem)
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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class UpdateDigitalItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var digitalItemOid = 56; // int? | The digital item oid to update.
var digitalItem = new ItemDigitalItem(); // ItemDigitalItem | Digital item to update
try
{
// Updates a file within the digital library
ItemDigitalItemResponse result = apiInstance.UpdateDigitalItem(digitalItemOid, digitalItem);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.UpdateDigitalItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
digitalItemOid | int? | The digital item oid to update. | |
digitalItem | ItemDigitalItem | Digital item to update |
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]
ItemResponse UpdateItem (Item item, int? merchantItemOid, string expand = null, bool? placeholders = null)
Update an item
Update a new item on the UltraCart account.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class UpdateItemExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var item = new Item(); // Item | Item to update
var merchantItemOid = 56; // int? | The item oid to update.
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
try
{
// Update an item
ItemResponse result = apiInstance.UpdateItem(item, merchantItemOid, expand, placeholders);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.UpdateItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
item | Item | Item to update | |
merchantItemOid | 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] |
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]
ItemsResponse UpdateItems (ItemsRequest itemsRequest, string expand = null, bool? placeholders = null, bool? async = null)
Update multiple items
Update multiple item on the UltraCart account.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class UpdateItemsExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var itemsRequest = new ItemsRequest(); // ItemsRequest | Items to update (synchronous maximum 20 / asynchronous maximum 100)
var expand = expand_example; // string | The object expansion to perform on the result. See documentation for examples (optional)
var placeholders = true; // bool? | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. (optional)
var async = true; // bool? | True if the operation should be run async. No result returned (optional)
try
{
// Update multiple items
ItemsResponse result = apiInstance.UpdateItems(itemsRequest, expand, placeholders, async);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.UpdateItems: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
itemsRequest | 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] |
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]
ItemReviewResponse UpdateReview (ItemReview review, int? reviewOid, int? merchantItemOid)
Update a review
Update an item review.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class UpdateReviewExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var review = new ItemReview(); // ItemReview | Review to update
var reviewOid = 56; // int? | The review oid to update.
var merchantItemOid = 56; // int? | The item oid the review is associated with.
try
{
// Update a review
ItemReviewResponse result = apiInstance.UpdateReview(review, reviewOid, merchantItemOid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.UpdateReview: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
review | ItemReview | Review to update | |
reviewOid | int? | The review oid to update. | |
merchantItemOid | int? | The item oid the review is associated with. |
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]
TempMultimediaResponse UploadTemporaryMultimedia (System.IO.Stream _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.
using System;
using System.Diagnostics;
using com.ultracart.admin.v2.Api;
using com.ultracart.admin.v2.Client;
using com.ultracart.admin.v2.Model;
namespace Example
{
public class UploadTemporaryMultimediaExample
{
public void main()
{
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
const string simpleKey = "109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00";
var api = new ItemApi(simpleKey);
var _file = new System.IO.Stream(); // System.IO.Stream | File to upload
try
{
// Upload an image to the temporary multimedia.
TempMultimediaResponse result = apiInstance.UploadTemporaryMultimedia(_file);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ItemApi.UploadTemporaryMultimedia: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
_file | System.IO.Stream | File to upload |
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]