All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| archiveProduct | POST /api/v1.0/{appId}/catalog/products/{catalogItemId}/archive | Archive Product |
| createProduct | POST /api/v1.0/{appId}/catalog/products | Create a Product |
| duplicateProduct | POST /api/v1.0/{appId}/catalog/products/{catalogItemId}/duplicate | Duplicate Product |
| getProductById | GET /api/v1.0/{appId}/catalog/products/{catalogItemId} | Get Product by Id |
| getProducts | GET /api/v1.0/{appId}/catalog/products | Get paginated products by app name id filtered by types |
| updateProduct | POST /api/v1.0/{appId}/catalog/products/{catalogItemId} | Update Product |
archiveProduct(appId, catalogItemId)
Archive Product
[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.CatalogProductsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
apiInstance.archiveProduct(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
RestApiResultProduct createProduct(appId, createProduct)
Create a Product
[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.CatalogProductsApi();
let appId = "appId_example"; // String |
let createProduct = new Flipdish.CreateProduct(); // CreateProduct |
apiInstance.createProduct(appId, createProduct, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| createProduct | CreateProduct |
- 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, ProductType, Sku, Name, Description, Price, ImageFileName, Alcohol
duplicateProduct(appId, catalogItemId)
Duplicate Product
[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.CatalogProductsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
apiInstance.duplicateProduct(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
Product getProductById(appId, catalogItemId)
Get Product 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.CatalogProductsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
apiInstance.getProductById(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, ProductType, Sku, Name, Description, Price, ImageFileName, Alcohol
RestApiPaginationResultProduct getProducts(appId, productTypes, opts)
Get paginated products 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.CatalogProductsApi();
let appId = "appId_example"; // String |
let productTypes = ["null"]; // [String] |
let opts = {
'searchTerm': "searchTerm_example", // String |
'page': 56, // Number |
'limit': 56 // Number |
};
apiInstance.getProducts(appId, productTypes, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| productTypes | [String] | ||
| searchTerm | String | [optional] | |
| page | Number | [optional] | |
| limit | Number | [optional] |
RestApiPaginationResultProduct
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data
updateProduct(appId, catalogItemId, updateProduct)
Update Product
[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.CatalogProductsApi();
let appId = "appId_example"; // String |
let catalogItemId = "catalogItemId_example"; // String |
let updateProduct = new Flipdish.UpdateProduct(); // UpdateProduct |
apiInstance.updateProduct(appId, catalogItemId, updateProduct, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| catalogItemId | String | ||
| updateProduct | UpdateProduct |
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