attributes inputs into native product options and value links, linking each product to its eligible sellers (product_seller links), and recording a confirmed PRODUCT_ADD audit action attributed to created_by. Triggered by POST /admin/products and POST /vendor/products. Variants default to manage_inventory: false unless set explicitly. Emits product.created.
Usage
Input
Products to create.
Actor id recorded on the
PRODUCT_ADD audit action.Arbitrary data forwarded to the underlying Medusa create workflows and the
productsCreated hook.Result
The created products, including their generated ids, options, and statuses.
Hooks
Runs first with
{ input, products } — use it to reject invalid payloads before anything is created.Runs after creation with
{ products, additional_data }.