Website

Read advert data

Last update: 11.12.2023

This section is restricted for partners use. If You accessing API with "password" grant type - go to Account section Advert is a base domain model containing all the information about advertisement (title, description and price among others) and the params - set of relevant properties describing thing being subject of given advert.

GET: https://www.autovit.ro/api/open/adverts/:id

Permission: read

Header

Field Type Description
User-Agent string Account email.

Path Param

Field Type Description
id Number Adverts unique ID

Query Param

Field Type Description
voptional Number Optional parameter to specify which version to use (2 - for new version; anything else for OLD version)

Example request:
		HTTP/1.1 GET /adverts/999

User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN			
		
Copied to clipboard
Success response:
		HTTP/1.1 200 OK
{
    "id": 999,
    "user_id": 1,
    "status": "active",
    "title": "Advert title",
    "url": "http://{example.com}/ad/{example}.html",
    "created_at": "2015-10-01 10:54:11",
    "valid_to": "2015-10-15 11:05:34",
    "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
    "category_id": 29,
    "region_id": 3,
    "city_id": 24545,
    "municipality": "Municipality name",
    "city":
    {
        "ro": "City name",
        "en": "City name"
    },
    "coordinates":
    {
        "latitude": 51.26247,
        "longitude": 15.56956,
        "radius": 4,
        "zoom_level": 12
    },
    "advertiser_type": "private",
    "contact":
    {
        "person": "John Doe"
    },
    "params":
    {
        "make": "ford",
        "model": "focus",
        "version": "mk1-1998-2004",
        "year": 2003,
        "mileage": 199000,
        "fuel_type": "petrol",
        "engine_capacity": 1600,
        "engine_power": 120,
        "gearbox": "manual",
        "transmission": "front-wheel",
        "co2_emissions": 136,
        "particle_filter": "1",
        "damaged": "0",
        "body_type": "hatchback",
        "door_count": 4,
        "color": "violet",
        "metallic": "1",
        "pearl": "1",
        "matt": "0",
        "acrylic": "0",
        "nr_seats": 5,
        "rhd": "1",
        "features":
        [
            "abs",
            "alarm",
            "alloy-wheels"
        ],
        "price":
        {
            "0": "arranged",
            "1": 20000,
            "currency": "RON",
            "gross_net": "gross"
        },
        "vat_discount": "0",
        "vat": "1",
        "financial_option": "0",
        "leasing_concession": "0",
        "country_origin": "d",
        "date_registration": "2003-3-01",
        "vin": "WF0WXXGCDW6M23967",
        "registered": "1",
        "original_owner": "0",
        "no_accident": "0",
        "service_record": "1",
        "historical_vehicle": "0",
        "tuning": "0",
        "approval_for_goods": "0"
    },
    "photos":
    {
        "1":
        {
            "1080x720": "http://lorempixel.com/1080/720/transport/9/",
            "732x488": "http://lorempixel.com/732/488/transport/9/",
            "320x240": "http://lorempixel.com/320/240/transport/9/",
            "148x110": "http://lorempixel.com/148/110/transport/9/"
        },
        "2":
        {
            "1080x720": "http://lorempixel.com/1080/720/transport/2/",
            "732x488": "http://lorempixel.com/732/488/transport/2/",
            "320x240": "http://lorempixel.com/320/240/transport/2/",
            "148x110": "http://lorempixel.com/148/110/transport/2/"
        },
        "3":
        {
            "1080x720": "http://lorempixel.com/1080/720/transport/7/",
            "732x488": "http://lorempixel.com/732/488/transport/7/",
            "320x240": "http://lorempixel.com/320/240/transport/7/",
            "148x110": "http://lorempixel.com/148/110/transport/7/"
        }
    },
    "image_collection_id": 817443447,
    "external_partner_code": "partner-code",
    "external_id": "126",
    "last_update_date": "2015-10-15 11:05:35",
    "new_used": "used"
}			
		
Copied to clipboard
Error response example:
		HTTP/1.1 404 Not Found
{
    "error":
    {
        "type": "NotFoundException",
        "message": "Advert 999 not found."
    }
}			
		
Copied to clipboard