Uzupełnij dane z CEPiK
POST
/api/v1/catalog/cepikWymaga włączonej flagi LISTING_API_CEPIK_ENABLED. Wyłączona flaga powoduje odpowiedź 503 z kodem CEPIK_DISABLED.
Używaj wyłącznie danych pojazdu, do których masz uprawnienie. Wynik zawiera sugestie i wybrane dane historii pojazdu, bez surowego raportu.
Wymagany zakres listings:write
Treść żądania
Schemat CepikLookupInput
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
vin | string | Tak | — |
registrationNumber | string | Tak | — |
firstRegistrationDate | string | Tak | format date |
listingTypeValue | string | Nie | min. znaków 1 · maks. znaków 100 |
JSON Schema
{
"$ref": "#/components/schemas/CepikLookupInput"
}Odpowiedzi
200 Propozycje danych pojazdu z CEPiK.application/jsonSchemat CepikLookupResult
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
source | "CEPIK" | Tak | — |
vehicleHistory | object | Tak | — |
suggestions | object | Tak | — |
JSON Schema
{
"$ref": "#/components/schemas/CepikLookupResult"
}400 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Pozostałe błędy API Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Brak prawidłowego klucza API.403 Brak zakresu wymaganego przez operację lub żądanie bez HTTPS na produkcji.Powiązane schematy
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"
]
}