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

ParameterRequiredDescription
api_keyyesAPI key
vinyesVehicle VIN
parts_codesyesPart numbers separated by commas
order_codenoOrder 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

ParameterRequiredDescription
api_keyyesAPI key
task_idyesTask 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

FieldDescription
result.readytrue — the task is done; false — still running, retry later
result.result"Part number → result" object
result.result.*.applicableWhether the part fits the vehicle with the given VIN
result.result.*.replacementsReplacement part numbers (a newer part exists)
errorError information; an empty string means no error