b2c-hooks

Installation
SKILL.md

B2C Commerce Hooks

Hooks are extension points that allow you to customize business logic by registering scripts. B2C Commerce supports two types of hooks:

  1. OCAPI/SCAPI Hooks - Extend API resources with before, after, and modifyResponse hooks
  2. System Hooks - Custom extension points for order calculation, payment, and other core functionality

Hook Types Overview

Type Purpose Examples
OCAPI/SCAPI Extend API behavior dw.ocapi.shop.basket.afterPOST
System Core business logic dw.order.calculate
Custom Your own extension points app.checkout.validate

Hook Registration

File Structure

Related skills

More from salesforcecommercecloud/b2c-developer-tooling

Installs
73
GitHub Stars
42
First Seen
Feb 21, 2026