All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| addDeliveryZone | POST /api/v1.0/stores/{storeId}/deliveryzones | |
| getDeliveryZones | GET /api/v1.0/stores/{storeId}/deliveryzones | |
| removeDeliveryZone | DELETE /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | |
| updateDeliveryZone | POST /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} |
RestApiResultDeliveryZone addDeliveryZone(storeId, deliveryZoneBase)
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.DeliveryZoneApi();
let storeId = 56; // Number |
let deliveryZoneBase = new Flipdish.DeliveryZoneBase(); // DeliveryZoneBase |
apiInstance.addDeliveryZone(storeId, deliveryZoneBase, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Number | ||
| deliveryZoneBase | DeliveryZoneBase |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data
RestApiArrayResultDeliveryZone getDeliveryZones(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.DeliveryZoneApi();
let storeId = 56; // Number |
apiInstance.getDeliveryZones(storeId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Number |
RestApiArrayResultDeliveryZone
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data
removeDeliveryZone(storeId, deliveryZoneId)
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.DeliveryZoneApi();
let storeId = 56; // Number |
let deliveryZoneId = 56; // Number |
apiInstance.removeDeliveryZone(storeId, deliveryZoneId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Number | ||
| deliveryZoneId | Number |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultDeliveryZone updateDeliveryZone(storeId, deliveryZoneId, deliveryZone)
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.DeliveryZoneApi();
let storeId = 56; // Number |
let deliveryZoneId = 56; // Number |
let deliveryZone = new Flipdish.DeliveryZoneBase(); // DeliveryZoneBase |
apiInstance.updateDeliveryZone(storeId, deliveryZoneId, deliveryZone, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Number | ||
| deliveryZoneId | Number | ||
| deliveryZone | DeliveryZoneBase |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data