GET: https://www.autovit.ro/api/open/account/adverts/:id
Permission: read
Header
| Field | Type | Description |
|---|---|---|
| User-Agent | string | Account email. |
Path Param
| Field | Type | Description |
|---|---|---|
| id | Number | Adverts unique ID |
Example request:
HTTP/1.1 GET /account/adverts/7043357813
User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN
Copied to clipboard
Success response:
HTTP/1.1 200 OK
{
"id": 7043357813,
"user_id": 3161635,
"status": "unpaid",
"title": "Supapa EGR AUDI A2 pentru 1.4 pentru oe 036131503M an 2000 2001 2002 2003 2004 2005 piesa NOUA",
"url": "https://www.autovit.ro/anunt/supapa-egr-audi-a2-pentru-1-4-pentru-oe-036131503m-an-2000-2001-2002-2003-2004-2005-piesa-noua-ID7GFd7n.html",
"created_at": "2020-11-04 16:42:29",
"valid_to": "2020-12-04 16:42:29",
"description": "Bara fata Mercedes ML W166 an 2011-2015 cu senzori spalatori originala in stare buna Piesa a fost usor reparata in partea dreapta, conform pozelor 5018 h2c Mai multe poze pe autovit. Societatea noastră practica politica de retur, respectiv cea specificata de O.U. 34/2014, cu specificația faptulului ca pentru retururile nejustificate costurile de transport sunt în sarcina clientului.",
"category_id": 69,
"region_id": 46,
"city_id": 1,
"district_id": 1,
"city": {
"ro": "Bucuresti",
"en": "Bucuresti"
},
"district": {
"ro": "Sectorul 1",
"en": ""
},
"coordinates": {
"latitude": 44.48799,
"longitude": 26.04725,
"radius": 0,
"zoom_level": 13
},
"advertiser_type": "business",
"contact": {
"person": "Testing",
"phone_numbers": [
"3222222"
]
},
"params": {
"type": "caroserie-interior",
"delivery": "1",
"title": "Supapa EGR AUDI A2 pentru 1.4 pentru oe 036131503M an 2000 2001 2002 2003 2004 2005 piesa NOUA",
"compatibility": [
{
"make": "ferrari"
}
],
"manufacturer": "Ferrari",
"manufacturer_code": "223344",
"make": "ferrari",
"price": {
"0": "arranged",
"1": 0.1,
"currency": "RON",
"gross_net": "net"
}
},
"photos": {
"1": {
"1080x720": "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI/image;s=1080x720",
"732x488": "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI/image;s=732x488",
"148x110": "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI/image;s=148x110",
"320x240": "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI/image;s=320x240",
"1280x800": "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIn0.whR98kkN_GyQnQ06ZLmTJrGN_X-0XIeMVnlUezPkaVk/image;s=1280x800"
}
},
"image_collection_id": 951934228,
"new_used": "used",
"last_update_date": "2020-11-04 16:42:29"
}
Copied to clipboard
Error response example:
HTTP/1.1 404 Not Found
{
"error":
{
"type": "NotFoundException",
"message": "Advert 7043357813 not found."
}
}
Copied to clipboard