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 classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.DeliveryZoneApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
DeliveryZoneApi apiInstance = new DeliveryZoneApi();
Integer storeId = 56; // Integer |
DeliveryZoneBase deliveryZoneBase = new DeliveryZoneBase(); // DeliveryZoneBase |
try {
RestApiResultDeliveryZone result = apiInstance.addDeliveryZone(storeId, deliveryZoneBase);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeliveryZoneApi#addDeliveryZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Integer | ||
| 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
RestApiArrayResultDeliveryZone getDeliveryZones(storeId)
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.DeliveryZoneApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
DeliveryZoneApi apiInstance = new DeliveryZoneApi();
Integer storeId = 56; // Integer |
try {
RestApiArrayResultDeliveryZone result = apiInstance.getDeliveryZones(storeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeliveryZoneApi#getDeliveryZones");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Integer |
RestApiArrayResultDeliveryZone
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
removeDeliveryZone(storeId, deliveryZoneId)
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.DeliveryZoneApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
DeliveryZoneApi apiInstance = new DeliveryZoneApi();
Integer storeId = 56; // Integer |
Integer deliveryZoneId = 56; // Integer |
try {
apiInstance.removeDeliveryZone(storeId, deliveryZoneId);
} catch (ApiException e) {
System.err.println("Exception when calling DeliveryZoneApi#removeDeliveryZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Integer | ||
| deliveryZoneId | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultDeliveryZone updateDeliveryZone(storeId, deliveryZoneId, deliveryZone)
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.DeliveryZoneApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
DeliveryZoneApi apiInstance = new DeliveryZoneApi();
Integer storeId = 56; // Integer |
Integer deliveryZoneId = 56; // Integer |
DeliveryZoneBase deliveryZone = new DeliveryZoneBase(); // DeliveryZoneBase |
try {
RestApiResultDeliveryZone result = apiInstance.updateDeliveryZone(storeId, deliveryZoneId, deliveryZone);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeliveryZoneApi#updateDeliveryZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | Integer | ||
| deliveryZoneId | Integer | ||
| 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