How to get a staged upload for the bulk operation by knowing only bulk operation id via API?

Hello, I want to know is it possible to get a staged upload file only by knowing a bulk operation id?

My use case is. I followed these steps to create the bulk operation

  1. Create a request file in .jsonl format
  2. Create a staged upload
  3. Upload the request file to the staged upload
  4. Create a bulk operation.
  5. poll or subsribe for the webhook

In step 5 I need to get the request file from step 1. I don’t want to store the file from step 1 in my filesystem, because I know this file is already stored in shopify and I don’t want to clutter up my file system. Is there a way to do it differently? :tired_face:

Hi Layerok,

There isn’t a direct way to retrieve the original staged upload file using only the bulk operation ID. The Bulk Operations API provides details about the operation’s progress, status, and results, but not about the input file itself.

If you don’t want to store the request file on your filesystem, you might consider other storage solutions that are more transient or scalable, like cloud storage (e.g., AWS S3, Google Cloud Storage) or a database blob. This way, you can store the file temporarily and retrieve or delete it as needed without cluttering your local filesystem.

Hope this helps!