Improved

Improved product.deleted webhook in BOM conversion scenario

We have added a new boolean converted_to_lot to the payload of the product.deleted webhook, which will be included if a product is being converted to a BOM.

The process of converting a product to a BOM technically works as follows:

  • the existing product is deleted (product.deleted webhook is triggered)
  • a BOM is created (lot.created webhook is triggered)

We send webhooks for both actions, and as part of this improvement we have added a new flag in the product.deleted webhook that is called converted_to_lot and has the payload looks as follows:

{ "key_name": "number", "key": "converttolot", "converted_to_lot": true }

Learn more about our webhook events here.