I can create a shipment for an order via REST API. But when i try to add tracks i get the error: Carrier Code can not be empty.
This is my code:
Array
(
[items] => Array
(
)
[notify] => 1
[appendComment] => 1
[comment] => Array
(
[comment] => Sent via Parcelforce
[is_visible_on_front] => 1
)
[tracks] => Array
(
[extension_attributes] => Array
(
)
[track_number] => P2G9999999
[title] => Parcelforce
[carrier_code] => custom
)
)
Best Answer
To create a shipment, you need the
order_item_id
of each item to be shipped.Endpoint
where 3 is the order id.
Headers
Body > Data
Reference