Use Product Metafield content inside Order webhook object (XML/JSON)

We are experimenting with metafields to store some specific product identifiers (e.g. ISBN). We are also using webhooks to forward order information to a back-end system. That system would benefit greatly from receiving the metafields for the products ordered.

The order XML/JSON message that is sent with a webhook does contain some of the the (standard) product data as part of the data structure of the line items. But the custom metafields are not automatically flowing through.

Is there a way to:

  • enable the product metafields to flow automatically to an order object as part of the line item?

OR alternatively

  • fill order based metafields with the corresponding info from the ordered product metafield? (And hopefully these will flow through.)