What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Retrieving files uploaded through apps as: Uploadery and UploadKit through api

Retrieving files uploaded through apps as: Uploadery and UploadKit through api

jamahlmd
Shopify Partner
2 0 0

Hey guys, I've been searching this forum for this question or something similar but couldn't find any so here I am.

On my website customers can upload a photo on the product page. This is enabled by an app called UploadKit (Uploadery provides the same functionality). Now I want to fetch all orders INCLUDING this uploaded photo.

The desired result is an api call (graphQL preferred) that will give me all the orders details and per order also the uploaded photo. Does anyone have any experience with this? or any suggestions?

Thanks in advance! All help is appreciated!

Reply 1 (1)

SBD_
Shopify Staff
1831 273 421

Hey @jamahlmd,

 

It would depend on how they store the image URL. I suspect they store it as a line item property, which you can access through LineItem.customAttributes:

 

 

query {
  orders {
    edges {
      node {
        id
        lineItems {
          edges {
            node {
              id
              customAttributes {
                key
                value
              }
            }
          }
        }
      }
    }
  }
}

 

 

 

Scott | Developer Advocate @ Shopify