I want to Cancel (not delete) order on Shopify as API in my application.
Currently I am using this piece of code to cancel order
public IActionResult Cancel(double? id)
{
_httpClient.BaseAddress = new Uri("");
APISecurity.InitHeader(_httpClient);
var response = _httpClient.PostAsync($"orders /{id}/cancel.json/").Result; //I want something like _httpClient.CancelAsync
Using postman by post API is working fine.