Detail d'une commande (Get Order)

Recuperez les details complets d'une commande specifique ou verifiez son statut actuel.

Obtenir les details d'une commande

text
GET /orders/:id

Parametres de chemin

NomTypeRequisDescription
idstringOuiL'ID de la commande (par ex., ord-a1b2c3d4-e5f6-7890-abcd-ef1234567890)

Reponse

json
{
	"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"
}

Obtenir le statut d'une commande

Un endpoint leger qui retourne uniquement le statut actuel de la commande, utile pour le polling.

text
GET /orders/:id/status

Parametres de chemin

NomTypeRequisDescription
idstringOuiL'ID de la commande

Reponse

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

Statuts de commande

StatutDescription
PENDINGCommande creee, en attente de confirmation de paiement
PROCESSINGPaiement confirme, produits en cours de provisionnement
COMPLETEDTous les produits livres avec succes
FAILEDEchec du paiement ou erreur de provisionnement des produits
CANCELLEDLa commande a ete annulee
REFUNDEDLa commande a ete remboursee