We import orders from several shops using the API, and then do the fulfillment side for these shops. When we send out an order, it should be marked as fulfilled in Shopify. Using the API, we set the TrackAndTrace code on the fulfillment, which causes the order to be marked as fulfilled.
Because it’s not possible to create fulfillments using the API, we are dependent on Shopify having created the fulfillments. However, we’re seeing that in some cases Shopify does not create any fulfillments, and in the API we’re being given an empty array for the fulfillments. In what cases can it happen that Shopify does not create any fulfillments? What should we do in this case from the API to mark the order as fulfilled?