using System.Collections.Generic;
public static void Main()
""firstName"": ""Fulano"",
""neighbourhood"": ""Centro""
""clientId"": ""cliente3"",
""number"": ""12345678901""
""orderId"": ""4017116"",
""channelId"": ""channel2"",
""clientId"": ""cliente3"",
""method"": ""Economica"",
""carrierName"": ""Transportadora""
""status"": ""CANCELED"",
""enablePrePicking"": false,
""sku"": ""03.64.0005_11_10"",
""stockType"": ""PHYSICAL"",
""sku"": ""18.06.0220_48_2"",
""stockType"": ""PHYSICAL"",
""orderId"": ""4017116"",
""channelId"": ""channel2"",
""clientId"": ""cliente3"",
""name"": ""Loja da Vila""
""method"": ""Economica"",
""carrierName"": ""Transportadora""
""status"": ""SHIPPING_READY"",
""enablePrePicking"": true,
""sku"": ""18.04.1465_01_3"",
""stockType"": ""PHYSICAL"",
""sku"": ""18.16.0630_13_10"",
""stockType"": ""PHYSICAL"",
""createdAt"": ""2019-06-08T21:41:12Z"",
""updatedAt"": ""2019-06-08T21:41:12Z""
var root = JsonConvert.DeserializeObject<RootObject>(json);
foreach (var ff in root.fulfillments.Values)
Console.WriteLine("ID: " + ff.id);
Console.WriteLine("Client ID: " + ff.clientId);
Console.WriteLine("Order ID: " + ff.orderId);
Console.WriteLine("Location ID: " + ff.locationId);
Console.WriteLine("Status: " + ff.status);
Console.WriteLine("Items:");
foreach (var item in ff.items.Values)
Console.WriteLine(" SKU: " + item.sku);
Console.WriteLine(" Quantity: " + item.quantity);
Console.WriteLine(" Ordered Quantity: " + item.orderedQuantity);
Console.WriteLine(" Canceled Quantity: " + item.canceledQuantity);
Console.WriteLine("--------------------");
public BillingAddress billingAddress { get; set; }
public string clientId { get; set; }
public List<Document> documents { get; set; }
public Dictionary<string, Fulfillment> fulfillments { get; set; }
public DateTime createdAt { get; set; }
public DateTime updatedAt { get; set; }
public class BillingAddress
public string zip { get; set; }
public string state { get; set; }
public string number { get; set; }
public string status { get; set; }
public string firstName { get; set; }
public Telephone telephone { get; set; }
public string neighbourhood { get; set; }
public string type { get; set; }
public string number { get; set; }
public string type { get; set; }
public string number { get; set; }
public string id { get; set; }
public string orderId { get; set; }
public string channelId { get; set; }
public string clientId { get; set; }
public string locationId { get; set; }
public Operator @operator { get; set; }
public string ownership { get; set; }
public Shipment shipment { get; set; }
public string status { get; set; }
public string type { get; set; }
public bool enablePrePicking { get; set; }
public Dictionary<string, Item> items { get; set; }
public string id { get; set; }
public string name { get; set; }
public string method { get; set; }
public string carrierName { get; set; }
public string sku { get; set; }
public int quantity { get; set; }
public string stockType { get; set; }
public int orderedQuantity { get; set; }
public int returnedQuantity { get; set; }
public int canceledQuantity { get; set; }
public string itemType { get; set; }
public bool presale { get; set; }
public bool enablePicking { get; set; }