POS UI Extension needs Admin Api Access

luiscortina
Shopify Partner
2 0 3

Hi: I'm creating a POS UI Extension and I need to be able to read customer and product tags from the extension. I need to access the Admin Api. Is there a way to do this?

 

Thanks,

 

Luis

Reply 1 (1)

LakshayLakshay
Shopify Partner
11 0 0

Hi,

The only way to do this is by creating a route in your app backend ( index.js ) and then fetching admin data from extension file via index.js

It would be much like 

UI file -> get /readCustomer 
Index file -> fetch customers from admin and throw a response back to UI file

Refer to this if i couldn't explain properly  😜

POS Route 
 

L Kalra