Vignetim

Bestelling ophalen (Get Order)

Haal volledige details op van een specifieke bestelling of controleer de huidige status.

Besteldetails ophalen

GET /orders/:id

Padparameters

NaamTypeVerplichtBeschrijving
idstringJaHet bestel-ID (bijv. ord-a1b2c3d4-e5f6-7890-abcd-ef1234567890)

Antwoord

{
	"id": "ord-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
	"status": "COMPLETED",
	"products": [
		{
			"productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
			"productTypeId": 1,
			"productName": "Austria 10-Day Vignette",
			"quantity": 1,
			"status": "COMPLETED",
			"vehiclePlate": "AB123CD",
			"vehicleCountryIsocode": "AT",
			"startAt": "2026-04-01T00:00:00.000Z",
			"endAt": "2026-04-10T23:59:59.000Z"
		}
	],
	"payment": {
		"type": "CARD",
		"status": "CAPTURED",
		"paidAt": "2026-03-20T14:31:10.000Z"
	},
	"customer": {
		"email": "john.doe@example.com",
		"firstName": "John",
		"lastName": "Doe"
	},
	"total": {
		"amount": 11.5,
		"currency": "EUR"
	},
	"externalReference": "YOUR-ORDER-REF-001",
	"idempotencyKey": "unique-order-key-12345",
	"createdAt": "2026-03-20T14:30:00.000Z",
	"completedAt": "2026-03-20T14:31:15.000Z"
}

Bestelstatus ophalen

Een lichtgewicht endpoint dat alleen de huidige bestelstatus retourneert, handig voor polling.

GET /orders/:id/status

Padparameters

NaamTypeVerplichtBeschrijving
idstringJaHet bestel-ID

Antwoord

{
	"id": "ord-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
	"status": "COMPLETED",
	"updatedAt": "2026-03-20T14:31:15.000Z"
}

Bestelstatussen

StatusBeschrijving
PENDINGBestelling aangemaakt, wacht op betalingsbevestiging
PROCESSINGBetaling bevestigd, producten worden ingericht
COMPLETEDAlle producten succesvol afgeleverd
FAILEDBetaling mislukt of fout bij productinrichting
CANCELLEDBestelling is geannuleerd
REFUNDEDBestelling is terugbetaald