Command Palette

Search for a command to run...

Назад к скиллам
скилл № 60041

WooCommerce Spraay Batch Payouts

Batch USDC payouts for WooCommerce stores via Spraay Protocol — read vendor commissions, build batches, estimate fees, and prepare payouts for merchant approval

БесплатноБез исполняемых скриптов
plagtechот plagtech271 установка в других каталогах

Установить WooCommerce Spraay Batch Payouts в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

WooCommerce Spraay Batch Payouts

Automate USDC batch payouts for WooCommerce merchants. This skill lets agents read pending vendor or supplier payment obligations from a WooCommerce store running the Spraay Batch Payouts plugin, build payout batches, estimate fees, and prepare transactions for merchant wallet approval.

User Control & Approval Requirements

All destructive or mutating actions on stored records require explicit merchant approval. The agent MUST confirm with the merchant before:

  • Creating a new recipient
  • Updating any recipient field (especially wallet addresses)
  • Deleting a recipient record

The agent must present a clear summary of the proposed change and wait for the merchant to confirm before executing. Example:

Agent: "I'd like to update Supplier A's wallet address from 0xabc...123 to 0xdef...456. Confirm? (yes/no)"
Merchant: "yes"
Agent: [executes PUT]

Never silently modify or delete recipient records. A changed wallet address routes real funds to a different destination — this is equivalent to changing a bank account number and must be treated with the same care as a payout.

Recovery: If a recipient is accidentally deleted, the agent should notify the merchant immediately with the deleted record's details (label, wallet address, email) so it can be recreated. The agent should retrieve recipient details with GET before executing a DELETE, and retain them in the conversation for recovery purposes.

What This Skill Does

  • Reads pending vendor commissions from WooCommerce (supports Product Vendors, Dokan, and manual suppliers)
  • Builds batch payout proposals with recipient addresses and amounts
  • Estimates Spraay protocol fees (0.3%) before execution
  • Prepares unsigned transactions for merchant wallet signing
  • Tracks batch status and on-chain confirmation

Requirements

  • A WooCommerce store with the Spraay Batch Payouts for WooCommerce plugin installed and activated
  • The store must have a Spraay API key configured in plugin settings
  • WordPress REST API must be accessible
  • Merchant must have a browser wallet (MetaMask, Coinbase Wallet) for signing

Architecture

This skill interacts with a WooCommerce store's REST API, NOT directly with the Spraay gateway. The plugin handles all gateway communication server-side via an API key.

Agent (this skill)
  → WooCommerce REST API (store's WordPress site)
    → Spraay plugin (PHP, server-side)
      → Spraay gateway (gateway.spraay.app)
        → Base blockchain (USDC settlement)

The agent never needs blockchain credentials. All on-chain operations require the merchant's explicit wallet signature.

Authentication

The WooCommerce REST API requires authentication. Use one of:

  • Application Passwords (recommended): WordPress 5.6+ built-in. The merchant generates one at Users → Profile → Application Passwords.
  • WooCommerce REST API keys: Generated at WooCommerce → Settings → Advanced → REST API.

Use a dedicated store account with the minimum required WordPress role (manage_woocommerce capability). Do not use the site administrator account for routine agent operations.

# Application Password auth
curl -u "username:xxxx xxxx xxxx xxxx" \
  https://store.example.com/wp-json/spraay/v1/recipients

Endpoints

All endpoints are under the spraay/v1 namespace on the store's WordPress REST API.

Recipients

⚠ Approval required: Agents MUST confirm with the merchant before creating, updating, or deleting recipients. See "User Control & Approval Requirements" above.

# List all recipients (read-only, no approval needed)
GET /wp-json/spraay/v1/recipients

# Get a single recipient (read-only, no approval needed)
GET /wp-json/spraay/v1/recipients/{id}

# Create a recipient (REQUIRES merchant approval first)
POST /wp-json/spraay/v1/recipients
Content-Type: application/json
{
  "label": "Supplier A",
  "wallet_address": "0x1234...abcd",
  "email": "[email protected]",
  "default_amount": "250.00"
}

# Update a recipient (REQUIRES merchant approval first — show old and new values)
PUT /wp-json/spraay/v1/recipients/{id}
{
  "label": "Supplier A (updated)",
  "default_amount": "300.00"
}

# Delete a recipient (REQUIRES merchant approval first — show what will be deleted)
# Always GET the recipient first to retain details for recovery
DELETE /wp-json/spraay/v1/recipients/{id}

WooCommerce Data

# Get pending vendor commissions (if Product Vendors or Dokan is active)
GET /wp-json/spraay/v1/wc/commissions?status=unpaid

# Get supplier payment obligations from orders
GET /wp-json/spraay/v1/wc/suppliers?date_from=2026-10-01&date_to=2026-10-31

Batches

# Create a new batch (draft)
POST /wp-json/spraay/v1/batches
Content-Type: application/json
{
  "items": [
    {"recipient_id": 1, "amount": "250.00"},
    {"recipient_id": 2, "amount": "400.00"},
    {"recipient_id": 3, "amount": "175.00"}
  ]
}
# Returns: batch object wi
Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл WooCommerce Spraay Batch Payouts?

Batch USDC payouts for WooCommerce stores via Spraay Protocol — read vendor commissions, build batches, estimate fees, and prepare payouts for merchant approval

Как установить скилл WooCommerce Spraay Batch Payouts?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл WooCommerce Spraay Batch Payouts запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить WooCommerce Spraay Batch Payouts с