简介
OpenClaw 官方提供的 Clawver 店铺订单管理技能,支持退款处理、物流跟踪和数字商品交付,助力商家高效运营电商业务。
原始描述
Manage Clawver orders. List orders, track status, process refunds, generate download links. Use when asked about customer orders, fulfillment, refunds, or order history.
中文使用说明 来自收录源
核心用法
clawver-orders 是一款面向 Clawver 电商卖家的纯文档型 Skill,提供完整的订单管理 API 参考与实操指南。核心功能覆盖:
| 模块 | 关键接口 | 用途 |
|---|---|---|
| 订单查询 | GET /v1/orders |
按状态筛选、分页浏览订单历史 |
| 订单详情 | GET /v1/orders/{id} |
查看完整订单信息,含 POD 变体 ID |
| 下载链接 | GET .../download/{itemId} |
为数字商品生成 owner/客户级下载链接 |
| 退款处理 | POST .../refund |
全额/部分退款,支持 Stripe 原路退回 |
| 物流追踪 | trackingUrl 字段 |
POD 订单发货后自动暴露物流信息 |
| Webhook | POST /v1/webhooks |
订阅订单状态变更实时通知 |
文档还提供了 Python 代码片段,涵盖「每日订单检查」「退款请求处理」「尺码错误售后」「补发下载链接」等常见工作流。
显著优点
- 零执行风险:T-MD(纯 Markdown)分类,无可执行代码,静态分析评分 95/100
- API 设计规范:所有示例均使用 HTTPS + Bearer Token,符合 RESTful 最佳实践
- 场景覆盖全面:同时支持数字商品(即时交付)与 POD 实体商品(生产→发货→签收)两种履约模式
- Webhook 安全指引:内置 HMAC-SHA256 签名验证示例,降低回调伪造风险
- 合规友好:通过环境变量获取
CLAW_API_KEY,无硬编码密钥,符合 GDPR/CCPA
潜在缺点与局限
- 纯文档依赖:不提供自动化的 API 调用封装,开发者需自行实现 HTTP 客户端
- 版本号不一致:
SKILL.md声明 v1.3.0,但元数据可能标记为 v1.0.3,需注意核对 - 无分页游标:
limit参数可用,但游标分页未暴露,大数据量场景需手动处理偏移 - 退款时效限制:Stripe 原路退款需 1-5 工作日,文档未提供异步状态轮询方案
- POD 变体验证:
variantId必须预先匹配产品变体,缺货变体将被拒绝,需前置校验
适合人群
- Clawver 平台卖家/运营人员
- 需要集成订单管理功能的开发者
- 处理客户售后(退款、补发、物流查询)的技术支持团队
- 自建 ERP/OMS 系统对接 Clawver API 的工程师
常规风险
| 风险项 | 等级 | 说明 |
|---|---|---|
| API 密钥泄露 | 中 | 用户需自行保管 CLAW_API_KEY,避免提交至版本控制 |
| Webhook 伪造 | 低 | 若未验证 X-Claw-Signature,可能收到恶意回调 |
| 退款金额超限 | 低 | amountInCents 不得超过剩余可退金额,需前置校验 |
| 物流信息延迟 | 低 | POD 订单需等待承运商回传,非实时同步 |
总体评估
作为一款 T2 来源可信的官方文档型 Skill,clawver-orders 在安全性与实用性之间取得良好平衡。适合需要快速查阅 Clawver API 规范的开发者,但建议结合自动化 SDK 或自封装客户端以提升开发效率。
技能正文
name: clawver-orders description: Manage Clawver orders. List orders, track status, process refunds, generate download links. Use when asked about customer orders, fulfillment, refunds, or order history. version: 1.3.0 homepage: https://clawver.store metadata: {"openclaw":{"emoji":"📦","homepage":"https://clawver.store","requires":{"env":["CLAW_API_KEY"]},"primaryEnv":"CLAW_API_KEY"}}
Clawver Orders
Manage orders on your Clawver store—view order history, track fulfillment, process refunds, and generate download links.
Prerequisites
CLAW_API_KEYenvironment variable- Active store with orders
For platform-specific good and bad API patterns from claw-social, use references/api-examples.md.
List Orders
Get All Orders
curl https://api.clawver.store/v1/orders \
-H "Authorization: Bearer $CLAW_API_KEY"
Filter by Status
# Confirmed (paid) orders
curl "https://api.clawver.store/v1/orders?status=confirmed" \
-H "Authorization: Bearer $CLAW_API_KEY"
# In-progress POD orders
curl "https://api.clawver.store/v1/orders?status=processing" \
-H "Authorization: Bearer $CLAW_API_KEY"
# Shipped orders
curl "https://api.clawver.store/v1/orders?status=shipped" \
-H "Authorization: Bearer $CLAW_API_KEY"
# Delivered orders
curl "https://api.clawver.store/v1/orders?status=delivered" \
-H "Authorization: Bearer $CLAW_API_KEY"
Order statuses:
| Status | Description |
|---|---|
pending |
Order created, payment pending |
confirmed |
Payment confirmed |
processing |
Being fulfilled |
shipped |
In transit (POD only) |
delivered |
Completed |
cancelled |
Cancelled |
paymentStatus is reported separately and can be pending, paid, failed, partially_refunded, or refunded.
Pagination
curl "https://api.clawver.store/v1/orders?limit=20" \
-H "Authorization: Bearer $CLAW_API_KEY"
limit is supported. Cursor-based pagination is not currently exposed on this endpoint.
Get Order Details
curl https://api.clawver.store/v1/orders/{orderId} \
-H "Authorization: Bearer $CLAW_API_KEY"
For print-on-demand items, order payloads include:
variantId(required — fulfillment variant identifier, must match a product variant)variantName(human-readable selected size/variant label)
Note: variantId is required for all POD checkout items as of Feb 2026. Out-of-stock variants are rejected.
Generate Download Links
Owner Download Link (Digital Items)
curl "https://api.clawver.store/v1/orders/{orderId}/download/{itemId}" \
-H "Authorization: Bearer $CLAW_API_KEY"
Use this when customers report download issues or request a new link.
Customer Download Link (Digital Items)
curl "https://api.clawver.store/v1/orders/{orderId}/download/{itemId}/public?token={downloadToken}"
Download tokens are issued per order item and can be returned in the checkout receipt (GET /v1/checkout/{checkoutId}/receipt).
Customer Order Status (Public)
curl "https://api.clawver.store/v1/orders/{orderId}/public?token={orderStatusToken}"
Checkout Receipt (Success Page / Support)
curl "https://api.clawver.store/v1/checkout/{checkoutId}/receipt"
Process Refunds
Full Refund
curl -X POST https://api.clawver.store/v1/orders/{orderId}/refund \
-H "Authorization: Bearer $CLAW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountInCents": 2499,
"reason": "Customer requested refund"
}'
Partial Refund
curl -X POST https://api.clawver.store/v1/orders/{orderId}/refund \
-H "Authorization: Bearer $CLAW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountInCents": 500,
"reason": "Partial refund for missing item"
}'
Notes:
amountInCentsis required and must be a positive integerreasonis requiredamountInCentscannot exceed remaining refundable amount- Refunds process through Stripe (1-5 business days to customer)
- Order must have
paymentStatusofpaidorpartially_refunded
POD Order Tracking
For print-on-demand orders, tracking info becomes available after shipping:
curl https://api.clawver.store/v1/orders/{orderId} \
-H "Authorization: Bearer $CLAW_API_KEY"
Check trackingUrl, trackingNumber, and carrier fields in response.
Webhook for Shipping Updates
curl -X POST https://api.clawver.store/v1/webhooks \
-H "Authorization: Bearer $CLAW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhook",
"events": ["order.shipped", "order.fulfilled"],
"secret": "your-secret-min-16-chars"
}'
Order Webhooks
Receive real-time notifications:
curl -X POST https://api.clawver.store/v1/webhooks \
-H "Authorization: Bearer $CLAW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhook",
"events": ["order.created", "order.paid", "order.refunded"],
"secret": "your-webhook-secret-16chars"
}'
Signature format:
X-Claw-Signature: sha256=abc123...
Verification (Node.js):
const crypto = require('crypto');
function verifyWebhook(body, signature, secret) {
const expected = 'sha256=' + crypto
.createHmac('sha256', secret)
.update(body)
.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(signature),
Buffer.from(expected)
);
}
Common Workflows
Daily Order Check
# Get newly paid/confirmed orders
response = api.get("/v1/orders?status=confirmed")
orders = response["data"]["orders"]
print(f"New orders: {len(orders)}")
for order in orders:
print(f" - {order['id']}: ${order['totalInCents']/100:.2f}")
Handle Refund Request
def process_refund(order_id, amount_cents, reason):
# Get order details
response = api.get(f"/v1/orders/{order_id}")
order = response["data"]["order"]
# Check if refundable
if order["paymentStatus"] not in ["paid", "partially_refunded"]:
return "Order cannot be refunded"
# Process refund
result = api.post(f"/v1/orders/{order_id}/refund", {
"amountInCents": amount_cents,
"reason": reason
})
return f"Refunded ${amount_cents/100:.2f}"
Wrong Size Support Playbook
def handle_wrong_size(order_id):
response = api.get(f"/v1/orders/{order_id}")
order = response["data"]["order"]
for item in order["items"]:
if item.get("productType") == "print_on_demand":
print("Variant ID:", item.get("variantId"))
print("Variant Name:", item.get("variantName"))
# Confirm selected variant before issuing a refund/replacement workflow.
Resend Download Link
def resend_download(order_id, item_id):
# Generate new download link
response = api.get(f"/v1/orders/{order_id}/download/{item_id}")
return response["data"]["downloadUrl"]
Order Lifecycle
pending → confirmed → processing → shipped → delivered
↓
cancelled / refunded (paymentStatus)
Digital products: confirmed → delivered (instant fulfillment)
POD products: confirmed → processing → shipped → delivered
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: