All URIs are relative to https://api.ordercloud.io/v1
Method | HTTP request | Description |
---|---|---|
Create | POST /catalogs/{catalogID}/categories | |
Delete | DELETE /catalogs/{catalogID}/categories/{categoryID} | |
DeleteAssignment | DELETE /catalogs/{catalogID}/categories/{categoryID}/assignments | |
DeleteProductAssignment | DELETE /catalogs/{catalogID}/categories/{categoryID}/productassignments/{productID} | |
Get | GET /catalogs/{catalogID}/categories/{categoryID} | |
List | GET /catalogs/{catalogID}/categories | |
ListAssignments | GET /catalogs/{catalogID}/categories/assignments | |
ListProductAssignments | GET /catalogs/{catalogID}/categories/productassignments | |
Patch | PATCH /catalogs/{catalogID}/categories/{categoryID} | |
Save | PUT /catalogs/{catalogID}/categories/{categoryID} | |
SaveAssignment | POST /catalogs/{catalogID}/categories/assignments | |
SaveProductAssignment | POST /catalogs/{catalogID}/categories/productassignments |
Category Create(catalogID, category)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var category = new OrderCloud.Category(); // Category |
apiInstance.Create(catalogID, category).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
category | Category |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Delete(catalogID, categoryID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryID = "categoryID_example"; // String | ID of the category.
apiInstance.Delete(catalogID, categoryID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
DeleteAssignment(catalogID, categoryID, buyerID, opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryID = "categoryID_example"; // String | ID of the category.
var buyerID = "buyerID_example"; // String | ID of the buyer.
var opts = {
'userID': "userID_example", // String | ID of the user.
'userGroupID': "userGroupID_example" // String | ID of the user group.
};
apiInstance.DeleteAssignment(catalogID, categoryID, buyerID, opts).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. | |
buyerID | String | ID of the buyer. | |
userID | String | ID of the user. | [optional] |
userGroupID | String | ID of the user group. | [optional] |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
DeleteProductAssignment(catalogID, categoryID, productID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryID = "categoryID_example"; // String | ID of the category.
var productID = "productID_example"; // String | ID of the product.
apiInstance.DeleteProductAssignment(catalogID, categoryID, productID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. | |
productID | String | ID of the product. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Category Get(catalogID, categoryID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryID = "categoryID_example"; // String | ID of the category.
apiInstance.Get(catalogID, categoryID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListCategory List(catalogID, opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var opts = {
'depth': "depth_example", // String | Depth of the category.
'search': "search_example", // String | Word or phrase to search for.
'searchOn': "searchOn_example", // String | Comma-delimited list of fields to search on.
'sortBy': "sortBy_example", // String | Comma-delimited list of fields to sort by.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
'filters': {key: "filters_example"} // {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
};
apiInstance.List(catalogID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
depth | String | Depth of the category. | [optional] |
search | String | Word or phrase to search for. | [optional] |
searchOn | String | Comma-delimited list of fields to search on. | [optional] |
sortBy | String | Comma-delimited list of fields to sort by. | [optional] |
page | Number | Page of results to return. Default: 1 | [optional] |
pageSize | Number | Number of results to return per page. Default: 20, max: 100. | [optional] |
filters | {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???' | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListCategoryAssignment ListAssignments(catalogID, opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var opts = {
'categoryID': "categoryID_example", // String | ID of the category.
'buyerID': "buyerID_example", // String | ID of the buyer.
'userID': "userID_example", // String | ID of the user.
'userGroupID': "userGroupID_example", // String | ID of the user group.
'level': "level_example", // String | Level of the category assignment. Possible values: User, Group, Company.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56 // Number | Number of results to return per page. Default: 20, max: 100.
};
apiInstance.ListAssignments(catalogID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. | [optional] |
buyerID | String | ID of the buyer. | [optional] |
userID | String | ID of the user. | [optional] |
userGroupID | String | ID of the user group. | [optional] |
level | String | Level of the category assignment. Possible values: User, Group, Company. | [optional] |
page | Number | Page of results to return. Default: 1 | [optional] |
pageSize | Number | Number of results to return per page. Default: 20, max: 100. | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListCategoryProductAssignment ListProductAssignments(catalogID, opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var opts = {
'categoryID': "categoryID_example", // String | ID of the category.
'productID': "productID_example", // String | ID of the product.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56 // Number | Number of results to return per page. Default: 20, max: 100.
};
apiInstance.ListProductAssignments(catalogID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. | [optional] |
productID | String | ID of the product. | [optional] |
page | Number | Page of results to return. Default: 1 | [optional] |
pageSize | Number | Number of results to return per page. Default: 20, max: 100. | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Category Patch(catalogID, categoryID, partialCategory)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryID = "categoryID_example"; // String | ID of the category.
var partialCategory = new OrderCloud.Category(); // Category |
apiInstance.Patch(catalogID, categoryID, partialCategory).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. | |
partialCategory | Category |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Category Save(catalogID, categoryID, category)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryID = "categoryID_example"; // String | ID of the category.
var category = new OrderCloud.Category(); // Category |
apiInstance.Save(catalogID, categoryID, category).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryID | String | ID of the category. | |
category | Category |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
SaveAssignment(catalogID, categoryAssignment)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryAssignment = new OrderCloud.CategoryAssignment(); // CategoryAssignment |
apiInstance.SaveAssignment(catalogID, categoryAssignment).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryAssignment | CategoryAssignment |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
SaveProductAssignment(catalogID, categoryProductAssignment)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Categories();
var catalogID = "catalogID_example"; // String | ID of the catalog.
var categoryProductAssignment = new OrderCloud.CategoryProductAssignment(); // CategoryProductAssignment |
apiInstance.SaveProductAssignment(catalogID, categoryProductAssignment).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
catalogID | String | ID of the catalog. | |
categoryProductAssignment | CategoryProductAssignment |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json