Usamos cookies para mejorar tu experiencia. Al continuar, aceptas nuestra Política de cookies.

plan.parts
Acerca de Bases de datos Tareas de datos Cómo funciona Precios Docs Blog Soporte Contactos
GET Beta Gratis

OEM Session: state

/v1/oem/sessions/{session_id}

Beta. Step 2. Session state, vehicle modifications and the whole tree of nodes. ?wait=1..20 waits for the next state (long-poll). States: fetching_mods → mods_ready → fetching_tree → tree_ready → loading_nodes → ready, or error

Parámetros

Name Type Required Description Example
session_id string path requerido session_id from step 1 3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f
wait integer query opcional Wait up to N seconds (1–20) for the next state (long-poll) 20
lang string query opcional Language of names: en (default), ru, es, fr, pt en

Solicitud de ejemplo

GET https://cdn.plan.parts/api/v1/oem/sessions/3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f?wait=20&lang=en
Authorization: Bearer your_api_key

Respuesta de ejemplo

{
    "success": true,
    "data": {
        "lifetime": {
            "created_at": "2026-11-27T12:49:37+03:00",
            "expires_at": "2026-11-27T15:49:37+03:00",
            "expires_in": 10800,
            "max_expires_at": "2026-11-28T12:49:37+03:00",
            "age": 0,
            "extends_by": 10800,
            "max_age": 86400
        },
        "session_id": "3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f",
        "vin": "JTDKB20U883408205",
        "modifications": [
            {
                "id": "TOYOTA00",
                "name": "PRIUS",
                "catalog": "TOYOTA00",
                "details": [
                    {
                        "key": "description",
                        "value": "NHW20",
                        "label": "Model"
                    },
                    {
                        "key": "model",
                        "value": "NHW20L-AHEEBW",
                        "label": "Model code"
                    },
                    {
                        "key": "steering",
                        "label": "Steering",
                        "value": "LEFT-HAND DRIVE VEHICLES"
                    },
                    {
                        "key": "engine",
                        "label": "Engine",
                        "value": "(1NZFXE) 1500CC 16-VALVE DOHC EFI"
                    },
                    {
                        "key": "market",
                        "label": "Market",
                        "value": "EUROPE"
                    }
                ],
                "brand": "TOYOTA",
                "index": 0,
                "display_name": "PRIUS NHW20L-AHEEBW \u00b7 LEFT-HAND DRIVE VEHICLES \u00b7 EUROPE"
            },
            {
                "id": "TOYOTA00",
                "name": "PRIUS",
                "catalog": "TOYOTA00",
                "details": [
                    {
                        "key": "description",
                        "value": "NHW20",
                        "label": "Model"
                    },
                    {
                        "key": "model",
                        "value": "NHW20R-AHEEBQ",
                        "label": "Model code"
                    },
                    {
                        "key": "steering",
                        "label": "Steering",
                        "value": "RIGHT-HAND DRIVE VEHICLES"
                    },
                    {
                        "key": "engine",
                        "label": "Engine",
                        "value": "(1NZFXE) 1500CC 16-VALVE DOHC EFI"
                    },
                    {
                        "key": "market",
                        "label": "Market",
                        "value": "AUSTRALIA"
                    }
                ],
                "brand": "TOYOTA",
                "index": 1,
                "display_name": "PRIUS NHW20R-AHEEBQ \u00b7 RIGHT-HAND DRIVE VEHICLES \u00b7 AUSTRALIA"
            }
        ],
        "selected_index": null,
        "opened_modifications": [
            0,
            1
        ],
        "state": "mods_ready",
        "lang": "en"
    }
}

Probar en el área de pruebas

Test this endpoint with real data in the Developer Portal sandbox.

Probar en el área de pruebas →

Sin tarjeta de crédito

Costo en tokens

This endpoint is free — no tokens are deducted.