Pass extra in parameters with webhook event

Solved
hasanagh
Tourist
8 0 3

Hey all, its my first post here.

 

I am developing a simple app which should take extra information from the  cart for example: preferred delivery date. and then shown in an embedded app with order information.

Can I send this bit of extra information with the webhook event (namely create order)?

If not, how do you think I should be doing so?

Thanks!

 

 

 

0 Likes
vix
Shopify Staff
Shopify Staff
534 105 103

This is an accepted solution.

I would suggest a cart / order attribute: https://community.shopify.com/c/Shopify-Design/Cart-Use-cart-attributes-to-collect-more-information/...

In the webhook they will be stored similarly to: 

"note_attributes": [
  {
    "name": "foo",
    "value": "bar"
  }
]

Vix | Developer Support @ 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