All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| archiveCatalogItem | POST /api/v1.0/{appId}/catalog/items/{catalogItemId}/archive | Archive Catalog Item |
| createCatalogItem | POST /api/v1.0/{appId}/catalog/items | Create a Catalog Item |
| duplicateCatalogItem | POST /api/v1.0/{appId}/catalog/items/{catalogItemId}/duplicate | Duplicate Catalog Item |
| getCatalogItemById | GET /api/v1.0/{appId}/catalog/items/{catalogItemId} | Get item by Id |
| getItems | GET /api/v1.0/{appId}/catalog/items | Get paginated items by app name id filtered by types |
| updateCatalogItem | POST /api/v1.0/{appId}/catalog/items/{catalogItemId} | Update Catalog Item |
archiveCatalogItem(appId, catalogItemId)
Archive Catalog Item
[BETA - this endpoint is under development, do not use it in your production system]
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CatalogItemsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
apiInstance.archiveCatalogItem(appId, catalogItemId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| catalogItemId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultCatalogItem createCatalogItem(appId, createCatalogItem)
Create a Catalog Item
[BETA - this endpoint is under development, do not use it in your production system]
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CatalogItemsApi();
let appId = "appId_example"; // String |
let createCatalogItem = new Flipdish.CreateCatalogItem(); // CreateCatalogItem |
apiInstance.createCatalogItem(appId, createCatalogItem, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| createCatalogItem | CreateCatalogItem |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, CatalogItemId, IsArchived, Groups, ItemType, Sku, Name, Description, Price, ImageFileName, Alcohol
duplicateCatalogItem(appId, catalogItemId)
Duplicate Catalog Item
[BETA - this endpoint is under development, do not use it in your production system]
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CatalogItemsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
apiInstance.duplicateCatalogItem(appId, catalogItemId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| catalogItemId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
CatalogItem getCatalogItemById(appId, catalogItemId)
Get item by Id
[BETA - this endpoint is under development, do not use it in your production system]
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CatalogItemsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
apiInstance.getCatalogItemById(appId, catalogItemId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| catalogItemId | String |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, CatalogItemId, IsArchived, Groups, ItemType, Sku, Name, Description, Price, ImageFileName, Alcohol
RestApiPaginationResultCatalogItem getItems(appId, itemTypes, opts)
Get paginated items by app name id filtered by types
[BETA - this endpoint is under development, do not use it in your production system]
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CatalogItemsApi();
let appId = "appId_example"; // String |
let itemTypes = ["null"]; // [String] |
let opts = {
'searchTerm': "searchTerm_example", // String |
'page': 56, // Number |
'limit': 56 // Number |
};
apiInstance.getItems(appId, itemTypes, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| itemTypes | [String] | ||
| searchTerm | String | [optional] | |
| page | Number | [optional] | |
| limit | Number | [optional] |
RestApiPaginationResultCatalogItem
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data
updateCatalogItem(appId, catalogItemId, updateCatalogItem)
Update Catalog Item
[BETA - this endpoint is under development, do not use it in your production system]
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CatalogItemsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
let updateCatalogItem = new Flipdish.UpdateCatalogItem(); // UpdateCatalogItem |
apiInstance.updateCatalogItem(appId, catalogItemId, updateCatalogItem, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| catalogItemId | String | ||
| updateCatalogItem | UpdateCatalogItem |
null (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml