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 (int? storeId, DeliveryZoneBase deliveryZoneBase)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class AddDeliveryZoneExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new DeliveryZoneApi();
var storeId = 56; // int? |
var deliveryZoneBase = new DeliveryZoneBase(); // DeliveryZoneBase |
try
{
RestApiResultDeliveryZone result = apiInstance.AddDeliveryZone(storeId, deliveryZoneBase);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DeliveryZoneApi.AddDeliveryZone: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | int? | ||
| 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class GetDeliveryZonesExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new DeliveryZoneApi();
var storeId = 56; // int? |
try
{
RestApiArrayResultDeliveryZone result = apiInstance.GetDeliveryZones(storeId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DeliveryZoneApi.GetDeliveryZones: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | int? |
RestApiArrayResultDeliveryZone
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void RemoveDeliveryZone (int? storeId, int? deliveryZoneId)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class RemoveDeliveryZoneExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new DeliveryZoneApi();
var storeId = 56; // int? |
var deliveryZoneId = 56; // int? |
try
{
apiInstance.RemoveDeliveryZone(storeId, deliveryZoneId);
}
catch (Exception e)
{
Debug.Print("Exception when calling DeliveryZoneApi.RemoveDeliveryZone: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | int? | ||
| deliveryZoneId | int? |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class UpdateDeliveryZoneExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new DeliveryZoneApi();
var storeId = 56; // int? |
var deliveryZoneId = 56; // int? |
var deliveryZone = new DeliveryZoneBase(); // DeliveryZoneBase |
try
{
RestApiResultDeliveryZone result = apiInstance.UpdateDeliveryZone(storeId, deliveryZoneId, deliveryZone);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DeliveryZoneApi.UpdateDeliveryZone: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | int? | ||
| deliveryZoneId | int? | ||
| 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]