Upload Native

GraphQL recipes

Read uploaded files from the Admin API. Both queries are validated against Admin API 2026-04.

query OrderUploads($id: ID!) {
  order(id: $id) {
    name
    customAttributes { key value }
    lineItems(first: 50) { nodes { title customAttributes { key value } } }
  }
}

OrderUploads

Use it when you have an order and want its upload references. Look for upload_reference and upload_reference_ids in the order customAttributes (cart attribute) and in each line item's customAttributes (line-item property). Required scope: read_orders.

UploadedFile

Use it when you have a file id from upload_reference_ids and want the file itself. Generic files return url, mimeType, originalFileSize and fileStatus; images return image details. Required scope: read_files.

In Shopify Flow, the Load file details action does the same lookup without code. See the Flow reference.

Back to the developer docs.