Shop details missing from the Standard API?

Hi there,

We’re working on our next Customer Account Extension, specifically on the Profile Block target.

Unlike other extensions, like Checkout and Order Status/Thank You pages, it seems like this particular target is missing the shop in the Standard API.

  const { shop } = useApi();
  console.log({ shop });

  // results in { "shop": undefined }

Is there some other way of accessing the *.myshopify.com and other details of the shop from a Profile Target extension?

Hi Dylan, you can retrieve shop info from profile targets by querying the Customer Account API. The shop object should provide you with everything you’re looking for.

1 Like

Thanks @JR-Shopify - that’s exactly what I was looking for :slight_smile:

1 Like