All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| getStoreOrderCapacity | GET /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | |
| updateStoreOrderCapacityConfig | POST /api/v1.0/{appId}/storeordercapacity/{storeId} |
RestApiResultStoreOrderCapacityConfig getStoreOrderCapacity(appId, storeId, deliveryType)
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.StoreOrderCapacityApi();
let appId = "appId_example"; // String |
let storeId = 56; // Number |
let deliveryType = "deliveryType_example"; // String |
apiInstance.getStoreOrderCapacity(appId, storeId, deliveryType, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| storeId | Number | ||
| deliveryType | String |
RestApiResultStoreOrderCapacityConfig
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data
updateStoreOrderCapacityConfig(storeId, deliveryType, appId, newOrderCapacityConfig)
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.StoreOrderCapacityApi();
let storeId = 56; // Number |
let deliveryType = "deliveryType_example"; // String |
let appId = "appId_example"; // String |
let newOrderCapacityConfig = new Flipdish.StoreOrderCapacityConfigEditModel(); // StoreOrderCapacityConfigEditModel |
apiInstance.updateStoreOrderCapacityConfig(storeId, deliveryType, appId, newOrderCapacityConfig, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Number | ||
| deliveryType | String | ||
| appId | String | ||
| newOrderCapacityConfig | StoreOrderCapacityConfigEditModel |
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