Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 2.85 KB

PromotionApi.md

File metadata and controls

82 lines (61 loc) · 2.85 KB

Yaksa.OrckestraCommerce.Client.Api.PromotionApi

All URIs are relative to https://dev-ocs-cm.develop.orckestra.cloud/api

Method HTTP request Description
ProcessPromotionEngineRequestenginePost POST /promotion/engine/ Invoke the promotions evaluation of a given Cart - {ProcessPromotionEngineRequest}

ProcessPromotionEngineRequestenginePost

PromotionEngineResult ProcessPromotionEngineRequestenginePost (string accept, ProcessPromotionEngineRequest body = null)

Invoke the promotions evaluation of a given Cart - {ProcessPromotionEngineRequest}

Invoke the promotions evaluation of a given Cart

Example

using System.Collections.Generic;
using System.Diagnostics;
using Yaksa.OrckestraCommerce.Client.Api;
using Yaksa.OrckestraCommerce.Client.Client;
using Yaksa.OrckestraCommerce.Client.Model;

namespace Example
{
    public class ProcessPromotionEngineRequestenginePostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://dev-ocs-cm.develop.orckestra.cloud/api";
            var apiInstance = new PromotionApi(config);
            var accept = accept_example;  // string | Accept Header
            var body = new ProcessPromotionEngineRequest(); // ProcessPromotionEngineRequest |  (optional) 

            try
            {
                // Invoke the promotions evaluation of a given Cart - {ProcessPromotionEngineRequest}
                PromotionEngineResult result = apiInstance.ProcessPromotionEngineRequestenginePost(accept, body);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling PromotionApi.ProcessPromotionEngineRequestenginePost: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
accept string Accept Header
body ProcessPromotionEngineRequest [optional]

Return type

PromotionEngineResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Success -

[Back to top] [Back to API list] [Back to Model list] [Back to README]