wc-store-api
OfficialUse Woo Store API safely for headless carts
Software Engineering#payment requirements#checkout blocks#woocommerce store api#headless cart#nonce and cart-token#api extension data
Authorvikingokft
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves the confusion between WooCommerce’s public shopper-facing Store API and the admin/integration WC REST API, preventing broken checkout/cart integrations and leaking wrong authentication assumptions.
Core Features & Use Cases
- Correct API selection for storefront cart/checkout: Use
/wp-json/wc/store/v1for browsing products and reading/updating the current shopper cart and checkout state instead ofwc/v4. - Nonce vs Cart-Token write protection: Implement the required
Nonceheader (wp_create_nonce('wc_store_api')) or useCart-Tokenfor headless continuity across requests. - Extend Store API responses and mutate cart via blocks: Add public
extensions.<namespace>data and update cart state through/cart/extensionsusingextensionCartUpdate, while keeping extension data read-only and safe.
Quick Start
Ask the AI to explain which endpoints and headers you must use to implement a headless cart/checkout that updates custom cart state and exposes extra checkout-block data via Store API.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wc-store-api Download link: https://github.com/vikingokft/wp-agent-skills/archive/main.zip#wc-store-api Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.