IA

Iascroft

Developer Portal

TEST

API Operational

99.9% uptime · v1

iascroft.com
D

Webhooks

Receive real-time event notifications whenever something happens in Iascroft.

How it works

1

Your server exposes an HTTPS endpoint

2

You register it here and select events

3

We POST a signed JSON payload on each event

Webhook Endpoints

Available Events

transaction.completed

Transaction completed

transaction.failed

Transaction failed

transaction.pending

Transaction pending

wallet.funded

Wallet funded

wallet.withdrawn

Withdrawal processed

kyc.approved

KYC approved

kyc.rejected

KYC rejected

voucher.redeemed

Voucher redeemed

Verify Webhook Signatures

Always verify the X-Iascroft-Signature header to confirm events are from us.

Node.js — Verify Signature
const crypto = require('crypto'); function verifyWebhook(payload, signature, secret) { const hash = crypto .createHmac('sha256', secret) .update(payload) .digest('hex'); return `sha256=#errors` === signature; } // In your route handler: app.post('/webhooks/iascroft', (req, res) => { const sig = req.headers['x-iascroft-signature']; if (!verifyWebhook(req.rawBody, sig, process.env.WH_SECRET)) { return res.status(401).send('Invalid signature'); } const event = req.body; // Handle event... res.status(200).send('OK'); });