Thank you guys for your help in this. I was able to get this to work. My code is below. One final question if anyone would be so kind to answer. I had to download/install RestSharp to the client obviously. Do I have to do this to each machine that will use this BPM? Is this the main reason why you should always use Epicor Functions Maint? Should I use Functions Maint and get RestSharp on the server? Should you never use RestSharp? Trying to understand the best practice.
var client = new RestClient("https://api.bigcommerce.com");
var request = new RestRequest ("/stores/[Kmart]/v3/carts?include=redirect_urls");
request.Method = Method.POST;
request.AddHeader("Accept", "application/json");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("X-Auth-Token", "FriedChickenIsYummy");
var body = @"yadaYada";
request.AddJsonBody(body);
var response = client.Execute(request);
this.PublishInfoMessage(response.Content, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");
Also, for anyone else that runs into this. Despite this working 100%, when it’s ran, if you check the syntax in the custom code editor in directives maint, you’ll get this error:
Despite that, I was still able to save and run the BPM just fine. This very thing wasted a lot of time for me; I’m hoping this will help someone else avoid that.