B2c Custom API Development

Develop Custom SCAPI REST endpoints with api.json routes, schema.yaml definitions, and OAuth scope configuration. Use this skill whenever the user needs to create a custom API on the Commerce platform, define OpenAPI 3.0 schemas for request/response, structure the rest-apis cartridge folder, or debug endpoint registration and 404 issues. Also use when building headless commerce integrations, choosing between Shopper (`ShopperToken`) and Admin (`AmOAuth2`) APIs, or troubleshooting why a Custom API endpoint isn't appearing or returning 404 in `b2c scapi custom status` — even if they just say 'custom REST endpoint', 'expose my script as an API', or 'my admin custom API isn't registering'.

salesforcecommercecloud 1178d25 5 files · 31.0 KB Updated

File contents

salesforcecommercecloud/b2c-developer-tooling/tree/main/skills/b2c/skills/b2c-custom-api-development commit 1178d25922

Frequently asked questions

npx skillmds@latest add salesforcecommercecloud/b2c-custom-api-development