ascend-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Ascend webhooks. Use when setting up Ascend webhook handlers, debugging Ascend signature verification (X-Ascend-Signature, HMAC-SHA256), or…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Ascend Webhooks
Ascend (insurance payments / premium financing) sends webhooks so your app is notified when an event happens — for example when an invoice is paid. Ascend POSTs a JSON payload over HTTPS and signs it with an HMAC-SHA256 signature you must verify before trusting the event.
When to Use This Skill
- How do I receive Ascend webhooks?
- How do I verify Ascend webhook signatures?
- How do I parse the
X-Ascend-Signatureheader? - How do I handle
invoice.paid(or payout / refund) events? - Why is my Ascend webhook signature verification failing?
How Ascend Signs Webhooks
Ascend uses a custom Stripe-style HMAC-SHA256 scheme (not Svix, not Standard Webhooks). Two headers are sent:
| Header | Example | Purpose |
|---|---|---|
X-Ascend-Signature |
t=1657323346,v1=c159a974c8... |
Timestamp + HMAC signature |
X-Ascend-Request-Timestamp |
1657323346 |
The same Unix timestamp, which is signed |
The signature is verified by:
- Parse
X-Ascend-Signatureintot(timestamp) andv1(hex HMAC). - Build the signed string as
`${t}:${rawBody}`— the timestamp, a colon, then the raw request body. - Compute
HMAC-SHA256(signed_string, webhook_secret)and hex-encode it. - Constant-time compare against
v1.
Use the raw request body. Re-serializing the parsed JSON (key reordering, whitespace) changes the bytes and breaks the signature. There is no official Ascend SDK, so every framework below verifies manually.
Verification (core)
const crypto = require('crypto');
// Verify Ascend's "t=<timestamp>,v1=<hex>" signature over "<timestamp>:<rawBody>".
function verifyAscendSignature(rawBody, signatureHeader, secret) {
const parts = Object.fromEntries(
signatureHeader.split(',').map((p) => p.split('=').map((s) => s.trim()))
);
const { t: timestamp, v1: signature } = parts;
if (!timestamp || !signature) return false;
const expected = crypto
.createHmac('sha256', secret)
.update(`${timestamp}:${rawBody}`) // colon separator + RAW body
.digest('hex');
try {
return crypto.timingSafeEqual(
Buffer.from(signature, 'hex'),
Buffer.from(expected, 'hex')
);
} catch {
return false; // length mismatch = invalid
}
}
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Event Payload Structure
Every event has the same top-level shape. Unlike Stripe, data is the
resource object directly (there is no data.object wrapper):
{
"id": "ajskljfaklsjd0912132",
"type": "invoice.paid",
"data": {
"id": "684c8c8e-75eb-4134-925a-cb3a30f23633",
"status": "paid",
"payee": "John Doe Trucking",
"payer_name": "John Doe",
"total_amount_cents": 600000,
"invoice_number": "II2DH1HGHJ",
"paid_at": "2023-10-01T23:51:37.507Z"
}
}
Common Event Types
| Event | Triggered When |
|---|---|
invoice.created |
An invoice is created |
invoice.processing_payment |
An invoice payment is being processed |
invoice.paid |
An invoice is paid |
invoice.voided |
An invoice is voided |
invoice.marked_overdue |
An invoice is marked overdue |
payout.paying |
A payout is being paid out |
payout.paid |
A payout has been paid |
payout.on_hold |
A payout is placed on hold |
payout.canceled |
A payout is canceled |
payout.failed |
A payout failed |
refund.paid |
A refund has been paid |
refund.cancelled |
A refund was cancelled |
Always branch on the type field and handle unknown types gracefully. See
references/overview.md for the full list and payloads.
Environment Variables
| Variable | Description |
|---|---|
ASCEND_WEBHOOK_SECRET |
The webhook signing secret provided by Ascend |
Setup
Ascend webhook registration is manual — there is no self-serve dashboard.
Email [email protected] with your organization, environment
(sandbox/production), the events you want, and your HTTPS endpoint URL. Ascend
returns a webhook signing secret. See references/setup.md.
Local Development
For local webhook testing, run the Hookdeck CLI via npx — no install required:
npx hookdeck-cli listen 3000 ascend --path /webhooks/ascend
No account required — the CLI creates a guest account on first run and provides a local tunnel + web UI for inspecting requests.
Reference Materials
- overview.md — What Ascend webhooks are, event types, payload structure
- setup.md — Registering your endpoint and getting the signing secret
- verification.md — Signature verification details and gotchas
- examples/express/ — Express (Node.js) example with tests
- examples/nextjs/ — Next.js App Ro
Установить ascend-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ascend-webhooks?
Receive and verify Ascend webhooks. Use when setting up Ascend webhook handlers, debugging Ascend signature verification (X-Ascend-Signature, HMAC-SHA256), or handling insurance payment events like invoice.paid, payout.paid, and refund.paid.
Как установить скилл ascend-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ascend-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
gtm-enterprise-account-planning
Strategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
от GitHubgtm-partnership-architecture
Build and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
от GitHublanding-page-conversion-audit
Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
от GitHubpower-platform-architect
Use this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…
от GitHub