FurlPay Docs
Open App
  • Platform Overviewupdated
  • API Referencenew
  • 5-Minute Sandbox Quickstartupdated
  • Sandbox & Test Assetsnew
  • Create a Developer Account
  • Identity & KYC Verification
  • Passkeys & Biometrics
  • Transaction Statuses & Retries
  • Frequently Asked Questions
  • Core Primitives & Money Modelnew
  • Merchant Payments & Invoices
  • Contractor Payroll & Batch Payouts
  • EIP-3009 Gasless & Recurring
  • Circle CCTP Cross-Chain
  • LI.FI Cross-Chain Swaps
  • Solana Actions & Blinks
  • Wallet Infrastructure & Handles
  • Market Data Streams
  • Gasless Transfers Availability
  • Deposits & Withdrawals Support
  • Agentic Finance Overviewupdated
  • x402 & MPP Settlement Gatewayupdated
  • Agent Identity, Trust & TAP Mandatesupdated
  • Autonomous Finance & Policies
  • Claude Connector (MCP + OAuth 2.1)
  • AI Assistants & HITL Approvals
  • x402 Monetization Basics
  • Settlement Workspace & Maker-Checker
  • Transaction Truth & Double-Entry Ledgerupdated
  • Par 1:1 Routing Simulator Overview
  • Par Quote Engine & Swap Lifecycle
  • Par Networks & Settlement Assets
  • Par Operator Console
  • Par API Reference
  • Par Webhooks
  • Par AML & Travel Rule
  • Screening, Monitoring & Travel Rule
  • Circle Integration
  • Stripe Crypto Integration
  • Persona KYC Integration
  • API Conventions & Idempotencyupdated
  • Authentication, Keys & Versioning
  • Webhooks (PUSH HMAC-SHA512 & PULL)
  • Errors & Exception Playbooks
  • Rate Limits & Retry-After
  • Official SDKs (TS, Python, Go, Rust)updated
  • FurlPay CLI (@furlpay/cli) & MCP
  • Monorepo & Package Reference
  • SDK & API Integration Support
  • Cryptographic Architecture & KMS
  • Security Posture & Isolation
  • Signing Boundaries & WebAuthn
  • Production Configuration & Workers
  • Colocation Directory
  • Security & Compliance Frameworks
  • Regulatory & Launch Posture
  • Privacy, Redaction & GDPR

CLI full reference

  • CLI overview & install
  • Command index
  • MCP tool reference
  • Honesty matrix

Resources

  • Interactive Developer Workbench
  • Operational Status (/status)
  • Release Changelog
  • OpenAPI 3.1 Spec
  • Postman Collection
  • llms.txt (AI Index)
  • llms-full.txt (Full Docs)
  • Network & Assets
  • Proof of Reserves
  • Terms of Service
  • Privacy & DPA
  • Regulatory Disclosures
  • Security Disclosures
  • Contact Support
  • GitHub
Docs/04. Treasury and Institutional Finance/Par Webhooks

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.

bash
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

The URL must be 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.

ParameterTypeDescription
x-furlpay-signaturerequiredheadert=<unix seconds>,v1=<hex HMAC-SHA256(secret, `${t}.${body}`)> — Stripe-style.
x-furlpay-eventrequiredheaderThe event type, for example settlement.completed.
x-furlpay-deliveryrequiredheaderThe delivery id — the same value across every retry, so it can be used to dedupe.
x-furlpay-versionrequiredheaderThe event schema version, currently 2026-11-01.par.
ts
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

The signature covers the exact bytes sent. If your framework parses the JSON before you verify, re-serialise it and you will get a different string and a rejected event. Read the raw body first.

Event types

MethodPathDescription
EVENTswap.lockedA swap was opened from a locked quote.
EVENTdeposit.detectedThe sell leg was seen on chain.
EVENTdeposit.confirmedThe network's confirmation depth was reached.
EVENTsettlement.completedThe swap settled and the payout reference was recorded.
EVENTswap.failedThe 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

A swap that is waiting on a compliance review is a state, not an event type. It is visible in the operator console and in the compliance queue, and the review resolution is what moves it. Adding a new outbound event type is a published-contract change, so it is not done as an implementation detail.

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_letter and 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.

MethodPathDescription
POST/api/webhooks/par-depositSigned deposit notification. Rejects a bad signature, a stale timestamp and a hash another swap already claimed.
ParameterTypeDescription
eventrequiredliteralAlways deposit.detected.
swapIdrequireduuidThe swap the deposit belongs to.
txHashrequiredstringThe deposit transaction. A hash already claimed by another swap is refused.
networkrequirednetwork idThe chain the deposit landed on. Must match the swap's sell leg.
tokenrequiredUSDT | USDCMust match the swap's sell asset.
amountrequireddecimal stringThe deposited amount. Below the quoted amount, the deposit is not credited.
confirmationsrequiredintegerThe observed confirmation depth.
detectedAtrequiredISO-8601When the deposit was observed.
senderAddressoptionalstringThe sender, when the watcher knows it. It is screened as the deposit leg.

A signed report is not a verified deposit

In a live or production deployment the rail verifies the deposit on chain itself — the receipt, the token contract, the recipient, the amount and the confirmation depth — before the deposit counts. A correctly signed notification does not skip that check.
Did this page help?
Edit this page on GitHub

Previous

Par API Reference

Next

Par AML & Travel Rule