New Shopify Certification now available: Liquid Storefronts for Theme Developers

GraphQl query can't find paymentCustomizations of function

Solved
Prudentt
Shopify Partner
51 7 12

I created a payment customization in my shopify function app as shown in the documentation, the problem is that when i try to find my customization, if i run the query in GraphiQl (the shopify app to run queries in the shopify admin), it finds it: 

Screenshot 2023-11-14 at 09.13.42.png

 

But when i run the exact same query in my backend api, with the GraphQl client, it returns nothing:

Screenshot 2023-11-14 at 09.15.17.png

response:

Screenshot 2023-11-14 at 09.16.03.png

 

Am i doing something wrong? I already added the write_payment_customizations, read_payment_customizations access scopes.

Accepted Solution (1)
Prudentt
Shopify Partner
51 7 12

This is an accepted solution.

I finally figured it out, it seems like i can only access customizations generated by my own app. I created the customization in the GraphiQl app, hence, my app couldn't access it.

View solution in original post

Replies 2 (2)
Prudentt
Shopify Partner
51 7 12

This is an accepted solution.

I finally figured it out, it seems like i can only access customizations generated by my own app. I created the customization in the GraphiQl app, hence, my app couldn't access it.

Liam
Shopify Staff
Shopify Staff
1892 202 577

Great to hear you figured this out Prudentt - and thanks for coming back to post your solution!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog