wc-store-api

Official

Use Woo Store API safely for headless carts

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/v1 for browsing products and reading/updating the current shopper cart and checkout state instead of wc/v4.
  • Nonce vs Cart-Token write protection: Implement the required Nonce header (wp_create_nonce('wc_store_api')) or use Cart-Token for headless continuity across requests.
  • Extend Store API responses and mutate cart via blocks: Add public extensions.<namespace> data and update cart state through /cart/extensions using extensionCartUpdate, 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.