@nicksimard - Sure thing!
@DerekK - Can you show us an example webhook data? Also, if possible an example email so we know how it should look like. Thanks!
Hi @DerekK,
That’s an interesting workflow you’re tryin to accomplish! I can’t think of how you’d do that, but we’ve got a handful of folks in the Community who might be able to help you out.
@TimS and/or @ikbelkirasan: do either of you have any ideas here? This one’s pretty complex!
@nicksimard - Sure thing!
@DerekK - Can you show us an example webhook data? Also, if possible an example email so we know how it should look like. Thanks!
Hey @ikbelkirasan
Webhook data, no problem. Email…. Thats still to be designed, but I could do something like simply attaching a link or a google sheet to the order email as it is the google sheet that will translate the ean code to a scanable barcode.
Order data via webhook below. As you can see in one of the product description fields I’ve added a prefix and a suffix to the ean code of “*” Thats a star in-case it isn't clear.
{"Type":"order.created","CreateTime":"2020-09-10T10:45:17.3242579Z","Body":{"EventName":"order.created","Description":"1773035 placed a collection order (#21407580) for €12.37 with Dereks test store.","OrderCreatedTime":"2020-09-10T10:45:17.3086385Z","Order":{"Store":{"Id":10529,"Name":"Dereks test store","MenuId":31304,"Metadata":{},"Currency":"EUR","Coordinates":{"Latitude":xxx,"Longitude":-xxx},"StoreTimezone":"GMT Standard Time","StoreGroupId":10811},"Customer":{"Id":1773035,"Name":"Derek K","EmailAddress":null,"PhoneNumberLocalFormat":"08xxxxxxxx","PhoneNumber":"+3538xxxxxxxx"},"Voucher":null,"Fees":null,"OrderItems":l{"OrderItemOptions":d],"Metadata":{},"MenuItemPublicId":"96fb8eea-c1c8-4e09-9f14-6ef5c6193ac1","MenuSectionName":"Household","MenuSectionDisplayOrder":0,"Name":"Fairy Original 500ml","Description":"*5413149980761*","Price":1.87,"PriceIncludingOptionSetItems":1.87,"MenuItemId":2277063,"MenuItemDisplayOrder":8,"IsAvailable":true},{"OrderItemOptions":d],"Metadata":{},"MenuItemPublicId":"8a6b73d0-7af7-495b-bbae-8d6f469c1ba2","MenuSectionName":"Household","MenuSectionDisplayOrder":0,"Name":"Plenty The Original One Kitchen Roll","Description":"","Price":2.5,"PriceIncludingOptionSetItems":2.5,"MenuItemId":2277067,"MenuItemDisplayOrder":12,"IsAvailable":true},{"OrderItemOptions":d],"Metadata":{},"MenuItemPublicId":"8a6b73d0-7af7-495b-bbae-8d6f469c1ba2","MenuSectionName":"Household","MenuSectionDisplayOrder":0,"Name":"Plenty The Original One Kitchen Roll","Description":"","Price":2.5,"PriceIncludingOptionSetItems":2.5,"MenuItemId":2277067,"MenuItemDisplayOrder":12,"IsAvailable":true},{"OrderItemOptions":d],"Metadata":{},"MenuItemPublicId":"8a6b73d0-7af7-495b-bbae-8d6f469c1ba2","MenuSectionName":"Household","MenuSectionDisplayOrder":0,"Name":"Plenty The Original One Kitchen Roll","Description":"","Price":2.5,"PriceIncludingOptionSetItems":2.5,"MenuItemId":2277067,"MenuItemDisplayOrder":12,"IsAvailable":true},{"OrderItemOptions":d],"Metadata":{},"MenuItemPublicId":"8a6b73d0-7af7-495b-bbae-8d6f469c1ba2","MenuSectionName":"Household","MenuSectionDisplayOrder":0,"Name":"Plenty The Original One Kitchen Roll","Description":"","Price":2.5,"PriceIncludingOptionSetItems":2.5,"MenuItemId":2277067,"MenuItemDisplayOrder":12,"IsAvailable":true}],"DeliveryLocation":null,"CustomerLocation":{"Latitude":xxxx,"Longitude":-xxxx},"MaskedPhoneNumber":{"IsEnabled":true,"PhoneNumber":"+353xxxxxxx","Code":"50623691"},"DropOffLocationId":null,"DropOffLocation":null,"AcceptedFor":null,"InFraudZone":false,"UnusualHighValueOrder":false,"RejectedByUserId":null,"OrderId":21407580,"LocalOrderId":null,"DeliveryType":"Pickup","PickupLocationType":"TakeOut","TableServiceCatagory":"Generic","TipAmount":0.0,"DeliveryAmount":0.0,"OrderItemsAmount":11.87,"Amount":12.37,"ProcessingFee":0.5,"PaymentAccountType":"Cash","PaymentAccountDescription":"Cash","OrderState":"ReadyToProcess","IsPreOrder":true,"PlacedTime":"2020-09-10T10:44:53.26","RequestedForTime":"2020-09-10T11:20:00","ChefNote":null,"AppType":"Web","UserRating":null,"PaymentStatus":"Paid","RejectionReason":null,"RefundedAmount":null,"DeliveryTrackingStatus":"Unassigned","DriverId":null,"TotalTax":0.0,"OrderTrackingCode":null},"EventId":"263104e9-22ee-4a33-bf10-fd70e27931eb","CreateTime":"2020-09-10T10:45:17.3242579Z","Position":0,"AppId":"7448"}}