New Shopify Certification now available: Liquid Storefronts for Theme Developers

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?

Accepted Solution (1)
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 185

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. 

 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 185

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. 

 

To learn more visit the Shopify Help Center or the Community Blog.