Example #1
0
        public string SetInventoryCost(long inventory_item_id, string content)
        {
            var path     = $"/admin/api/2019-10/inventory_items/{inventory_item_id}.json";
            var response = _httpClient.Put(path, content);

            return(response.Body);
        }
Example #2
0
        public string Update(long orderId, long fulfillmentId, string fulfillmentJson)
        {
            var path           = $"/admin/orders/{orderId}/fulfillments/{fulfillmentId}.json";
            var clientResponse = _httpClient.Put(path, fulfillmentJson);

            return(clientResponse.Body);
        }
Example #3
0
 public void UpdateMetafield(long product_id, MetafieldUpdateParent metafield)
 {
     var json           = metafield.SerializeToJson();
     var path           = $"/admin/api/2019-10/products/{product_id}/metafields/{metafield.metafield.id}.json";
     var clientResponse = _httpClient.Put(path, json);
 }