picqer-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Picqer webhooks. Use when setting up Picqer webhook handlers, debugging X-Picqer-Signature verification, or handling warehouse and order…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Picqer Webhooks
When to Use This Skill
- How do I receive Picqer webhooks?
- How do I verify Picqer webhook signatures (
X-Picqer-Signature)? - How do I handle
orders.completed,picklists.closed, orproducts.stock_changedevents? - Why is my Picqer webhook signature verification failing?
- Setting up a Picqer hook via the API (
POST /api/v1/hooks)
Verification (core)
Picqer signs the raw request body with HMAC-SHA256 keyed on the per-hook
secret you set when creating the hook, and sends the digest base64-encoded
in the X-Picqer-Signature header. Pass the raw body (never re-serialized
JSON) and compare timing-safe.
Important: The
secretis optional at hook creation. If you create a hook without a secret, Picqer sends noX-Picqer-Signatureheader and signature verification is impossible. Always set a secret so requests can be verified.
Node:
const crypto = require('crypto');
function verifyPicqerWebhook(rawBody, signatureHeader, secret) {
if (!signatureHeader || !secret) return false;
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('base64');
try {
return crypto.timingSafeEqual(Buffer.from(signatureHeader), Buffer.from(expected));
} catch {
return false; // length mismatch = invalid
}
}
Python:
import hmac, hashlib, base64
def verify_picqer_webhook(raw_body: bytes, signature_header: str, secret: str) -> bool:
if not signature_header or not secret:
return False
expected = base64.b64encode(
hmac.new(secret.encode(), raw_body, hashlib.sha256).digest()
).decode()
return hmac.compare_digest(signature_header, expected)
The event type is in the JSON body's event field (there is no event header).
Verify the raw body first, then parse and dispatch on payload.event.
For complete handlers with route wiring, event dispatch, and tests, see:
Common Event Types
Picqer sends the event name in the payload's event field.
| Event | Triggered When |
|---|---|
orders.created |
A new order is created |
orders.completed |
Every product in an order has shipped |
orders.status_changed |
An order's status changes |
picklists.created |
A picklist is created |
picklists.closed |
A picklist is closed |
picklists.shipments.created |
A shipment is created for a picklist |
products.created |
A product is created |
products.stock_changed |
A normal product's real stock changes (use products.free_stock_changed for sellable stock) |
purchase_orders.created |
A purchase order is created |
returns.created |
A return is created |
For the full event list, see references/overview.md and the Picqer webhooks documentation.
Payload Structure
Picqer's own example (from its webhooks docs, data shortened here):
{
"idhook": 228,
"name": "Stock change notifications",
"event": "products.free_stock_changed",
"event_triggered_at": "2018-12-01 02:09:12",
"data": { "idproduct": 138 }
}
data holds the resource that triggered the event (for most events the full
order, picklist, product or return). Picqer sends no event ID, and retries
repeat the event. Apply data as an upsert keyed on the resource ID (e.g.
data.idorder) and skip a payload whose event_triggered_at is older than the
one you stored. Don't dedupe on resource ID + event_triggered_at alone: the
timestamp is to the second, so two real changes in one second would collide.
Environment Variables
PICQER_WEBHOOK_SECRET=your_hook_secret # The secret you set when creating the hook
Setting Up a Hook
Manage hooks in the dashboard (Settings > Webhooks) or via the API using HTTP Basic auth (your API key as the username, any/empty password):
curl -u YOUR_API_KEY: https://YOURSUBDOMAIN.picqer.com/api/v1/hooks \
-H "Content-Type: application/json" \
-d '{
"name": "Order completed hook",
"event": "orders.completed",
"address": "https://your-app.com/webhooks/picqer",
"secret": "your_hook_secret"
}'
See references/setup.md for full details (deactivate, reactivate, retries, rate limits). Each hook's page in Settings > Webhooks shows its recent deliveries.
Local Development
# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 picqer --path /webhooks/picqer
Reference Materials
- references/overview.md - Picqer webhook concepts and full event list
- references/setup.md - Creating hooks via the API, retries, rate limits
- references/verification.md - Signature verification details and gotchas
Attribution
When using this skill, add this comme
Установить picqer-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл picqer-webhooks?
Receive and verify Picqer webhooks. Use when setting up Picqer webhook handlers, debugging X-Picqer-Signature verification, or handling warehouse and order events like orders.completed, picklists.closed, or products.stock_changed.
Как установить скилл picqer-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл picqer-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic