Par 1:1 FX
Par webhooks
Par delivers lifecycle events to an endpoint you register, signed with HMAC-SHA256 over the exact bytes sent. It also accepts one inbound notification — a deposit report — signed the same way.
Registering an endpoint
Register with POST /api/par/webhooks (console session) or POST /api/v1/par/webhooks (API key, webhooks:manage). The response carries the signing secret exactly once — it is not readable again from any endpoint.
curl -X POST https://furlpay.com/api/v1/par/webhooks \
-H "authorization: Bearer sk_live_..." \
-H "content-type: application/json" \
-d '{"url":"https://psp.example.com/webhooks/furlpay-par"}'The endpoint is checked before it is stored
https in production, and private, loopback, link-local and cloud-metadata hosts are refused. A registration that points at your own infrastructure is rejected, not silently queued.The secret is sealed at rest with AES-256-GCM under an operator-bound additional authenticated data value. It is never returned by a GET, and it never appears in a delivery record.
The signature contract
Every outbound delivery carries the same header family, which is Furlpay's house convention across merchant, partner and Par webhooks alike.
| Parameter | Type | Description |
|---|---|---|
| x-furlpay-signaturerequired | header | t=<unix seconds>,v1=<hex HMAC-SHA256(secret, `${t}.${body}`)> — Stripe-style. |
| x-furlpay-eventrequired | header | The event type, for example settlement.completed. |
| x-furlpay-deliveryrequired | header | The delivery id — the same value across every retry, so it can be used to dedupe. |
| x-furlpay-versionrequired | header | The event schema version, currently 2026-11-01.par. |
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(rawBody: string, header: string, secret: string): boolean {
const parts = Object.fromEntries(
header.split(",").map((p) => p.split("="))
) as { t: string; v1: string };
// Reject a stale timestamp before doing any work.
const age = Math.abs(Date.now() / 1000 - Number(parts.t));
if (!Number.isFinite(age) || age > 300) return false;
const expected = createHmac("sha256", secret)
.update(`${parts.t}.${rawBody}`)
.digest("hex");
const a = Buffer.from(expected, "utf8");
const b = Buffer.from(parts.v1, "utf8");
return a.length === b.length && timingSafeEqual(a, b);
}Verify over the raw body
Event types
| Method | Path | Description |
|---|---|---|
| EVENT | swap.locked | A swap was opened from a locked quote. |
| EVENT | deposit.detected | The sell leg was seen on chain. |
| EVENT | deposit.confirmed | The network's confirmation depth was reached. |
| EVENT | settlement.completed | The swap settled and the payout reference was recorded. |
| EVENT | swap.failed | The swap failed, with a reason in the payload. |
The payload is the same envelope for every event: an id, the type, the schema version, the creation time, and a data object. The data carries the swap id and the state relevant to the event — for example the transaction hash on a deposit, or the settlement receipt on a completion.
A parked swap is not a webhook event
Delivery, retries and dead letters
- Three attempts per delivery, with a 3-second timeout each.
- A response below 500 stops the retries — a 4xx is the endpoint telling you the event is wrong, and retrying it would not help.
- A delivery that exhausts its attempts is recorded as
dead_letterand stays in the outbox. - A dead-lettered delivery can be replayed from the console or from the v1 API. The replay re-signs the payload with a fresh timestamp and a new delivery id.
- The delivery history is readable at
GET /api/v1/par/webhooks/deliveries.
Test the whole path before going live: POST /api/par/webhooks/test delivers a signed event to your endpoint, or — with no endpoint registered — returns the signature header and the payload so you can verify your implementation locally.
Inbound deposit notification
POST /api/webhooks/par-deposit accepts a deposit report from a chain watcher or from your own operator. It is authenticated by an HMAC signature over the raw body, signed with FURLPAY_PAR_DEPOSIT_SECRET.
| Method | Path | Description |
|---|---|---|
| POST | /api/webhooks/par-deposit | Signed deposit notification. Rejects a bad signature, a stale timestamp and a hash another swap already claimed. |
| Parameter | Type | Description |
|---|---|---|
| eventrequired | literal | Always deposit.detected. |
| swapIdrequired | uuid | The swap the deposit belongs to. |
| txHashrequired | string | The deposit transaction. A hash already claimed by another swap is refused. |
| networkrequired | network id | The chain the deposit landed on. Must match the swap's sell leg. |
| tokenrequired | USDT | USDC | Must match the swap's sell asset. |
| amountrequired | decimal string | The deposited amount. Below the quoted amount, the deposit is not credited. |
| confirmationsrequired | integer | The observed confirmation depth. |
| detectedAtrequired | ISO-8601 | When the deposit was observed. |
| senderAddressoptional | string | The sender, when the watcher knows it. It is screened as the deposit leg. |
A signed report is not a verified deposit
