Docs

# Activate Vignette

Finalizes and activates a draft vignette previously created using the /v1/vignette/create endpoint. Once activated, the vignette becomes officially valid and is registered with the tolling system.

This step is essential in the vignette issuance process and should only be called once payment has been processed and confirmed.

# Request

POST /v1/vignette/activate

# Parameters

Parameter Type Required Description
sale_id string Yes The unique identifier of the draft vignette to be activated. This corresponds to the id field in the response from /v1/vignette/create.
passthrough object No An object containing custom data; this will be sent back with the webhook response, useful for internal tracking.
webhook_name string No This parameter is used if multiple webhooks were defined for your account during onboarding.

# Code samples

curl -X POST "https://api.rovinieteonline.ro/v1/vignette/activate" \
     -H "X-Authorization: [YOUR_API_KEY]" \
     -H "Content-Type: application/json" \
     -d '{
           "sale_id": "string"
         }'
try {
    const res = await fetch("https://api.rovinieteonline.ro/v1/vignette/activate", {
        method: "POST",
        headers: {
            "X-Authorization": "[YOUR_API_KEY]",
            "Content-Type": "application/json"
        },
        body: JSON.stringify({
            sale_id: "string"
        })
    })
    const json = await res.json()
    console.log(json)
} catch (err) {
    console.log(err)
}

# Response

Returns the full, finalized vignette record, including fiscal and vehicle details, product metadata, and validity period.

{
  "success": true,
  "vignetteId": "string",
}