A job was paid (sent to your webhook URL)
Documents @snap4id-sdk/partner-api 1.0.0
app.post('/webhooks/snap4id', express.raw({ type: '*/*' }), async (req, res) => { const result = await snap4id.verifyWebhook({ headers: req.headers, rawBody: req.body }); if (!result.ok) return res.status(result.reason === 'keys_unavailable' ? 503 : 401).end(); // never 410 here if (await alreadyProcessed(result.event.event_id)) return res.status(200).end(); await markPaid(result.event.job_id, result.event.payment_ref); res.status(200).end();});Sent once per job (at-least-once delivery) after the unlock. Verify: look up x-snap4id-key-id in GET /api/v1/partner/webhook-keys, check |now − x-timestamp| ≤ 300000 ms, verify x-signature over the canonical string built from the raw body (see the signing section of the overview), then dedupe by event_id. Retried with exponential backoff for up to 259200000 ms after paid_at (fresh timestamp/signature per attempt, same body). A failing webhook never affects the job.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Snap4ID signing key id
Snap4ID signing key id
Unix epoch milliseconds of this attempt
Unix epoch milliseconds of this attempt
Standard padded base64 Ed25519 signature over the canonical string
Standard padded base64 Ed25519 signature over the canonical string
Request Bodyrequired
Section titled “Request Bodyrequired”Job.paid webhook payload. Serialised once (compact JSON, keys in this order) and sent byte-identical on every attempt; verify the signature over the raw received bytes.
object
UUID v5 of the job id (dedupe key)
Payment_ref of the unlocking purchase
Unlock time (ISO 8601)
Examples
{ "event_id": "3b494732-257b-5290-bd93-33a64be78a6f", "type": "job.paid", "job_id": "eu-6f1c2b9e-3d4a-4b8f-9c2e-1a7d5e3f0b42", "payment_ref": "3b241101-e2bb-4255-8caf-4136c566a962", "order_code": "7K3M9Q", "paid_at": "2026-11-24T12:00:00.000Z"}Responses
Section titled “Responses”Gone: stops retries for this event (it is dropped).
Delivered (any 2xx); response body is discarded.
default
Section titled “default”Any other status, timeout or connection failure: retried for the full delivery window.
