Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify when a checkout occurs is there We can pass data

Solved

Shopify when a checkout occurs is there We can pass data

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)
624 104 189

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)
624 104 189

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.