Shopify when a checkout occurs is there We can pass data

Solved
sayali
New Member
4 0 0

Is there a way to pass some data to Shopify when a checkout occurs and to get the same data back in our webhook when an order for that checkout is generated?

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 135

This is an accepted solution.

Hi @sayali ,

 

I do no believe there is any functionality in Shopify that will allow you to achieve this.

 

The closest thing I can think of is that if you use the Storefront API, when creating a checkout you can set the field "customAttribute" to set any custom key-value pair you want on that checkout: https://shopify.dev/docs/storefront-api/reference/object/checkout?api[version]=2020-04 However I do not believe this custom attribute information would be made available in the order/create webhook payload, but it could be worth testing out. 

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes