API reference

Production access is closed · 37 operations

Look up vehicle data in CEPiK

POST/api/v1/catalog/cepik

Requires the LISTING_API_CEPIK_ENABLED flag. If disabled, the API returns 503 with CEPIK_DISABLED.

Use vehicle details you are authorized to access. The result contains suggestions and selected vehicle history, with no raw report.

Required scope listings:write

Jump to the example

Request body

Schema CepikLookupInput
NameTypeRequiredDescription
vinstringYes—
registrationNumberstringYes—
firstRegistrationDatestringYesformat date
listingTypeValuestringNomin. characters 1 · max. characters 100
JSON Schema
{
  "$ref": "#/components/schemas/CepikLookupInput"
}

Responses

200 Suggested vehicle details from CEPiK.
application/json
Schema CepikLookupResult
NameTypeRequiredDescription
source"CEPIK"Yes—
vehicleHistoryobjectYes—
suggestionsobjectYes—
JSON Schema
{
  "$ref": "#/components/schemas/CepikLookupResult"
}
400 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
404 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
422 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
429 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
502 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
503 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
Other API errors Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
401 A valid API key is required.
403 The scope is missing or the production request does not use HTTPS.

Handle errors and rate limits ↗

Related schemas

CepikLookupInput
{
  "type": "object",
  "properties": {
    "vin": {
      "type": "string",
      "pattern": "^[A-HJ-NPR-Z0-9]{17}$"
    },
    "registrationNumber": {
      "type": "string",
      "pattern": "^[A-Z0-9][A-Z0-9 -]{2,17}[A-Z0-9]$"
    },
    "firstRegistrationDate": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "listingTypeValue": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
    }
  },
  "required": [
    "vin",
    "registrationNumber",
    "firstRegistrationDate"
  ],
  "additionalProperties": false
}
CepikLookupResult
{
  "type": "object",
  "properties": {
    "source": {
      "const": "CEPIK"
    },
    "vehicleHistory": {
      "type": "object",
      "properties": {
        "registrationStatus": {
          "type": "string",
          "maxLength": 160
        },
        "technicalInspectionStatus": {
          "type": "string",
          "maxLength": 160
        },
        "technicalInspectionValidUntil": {
          "type": "string",
          "format": "date"
        },
        "hasCurrentOCPolicy": {
          "type": "boolean"
        },
        "insuranceExpiryDate": {
          "type": "string",
          "format": "date"
        },
        "registrationProvince": {
          "type": "string",
          "maxLength": 160
        },
        "documentType": {
          "type": "string",
          "maxLength": 160
        },
        "documentStatus": {
          "type": "string",
          "maxLength": 160
        },
        "documentIssuedAt": {
          "type": "string",
          "format": "date"
        },
        "vehicleDescriptor": {
          "type": "string",
          "maxLength": 160
        },
        "homologationNumber": {
          "type": "string",
          "maxLength": 160
        },
        "homologationCategory": {
          "type": "string",
          "maxLength": 160
        },
        "homologationType": {
          "type": "string",
          "maxLength": 160
        },
        "homologationVariant": {
          "type": "string",
          "maxLength": 160
        },
        "homologationVersion": {
          "type": "string",
          "maxLength": 160
        },
        "primaryFuelLabel": {
          "type": "string",
          "maxLength": 160
        },
        "alternativeFuelLabel": {
          "type": "string",
          "maxLength": 160
        },
        "fuelLabel": {
          "type": "string",
          "maxLength": 160
        },
        "isPlugInHybrid": {
          "type": "boolean"
        },
        "gearboxLabel": {
          "type": "string",
          "maxLength": 160
        },
        "driveTypeLabel": {
          "type": "string",
          "maxLength": 160
        },
        "totalOwners": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "totalCoOwners": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "currentOwners": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "currentCoOwners": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "axleCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "grossWeightKg": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "payloadKg": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "inspectionEventsCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "historyEventsCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "firstRegistrationAbroadDate": {
          "type": "string",
          "format": "date"
        },
        "firstOwnerInPolandDate": {
          "type": "string",
          "format": "date"
        },
        "reportGenerationDate": {
          "type": "string",
          "format": "date"
        },
        "yearOfProductionDate": {
          "type": "string",
          "format": "date"
        },
        "riskDamaged": {
          "type": "boolean"
        },
        "riskStolen": {
          "type": "boolean"
        },
        "riskScrapped": {
          "type": "boolean"
        },
        "riskOdometerTampering": {
          "type": "boolean"
        }
      }
    },
    "suggestions": {
      "type": "object",
      "properties": {
        "make": {
          "type": "string",
          "maxLength": 120
        },
        "model": {
          "type": "string",
          "maxLength": 120
        },
        "generation": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 80
            },
            {
              "type": "null"
            }
          ]
        },
        "year": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1900,
              "maximum": 2027
            },
            {
              "type": "null"
            }
          ]
        },
        "mileage": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000000
            },
            {
              "type": "null"
            }
          ]
        },
        "engineCc": {
          "type": "integer",
          "minimum": 0,
          "maximum": 30000
        },
        "power": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5000
        },
        "fuelType": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "electric",
                "hybrid",
                "lpg"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "gearbox": {
          "type": "string",
          "maxLength": 80
        },
        "bodyType": {
          "type": "string",
          "maxLength": 80
        },
        "driveType": {
          "type": "string",
          "maxLength": 80
        },
        "color": {
          "type": "string",
          "maxLength": 50
        },
        "details": {
          "type": "object",
          "properties": {
            "firstRegistrationDate": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "registrationInPolandDate": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "firstRegistrationCountry": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            },
            "technicalInspectionUntil": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "ownerCount": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            },
            "seats": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 120
                },
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 12,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              ]
            },
            "powerKw": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "co2Emission": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "euroStandard": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            },
            "fuelConsumptionCombined": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000
            },
            "wheelbaseMm": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "curbWeightKg": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "trailerAxleCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 8
            }
          }
        }
      },
      "required": [
        "details"
      ]
    }
  },
  "required": [
    "source",
    "suggestions",
    "vehicleHistory"
  ]
}