Order check
Checking whether part numbers fit the vehicle with a given VIN is asynchronous: OrderCheck queues a task and returns a task_id; OrderCheckResult returns the result by task_id.
OrderCheck
Queue an order check task. Cost — 2 units.
GET https://api.levam.net/oem/v1/OrderCheck
Parameters
| Parameter | Required | Description |
|---|---|---|
api_key | yes | API key |
vin | yes | Vehicle VIN |
parts_codes | yes | Part numbers separated by commas |
order_code | no | Order code (reserved, not used) |
Example
curl "https://api.levam.net/oem/v1/OrderCheck?api_key=KEY&vin=WBAUB31060VH40246&parts_codes=24007572464"
{
"error": "",
"result": { "task_id": "4c9caf3deb6cad4eb73a7f7f9c679e57" }
}
OrderCheckResult
The check result. Free method — poll until ready becomes true.
GET https://api.levam.net/oem/v1/OrderCheckResult
Parameters
| Parameter | Required | Description |
|---|---|---|
api_key | yes | API key |
task_id | yes | Task identifier from OrderCheck |
Example
curl "https://api.levam.net/oem/v1/OrderCheckResult?api_key=KEY&task_id=4c9caf3deb6cad4eb73a7f7f9c679e57"
{
"error": "",
"result": {
"ready": true,
"result": {
"24007572464": {
"applicable": true,
"replacements": ["24007572465"]
}
}
}
}
Response fields
| Field | Description |
|---|---|
result.ready | true — the task is done; false — still running, retry later |
result.result | "Part number → result" object |
result.result.*.applicable | Whether the part fits the vehicle with the given VIN |
result.result.*.replacements | Replacement part numbers (a newer part exists) |
error | Error information; an empty string means no error |