b2c-hooks
Register and implement B2C Commerce platform hooks declared in hooks.json and invoked by HookMgr during OCAPI/SCAPI requests or system events. Use for hooks.json, HookMgr.callHook(), dw.system.Status, dw.ocapi.shop.* before/after/modifyResponse hooks, dw.order.payment.authorize/authorizeCreditCard, dw.order.calculate, app.payment.processor.*, SCAPI order-payment authorization and placement, rollback semantics, and request.custom transport. Do not use for external Node.js webhooks, SFRA controller middleware or prepend/append chains, scheduled job steps in steptypes.json, or Git/CI hooks.
Pinned to revision fe78868e0e70, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/b2c-hooks/SKILL.md
- skills/b2c-hooks/evals/trigger-evals.json
- skills/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md
- skills/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md
- skills/b2c-hooks/references/SYSTEM-HOOKS.md
Every link opens the file at its source, pinned to the revision this page describes.