Webhooks
Receive signed order and payout events on your server. order.completed is the only supported way to fulfill orders programmatically.
Setup
- Open Developer in your dashboard.
- Add your HTTPS endpoint URL.
- Save the signing secret when shown — it is only displayed once.
- Use "Send test" to confirm your server receives events.
- Implement signature verification before fulfilling orders.
Event: order.completed
Sent when a buyer's payment is verified with the payment provider. If your endpoint does not return a 2xx response, FlintPay retries 3 times immediately and then with backoff (1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h). The event id is stable across retries — use it to deduplicate. Other events: order.refunded, payout.completed, payout.failed (same envelope, data differs).
Headers
Flint-Signature— HMAC signature (verify before trusting)Flint-Event—order.completedFlint-Delivery-Id— unique event idFlint-Webhook-Test—trueon test deliveries from the dashboard
Payload
order.completed
{
"id": "evt_...",
"type": "order.completed",
"created_at": "2026-06-30T12:00:00.000Z",
"data": {
"order": {
"id": "order-uuid",
"product_id": "product-uuid",
"amount": 1000,
"currency": "usd",
"status": "completed",
"customer_email": "[email protected]",
"payment_method": "crypto",
"product_name": "My product",
"platform_fee_cents": 50,
"seller_net_cents": 950,
"payment_reference_id": "...",
"completed_at": "2026-06-30T12:00:00.000Z",
"quantity": 1,
"fulfillment_status": "delivered",
"subtotal_cents": 1000,
"discount_cents": 0,
"coupon_code": null
}
}
}fulfillment_status tells you whether FlintPay already delivered the purchase (delivered) or the order still needs you: awaiting_stock (unique keys ran out) or awaiting_fulfillment (a product you deliver yourself).
Events: order.fulfillment_required and order.delivered
order.fulfillment_required is sent when a paid order needs you (out of stock, or delivered by hand). order.delivered is sent when such an order is delivered later, after a restock or when you mark it delivered. Event ids are stable per order and state, so you can safely ignore repeats.
order.delivered
{
"id": "5f0c…",
"type": "order.delivered",
"created_at": "2026-10-17T12:00:00.000Z",
"data": {
"order": {
"id": "order-uuid",
"product_id": "product-uuid",
"product_name": "Game key",
"delivery_type": "serials",
"quantity": 2,
"items_delivered": 2,
"fulfillment_status": "delivered",
"delivered_at": "2026-10-17T12:00:00.000Z",
"customer_email": "[email protected]"
}
}
}Verify signatures
Signature format: t=timestamp,v1=hex_hmac. Compute HMAC-SHA256 of {timestamp}.{raw_body} using your signing secret.
Node.js
import crypto from "crypto";
function verifyFlintWebhook(rawBody, signatureHeader, secret) {
const parts = Object.fromEntries(
signatureHeader.split(",").map((p) => p.split("="))
);
const expected = crypto
.createHmac("sha256", secret)
.update(`${parts.t}.${rawBody}`)
.digest("hex");
return expected === parts.v1;
}Do not use success_url for fulfillment
The buyer redirect is for UX only. Always deliver products from verified webhook events.