Skip to content

Latest commit

 

History

History
140 lines (104 loc) · 4.01 KB

File metadata and controls

140 lines (104 loc) · 4.01 KB

Flipdish.Api.OrderBatchesApi

All URIs are relative to https://api.flipdish.co

Method HTTP request Description
GetAllOrderBatches GET /api/v1.0/{appId}/order-batches
GetOrderBatch GET /api/v1.0/{appId}/order-batches/{orderBatchId}

GetAllOrderBatches

RestApiArrayResultOrderBatch GetAllOrderBatches (string appId, List<int?> storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null)

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class GetAllOrderBatchesExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrderBatchesApi();
            var appId = appId_example;  // string | 
            var storeIds = new List<int?>(); // List<int?> |  (optional) 
            var createdFrom = 2013-10-20T19:20:30+01:00;  // DateTime? |  (optional) 
            var createdTo = 2013-10-20T19:20:30+01:00;  // DateTime? |  (optional) 

            try
            {
                RestApiArrayResultOrderBatch result = apiInstance.GetAllOrderBatches(appId, storeIds, createdFrom, createdTo);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrderBatchesApi.GetAllOrderBatches: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
appId string
storeIds List<int?> [optional]
createdFrom DateTime? [optional]
createdTo DateTime? [optional]

Return type

RestApiArrayResultOrderBatch

Authorization

oauth2

HTTP request headers

  • 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]

GetOrderBatch

RestApiResultOrderBatch GetOrderBatch (string appId, int? orderBatchId)

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class GetOrderBatchExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new OrderBatchesApi();
            var appId = appId_example;  // string | 
            var orderBatchId = 56;  // int? | 

            try
            {
                RestApiResultOrderBatch result = apiInstance.GetOrderBatch(appId, orderBatchId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrderBatchesApi.GetOrderBatch: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
appId string
orderBatchId int?

Return type

RestApiResultOrderBatch

Authorization

oauth2

HTTP request headers

  • 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]