Storefront api printful

futurekode
Visitor
2 0 0

Hello,

 

My client has a website which connects to shopify via the storefront API using graphql. They also have a printful integration to add custom text to products. Is there a way to pass through this custom text via the storefront API and into the printful integration?

Hope this makes sense

Thanks

Replies 2 (2)

SBD_
Shopify Staff
1829 269 406

Hey @futurekode 

You can add customAttributes to line items, which can be pulled out via the API.

Scott | Developer Advocate @ Shopify 

futurekode
Visitor
2 0 0

Hi @SBD_ 

Okay, so I can pass a key and a value for the custom text. But what key do I use? Where can I find this info?


Thanks for your help?