We have an issue with the shipping_carrier:
%{
“fulfillment” => %{
…
“order_number” => “RJMSE|721”,
“order_uuid” => “T3JkZXI6NjUyODY4Mzc3”,
…
“shipping_carrier” => “USPS”,
“shipping_method” => “GroundAdvantage”,
…
},
“packages” => [
%{
…
“name” => “Package #1”,
…
“shipping_label” => %{
…
“shipping_carrier” => “endicia”,
…
“tracking_number” => “940015089….”,
“tracking_url” => “https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=9400150….”
},
…
}
],
…
“webhook_type” => “Shipment Update”
}
As you can see, the shipping_carrier inside packages looks wrong, while the one under fulfillment looks correct. The documentation says:
You will notice several fields like shipping_carrier and shipping_method exist both inside and ourside the packages array. Those inside the packages array where added last, to better reflect the differences packages can have, and are the most accurate. The other ones are considered legacy fields and will eventually be deprecated
Should we ignore the documentation and use the shipping_carrier under fulfillment?