Adding tracking numbers via Velo from multiple providers

Question:
How would I go about adding tracking numbers, via Velo, for an order with multiple different fulfillers?

Product:
Wix Editor, Velo

What are you trying to achieve:
If a customer orders from my store, there can potentially be 3 different fulfillers as I have products coming from 3 different suppliers. I want to be able to programmatically (and thus automatically) assign tracking info to each of the products. Tracking Info is generated via information I already have stored in Wix CMS.

What have you already tried:
Via createFulfillment, I would only be able to specify lineItems that have the same fulfillerId and as such, would only be able to add trackingInfo for one of the fulfillers.

Calling createFullfilment once per fulfillerId amongst the lineItems doesn’t work and only the first createFulfillment goes through.

Additional information:
I cannot use any of the stock shippingProviders, nor do I need to as I am doing the tracking manually via dynamic pages on my site.

After taking a step back for a few hours, I managed to resolve this. Turns out I’ve been using createFulfillment wrongly.

When you have multiple fulfillerIds among your order’s lineItems, you can actually just call createFulfillment once per fulfillerId, or more simply call createFulfillment once per lineItem.

This should work regardless of shipping provider/fulfiller since this works using custom fulfillers alone.

I just wish Velo functions would throw better error statements that would aid users/developers in troubleshooting their own site as a lot of the errors I’ve encountered don’t really tell me much about what is wrong, just that an error occurred (which is obvious enough).