All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| createLocation | POST /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location | |
| deleteLocation | DELETE /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete | |
| mapLocationToExternalId | POST /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external | |
| moveLocation | POST /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move | |
| updateLocation | POST /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update |
Object createLocation(locationAreaId, appId, storeId, createLocationInput)
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.LocationApi();
let locationAreaId = 56; // Number |
let appId = "appId_example"; // String |
let storeId = 56; // Number |
let createLocationInput = [new Flipdish.CreateLocation()]; // [CreateLocation] |
apiInstance.createLocation(locationAreaId, appId, storeId, createLocationInput, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| locationAreaId | Number | ||
| appId | String | ||
| storeId | Number | ||
| createLocationInput | [CreateLocation] |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
Object deleteLocation(locationId, locationAreaId, appId, storeId)
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.LocationApi();
let locationId = 56; // Number |
let locationAreaId = 56; // Number |
let appId = "appId_example"; // String |
let storeId = 56; // Number |
apiInstance.deleteLocation(locationId, locationAreaId, appId, storeId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| locationId | Number | ||
| locationAreaId | Number | ||
| appId | String | ||
| storeId | Number |
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultMappedLocation mapLocationToExternalId(locationId, locationAreaId, appId, storeId, opts)
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.LocationApi();
let locationId = 56; // Number |
let locationAreaId = 56; // Number |
let appId = "appId_example"; // String |
let storeId = 56; // Number |
let opts = {
'externalLocationId': "externalLocationId_example" // String |
};
apiInstance.mapLocationToExternalId(locationId, locationAreaId, appId, storeId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| locationId | Number | ||
| locationAreaId | Number | ||
| appId | String | ||
| storeId | Number | ||
| externalLocationId | String | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object moveLocation(locationId, locationAreaId, newLocationAreaId, appId, storeId)
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.LocationApi();
let locationId = 56; // Number |
let locationAreaId = 56; // Number |
let newLocationAreaId = 56; // Number |
let appId = "appId_example"; // String |
let storeId = 56; // Number |
apiInstance.moveLocation(locationId, locationAreaId, newLocationAreaId, appId, storeId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| locationId | Number | ||
| locationAreaId | Number | ||
| newLocationAreaId | Number | ||
| appId | String | ||
| storeId | Number |
Object
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultLocationAreaLocation updateLocation(locationAreaId, locationId, appId, storeId, updateLocationInput)
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.LocationApi();
let locationAreaId = 56; // Number |
let locationId = 56; // Number |
let appId = "appId_example"; // String |
let storeId = 56; // Number |
let updateLocationInput = new Flipdish.CreateLocation(); // CreateLocation |
apiInstance.updateLocation(locationAreaId, locationId, appId, storeId, updateLocationInput, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| locationAreaId | Number | ||
| locationId | Number | ||
| appId | String | ||
| storeId | Number | ||
| updateLocationInput | CreateLocation |
RestApiResultLocationAreaLocation
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml