API reference

Production access is closed · 37 operations

Create a listing draft

POST/api/v1/listings/drafts

Listing draft created.

Required scope listings:write

Jump to the example

Parameters

NameLocationTypeRequiredDescription
Idempotency-KeyheaderstringYesRequest UUID. Retry with the same key within 7 days. format uuid

Request body

Schema CreateDraftInput
NameTypeRequiredDescription
titlestringNomax. characters 100
shortDescriptionstringNomax. characters 80
descriptionstringNomax. characters 16000
priceintegerNominimum 0 · maximum 1000000000
makestringNomax. characters 120
modelstringNomax. characters 120
generationstring | nullNo—
makeIdstringNomax. characters 180
modelIdstringNomax. characters 300
generationIdstringNomax. characters 180
yearinteger | nullNo—
locationstringNo—
voivodeshipstringNomax. characters 80
mileageinteger | nullNo—
fuelType"petrol" | "diesel" | "electric" | "hybrid" | "lpg" | nullNo—
bodyTypestringNomax. characters 80
gearboxstringNomax. characters 80
driveTypestringNomax. characters 80
powerintegerNominimum 1 · maximum 5000
engineCcintegerNominimum 0 · maximum 30000
colorstringNomax. characters 50
condition"new" | "used"No"new" | "used"
noAccidentbooleanNo—
firstOwnerbooleanNo—
vatInvoicebooleanNo—
negotiablebooleanNo—
contactNamestringNomax. characters 120
contactPhonestringNomax. characters 40
dealerLocationIdstring | nullNo—
priceTypestringNomax. characters 40
equipmentstring[]Nomax. items 300
imagesstring | string[]Nomax. items 18
detailsobjectNo—
latnumberNominimum -90 · maximum 90
lngnumberNominimum -180 · maximum 180
listingTypeValuestringYesmin. characters 1 · max. characters 100
formContractVersion2No—
packageTier"free" | "basic" | "plus" | "pro"No"free" | "basic" | "plus" | "pro"
JSON Schema
{
  "$ref": "#/components/schemas/CreateDraftInput"
}

Responses

201 Listing draft created.
ETag
Resource version for the If-Match header.
Location
Path to the new draft.
application/json
Schema MutationReceipt
NameTypeRequiredDescription
idstringYes—
status"draft" | "payment_required" | "active" | "expired" | "sold"Yes—
publicationState"public" | "pending" | "hidden"Yes—
updatedAtstringYesformat date-time
publicPathstring | nullYes—
paymentPathstringNo—
paymentPaymentReceiptNo—
archiveFeedbackobjectNo—
JSON Schema
{
  "$ref": "#/components/schemas/MutationReceipt"
}
409 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"
      }
    }
  }
}
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.
429 Rate limit exceeded. Check Retry-After.
503 Access is closed or the service is temporarily unavailable. Check code.

Handle errors and rate limits ↗

Related schemas

CreateDraftInput
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 100,
      "pattern": "^[^\\p{Cc}\\p{Cf}]*$"
    },
    "shortDescription": {
      "type": "string",
      "maxLength": 80
    },
    "description": {
      "type": "string",
      "maxLength": 16000,
      "pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
    },
    "price": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    },
    "make": {
      "type": "string",
      "maxLength": 120
    },
    "model": {
      "type": "string",
      "maxLength": 120
    },
    "generation": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ]
    },
    "makeId": {
      "type": "string",
      "maxLength": 180
    },
    "modelId": {
      "type": "string",
      "maxLength": 300
    },
    "generationId": {
      "type": "string",
      "maxLength": 180
    },
    "year": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1900,
          "maximum": 2027
        },
        {
          "type": "null"
        }
      ]
    },
    "location": {
      "type": "string"
    },
    "voivodeship": {
      "type": "string",
      "maxLength": 80
    },
    "mileage": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000000
        },
        {
          "type": "null"
        }
      ]
    },
    "fuelType": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "petrol",
            "diesel",
            "electric",
            "hybrid",
            "lpg"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "bodyType": {
      "type": "string",
      "maxLength": 80
    },
    "gearbox": {
      "type": "string",
      "maxLength": 80
    },
    "driveType": {
      "type": "string",
      "maxLength": 80
    },
    "power": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000
    },
    "engineCc": {
      "type": "integer",
      "minimum": 0,
      "maximum": 30000
    },
    "color": {
      "type": "string",
      "maxLength": 50
    },
    "condition": {
      "type": "string",
      "enum": [
        "new",
        "used"
      ]
    },
    "noAccident": {
      "type": "boolean"
    },
    "firstOwner": {
      "type": "boolean"
    },
    "vatInvoice": {
      "type": "boolean"
    },
    "negotiable": {
      "type": "boolean"
    },
    "contactName": {
      "type": "string",
      "maxLength": 120
    },
    "contactPhone": {
      "type": "string",
      "maxLength": 40
    },
    "dealerLocationId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ]
    },
    "priceType": {
      "type": "string",
      "maxLength": 40
    },
    "equipment": {
      "maxItems": 300,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 120
      }
    },
    "images": {
      "maxItems": 18,
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "string",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
          },
          {
            "type": "string",
            "pattern": "^existing:[a-f0-9]{64}$"
          }
        ]
      }
    },
    "details": {
      "type": "object",
      "properties": {
        "vin": {
          "type": "string",
          "minLength": 1,
          "maxLength": 17,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "serialNumber": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "registrationNumber": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "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])))$"
        },
        "lifetimeHours": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "trailerAxleCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 8
        },
        "trailerCargo": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "trailerGrossWeightKg": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "trailerPayloadKg": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "camperBedLayout": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "camperSleepingPlaces": {
          "type": "integer",
          "minimum": 0,
          "maximum": 50
        },
        "camperTravelSeats": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "camperBase": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "camperGvwKg": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "camperKitchen": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "camperBathroom": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "propulsion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "maxExcavatingDepthMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "maxExcavatingCapacityM3": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000
        },
        "maxLiftingWeightKg": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "maxLiftingHeightMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "offHighway": {
          "type": "boolean"
        },
        "refrigeratorUnit": {
          "type": "boolean"
        },
        "partMainCategory": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partSubCategory": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partCategoryPath": {
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          }
        },
        "partProducer": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partProducerCustom": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partCondition": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partStockQuantity": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        },
        "partVehicleTypes": {
          "maxItems": 24,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          }
        },
        "partCompatibilityVehicles": {
          "maxItems": 80,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scope": {
                "type": "string",
                "enum": [
                  "passenger",
                  "delivery",
                  "truck",
                  "motorcycle",
                  "camper",
                  "trailer",
                  "agriculture",
                  "construction"
                ]
              },
              "make": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "generation": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "makeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 180,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "modelId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "generationId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 180,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customMake": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "yearFrom": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "yearTo": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "engineVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              }
            },
            "additionalProperties": false
          }
        },
        "partYearFrom": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2200
        },
        "partYearTo": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2200
        },
        "partTireWidth": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 500
            },
            {
              "type": "string",
              "pattern": "^\\d{2,3}$"
            }
          ]
        },
        "partTireProfile": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            {
              "type": "string",
              "pattern": "^\\d{1,3}$"
            }
          ]
        },
        "partRimSize": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 1,
              "maximum": 100
            },
            {
              "type": "string",
              "pattern": "^\\d{1,2}(?:[.,]\\d{1,2})?$"
            }
          ]
        },
        "partTireType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partRimsType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partDelivery": {
          "type": "object",
          "properties": {
            "dpdEnabled": {
              "type": "boolean"
            },
            "dpdCost": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000
            },
            "inpostEnabled": {
              "type": "boolean"
            },
            "inpostCost": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000
            },
            "postEnabled": {
              "type": "boolean"
            },
            "postCost": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000
            },
            "pickupEnabled": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "partOeNumbers": {
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          }
        },
        "partQuantityLabel": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partEngineVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partTireBrand": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partSpeedIndex": {
          "type": "string",
          "minLength": 1,
          "maxLength": 12,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partRollingResistance": {
          "type": "string",
          "minLength": 1,
          "maxLength": 12,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partWetGrip": {
          "type": "string",
          "minLength": 1,
          "maxLength": 12,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partExternalNoiseDb": {
          "type": "integer",
          "minimum": 0,
          "maximum": 150
        },
        "partInstallationPositions": {
          "maxItems": 12,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          }
        },
        "partSteeringSide": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partAdditionalCompatibility": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partDeliveryTime": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partReturnPolicy": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partSalesDocument": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "partCustomName": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "offerMode": {
          "type": "string",
          "enum": [
            "sale",
            "rent"
          ]
        },
        "financingAvailable": {
          "type": "boolean"
        },
        "leasingAvailable": {
          "type": "boolean"
        },
        "exchangePossible": {
          "type": "boolean"
        },
        "showPhone": {
          "type": "boolean"
        },
        "mapPinnedManually": {
          "type": "boolean"
        },
        "damaged": {
          "type": "boolean"
        },
        "rightHandDrive": {
          "type": "boolean"
        },
        "doubleRearWheels": {
          "type": "boolean"
        },
        "engineCode": {
          "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}]+$"
            }
          ]
        },
        "doors": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 12,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            }
          ]
        },
        "colorType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "upholsteryMaterial": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "upholsteryColor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "motorcycleLicenseCategory": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "truckCabinType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "dpfStatus": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "accidentHistory": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "serviceHistory": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "ownerCount": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "firstRegistrationCountry": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "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])))$"
        },
        "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])))$"
        },
        "warrantyUntil": {
          "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])))$"
        },
        "makerWarrantyUntilKm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000000
        },
        "lengthMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "widthMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "heightMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "wheelbaseMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "curbWeightKg": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "camperInteriorLengthMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "camperInteriorWidthMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "camperInteriorHeightMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "camperTotalHeightMm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "camperFreshWaterL": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "camperGreyWaterL": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "camperLpgTankL": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "powerKw": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "topSpeedKmh": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2000
        },
        "torqueNm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        },
        "co2Emission": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "euroStandard": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "fuelConsumptionCity": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000
        },
        "fuelConsumptionHighway": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000
        },
        "fuelConsumptionCombined": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000
        },
        "tankCapacityL": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        },
        "trunkCapacityL": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        },
        "acceleration0100": {
          "type": "number",
          "minimum": 0,
          "maximum": 120
        },
        "batteryRangeKm": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "chargerPowerKw": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "maxChargingPowerKw": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000
        },
        "chargingTime80Min": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        },
        "chargingTime100Min": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        },
        "chargingTimeHomeMin": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        },
        "chargingConnectorType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "chargingCurrentType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "batteryCapacityKwh": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000
        },
        "batteryType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "batteryCondition": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "batteryCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000
        },
        "batteryCycleCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "electricPowerPeakKw": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "evBattery": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "evCable": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "evFastCharge": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "evRegen": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "customMake": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "customModel": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        }
      },
      "additionalProperties": false
    },
    "lat": {
      "type": "number",
      "minimum": -90,
      "maximum": 90
    },
    "lng": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "listingTypeValue": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
    },
    "formContractVersion": {
      "type": "number",
      "const": 2
    },
    "packageTier": {
      "type": "string",
      "enum": [
        "free",
        "basic",
        "plus",
        "pro"
      ]
    }
  },
  "required": [
    "listingTypeValue"
  ],
  "additionalProperties": false
}
MutationReceipt
{
  "type": "object",
  "required": [
    "id",
    "status",
    "publicationState",
    "updatedAt",
    "publicPath"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "enum": [
        "draft",
        "payment_required",
        "active",
        "expired",
        "sold"
      ]
    },
    "publicationState": {
      "enum": [
        "public",
        "pending",
        "hidden"
      ]
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "publicPath": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentPath": {
      "type": "string"
    },
    "payment": {
      "$ref": "#/components/schemas/PaymentReceipt"
    },
    "archiveFeedback": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "outcome": {
          "enum": [
            "sold",
            "not_sold",
            "other"
          ]
        },
        "recommendationScore": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 10
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "outcome",
        "recommendationScore",
        "updatedAt"
      ]
    }
  }
}
PaymentReceipt
{
  "type": "object",
  "required": [
    "id",
    "amountCents",
    "currency",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "amountCents": {
      "type": "integer",
      "minimum": 1
    },
    "currency": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  }
}