VignetimVignetim
Home
Contact
Log inRegister
  1. Home
  2. /
  3. Developers
  4. /
  5. API Reference
  6. /
  7. Webhooks Overview

Getting Started

  • Introduction
  • Authentication
  • Sandbox
  • Rate Limiting
  • Error Handling

Products

  • Vignette Tickets
  • eSIM Packages
  • Insurance Products
  • Vehicle Categories

Orders

  • Create Order
  • List Orders
  • Get Order

Webhooks

  • Webhooks Overview
  • Webhook Management

MCP

  • MCP Overview
  • Vignetim Claude MCP
  • Vignetim OpenAI MCP

Webhooks Overview

Webhooks deliver real-time HTTP POST notifications to your server when events occur on your orders. This eliminates the need to poll the API for status updates.

Supported Events

EventDescription
order.completedAn order has been fully completed and all products delivered
order.failedAn order has failed (payment failure or provisioning error)
order.refundedAn order has been refunded
order.cancelledAn order has been cancelled
*Wildcard -- receive all events

Webhook Payload

When an event occurs, Vignetim sends a POST request to your registered URL with the following structure:

{
	"event": "order.completed",
	"timestamp": "2026-03-20T14:31:15.000Z",
	"data": {
		"orderId": "ord-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
		"status": "COMPLETED",
		"externalReference": "YOUR-ORDER-REF-001",
		"products": [
			{
				"productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
				"productTypeId": 1,
				"status": "COMPLETED"
			}
		],
		"total": {
			"amount": 11.5,
			"currency": "EUR"
		},
		"completedAt": "2026-03-20T14:31:15.000Z"
	}
}

Delivery Headers

Each webhook delivery includes the following headers:

HeaderDescription
X-Webhook-SignatureHMAC-SHA256 hex signature of the request body, signed with the webhook's signingSecret
X-Webhook-EventThe event type (e.g., order.completed)
X-Webhook-TimestampISO 8601 timestamp of when the event was generated
Content-Typeapplication/json

Signature Verification

Always verify the webhook signature to ensure the payload is authentic and has not been tampered with.

import crypto from 'crypto';

function verifyWebhookSignature(body, signature, secret) {
	const expected = crypto.createHmac('sha256', secret).update(body).digest('hex');

	return crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
}

// In your webhook handler:
app.post('/webhooks/vignetim', (req, res) => {
	const signature = req.headers['x-webhook-signature'];
	const rawBody = req.rawBody; // Ensure you capture the raw body

	if (!verifyWebhookSignature(rawBody, signature, 'whs_your-webhook-signing-secret')) {
		return res.status(401).send('Invalid signature');
	}

	const event = req.body;
	console.log(`Received event: ${event.event}`);

	// Process the event...

	res.status(200).send('OK');
});

Retry Policy

If your endpoint does not return a 2xx response within 10 seconds, Vignetim retries delivery:

AttemptDelay
1st retryImmediate
2nd retry1 second
3rd retry5 seconds

After all 3 retry attempts fail, the delivery is marked as failed.

Auto-Disable

If a webhook endpoint accumulates 10 consecutive delivery failures, it is automatically disabled. You will need to re-enable it from the API or your partner dashboard. Use the test endpoint (POST /webhooks/:id/test) to verify connectivity before re-enabling.

Previous← Get OrderNextWebhook Management→
VignetimVignetim
Visa
Mastercard
American Express

Vignettes & Tolls

  • Bulgaria Vignette
  • Czech Republic Vignette
  • Hungary Vignette
  • Slovakia Vignette
  • Slovenia Vignette
  • Romania Vignette
  • Moldova Vignette
  • Switzerland Vignette
  • Estonia Vignette
  • Iceland Tolls
  • Netherlands Tolls
  • Ireland Tolls

Insurances

  • Travel Health Insurance
  • Green Card Insurance

Company

  • FAQs
  • About
  • Contact
  • API Reference
  • Fleet

Privacy

  • Terms and Use
  • Privacy Policy
  • Cookie Policy
  • User Data Deletion Instruction

Social

  • Instagram
  • LinkedIn
  • X (Twitter)
  • Facebook

Vignetim | E-vignette, eSIM & Insurance

Purchase and manage your European e-vignettes, eSIMs and insurance easily with Vignetim.

Available on iOS & Android.

Download on App StoreGet it on Google Play

Copyright © 2026 Vignetim | Vignette, eSIM & Insurance