im trying to do the same
I want to upload a PDF to each order from an external couriers API
either in timeline or metafields