{"id":298,"date":"2023-12-03T14:34:17","date_gmt":"2023-12-03T14:34:17","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=298"},"modified":"2023-12-11T07:03:49","modified_gmt":"2023-12-11T07:03:49","slug":"account-read-single-advert-data","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=298","title":{"rendered":"Read single advert data"},"content":{"rendered":"\n\n\t<p><strong>GET<\/strong><strong>:<\/strong>\u00a0<a href=\"https:\/\/www.autovit.ro\/api\/open\/account\/adverts\/:id\">https:\/\/www.autovit.ro\/api\/open\/account\/adverts\/:id<\/a><\/p>\n<p><strong>Permission:\u00a0<em>read<\/em><\/strong><\/p>\n<h2>Header<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>User-Agent<\/td>\n<td>string<\/td>\n<td>Account email.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Path Param<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>id<\/td>\n<td>Number<\/td>\n<td>Adverts unique ID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<strong class='bg-tag-blue font-bold tag'>Example request:<\/strong><code>HTTP\/1.1 GET \/account\/adverts\/7043357813\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN<\/code><button onclick=\"copyJson('copy_1418')\">Copy<\/button>\nHTTP\/1.1 GET \/account\/adverts\/7043357813\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN\nCopied to clipboard\n <strong class='text-green font-bold'>Success response:<\/strong><code>HTTP\/1.1 200 OK\n{\n  \"id\": 7043357813,\n  \"user_id\": 3161635,\n  \"status\": \"unpaid\",\n  \"title\": \"Supapa EGR AUDI A2 pentru 1.4 pentru oe 036131503M an 2000 2001 2002 2003 2004 2005 piesa NOUA\",\n  \"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\",\n  \"created_at\": \"2020-11-04 16:42:29\",\n  \"valid_to\": \"2020-12-04 16:42:29\",\n  \"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\u0103 practica politica de retur, respectiv cea specificata de O.U. 34\/2014, cu specifica\u021bia faptulului ca pentru retururile nejustificate costurile de transport sunt \u00een sarcina clientului.\",\n  \"category_id\": 69,\n  \"region_id\": 46,\n  \"city_id\": 1,\n  \"district_id\": 1,\n  \"city\": {\n    \"ro\": \"Bucuresti\",\n    \"en\": \"Bucuresti\"\n  },\n  \"district\": {\n    \"ro\": \"Sectorul 1\",\n    \"en\": \"\"\n  },\n  \"coordinates\": {\n    \"latitude\": 44.48799,\n    \"longitude\": 26.04725,\n    \"radius\": 0,\n    \"zoom_level\": 13\n  },\n  \"advertiser_type\": \"business\",\n  \"contact\": {\n    \"person\": \"Testing\",\n    \"phone_numbers\": [\n        \"3222222\"\n    ]\n  },\n  \"params\": {\n    \"type\": \"caroserie-interior\",\n    \"delivery\": \"1\",\n    \"title\": \"Supapa EGR AUDI A2 pentru 1.4 pentru oe 036131503M an 2000 2001 2002 2003 2004 2005 piesa NOUA\",\n    \"compatibility\": [\n        {\n            \"make\": \"ferrari\"\n        }\n    ],\n    \"manufacturer\": \"Ferrari\",\n    \"manufacturer_code\": \"223344\",\n    \"make\": \"ferrari\",\n    \"price\": {\n        \"0\": \"arranged\",\n        \"1\": 0.1,\n        \"currency\": \"RON\",\n        \"gross_net\": \"net\"\n    }\n  },\n \"photos\": {\n       \"1\": {\n           \"1080x720\": \"https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=1080x720\",\n           \"732x488\": \"https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=732x488\",\n           \"148x110\": \"https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=148x110\",\n           \"320x240\": \"https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=320x240\",\n           \"1280x800\": \"https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIn0.whR98kkN_GyQnQ06ZLmTJrGN_X-0XIeMVnlUezPkaVk\/image;s=1280x800\"\n       }\n   },\n \"image_collection_id\": 951934228,\n  \"new_used\": \"used\",\n  \"last_update_date\": \"2020-11-04 16:42:29\"\n}<\/code><button onclick=\"copyJson('copy_41907')\">Copy<\/button>\nHTTP\/1.1 200 OK\n{\n  &#8220;id&#8221;: 7043357813,\n  &#8220;user_id&#8221;: 3161635,\n  &#8220;status&#8221;: &#8220;unpaid&#8221;,\n  &#8220;title&#8221;: &#8220;Supapa EGR AUDI A2 pentru 1.4 pentru oe 036131503M an 2000 2001 2002 2003 2004 2005 piesa NOUA&#8221;,\n  &#8220;url&#8221;: &#8220;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&#8221;,\n  &#8220;created_at&#8221;: &#8220;2020-11-04 16:42:29&#8221;,\n  &#8220;valid_to&#8221;: &#8220;2020-12-04 16:42:29&#8221;,\n  &#8220;description&#8221;: &#8220;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\u0103 practica politica de retur, respectiv cea specificata de O.U. 34\/2014, cu specifica\u021bia faptulului ca pentru retururile nejustificate costurile de transport sunt \u00een sarcina clientului.&#8221;,\n  &#8220;category_id&#8221;: 69,\n  &#8220;region_id&#8221;: 46,\n  &#8220;city_id&#8221;: 1,\n  &#8220;district_id&#8221;: 1,\n  &#8220;city&#8221;: {\n    &#8220;ro&#8221;: &#8220;Bucuresti&#8221;,\n    &#8220;en&#8221;: &#8220;Bucuresti&#8221;\n  },\n  &#8220;district&#8221;: {\n    &#8220;ro&#8221;: &#8220;Sectorul 1&#8221;,\n    &#8220;en&#8221;: &#8220;&#8221;\n  },\n  &#8220;coordinates&#8221;: {\n    &#8220;latitude&#8221;: 44.48799,\n    &#8220;longitude&#8221;: 26.04725,\n    &#8220;radius&#8221;: 0,\n    &#8220;zoom_level&#8221;: 13\n  },\n  &#8220;advertiser_type&#8221;: &#8220;business&#8221;,\n  &#8220;contact&#8221;: {\n    &#8220;person&#8221;: &#8220;Testing&#8221;,\n    &#8220;phone_numbers&#8221;: [\n        &#8220;3222222&#8221;\n    ]\n  },\n  &#8220;params&#8221;: {\n    &#8220;type&#8221;: &#8220;caroserie-interior&#8221;,\n    &#8220;delivery&#8221;: &#8220;1&#8221;,\n    &#8220;title&#8221;: &#8220;Supapa EGR AUDI A2 pentru 1.4 pentru oe 036131503M an 2000 2001 2002 2003 2004 2005 piesa NOUA&#8221;,\n    &#8220;compatibility&#8221;: [\n        {\n            &#8220;make&#8221;: &#8220;ferrari&#8221;\n        }\n    ],\n    &#8220;manufacturer&#8221;: &#8220;Ferrari&#8221;,\n    &#8220;manufacturer_code&#8221;: &#8220;223344&#8221;,\n    &#8220;make&#8221;: &#8220;ferrari&#8221;,\n    &#8220;price&#8221;: {\n        &#8220;0&#8221;: &#8220;arranged&#8221;,\n        &#8220;1&#8221;: 0.1,\n        &#8220;currency&#8221;: &#8220;RON&#8221;,\n        &#8220;gross_net&#8221;: &#8220;net&#8221;\n    }\n  },\n &#8220;photos&#8221;: {\n       &#8220;1&#8221;: {\n           &#8220;1080&#215;720&#8221;: &#8220;https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=1080&#215;720&#8221;,\n           &#8220;732&#215;488&#8221;: &#8220;https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=732&#215;488&#8221;,\n           &#8220;148&#215;110&#8221;: &#8220;https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=148&#215;110&#8221;,\n           &#8220;320&#215;240&#8221;: &#8220;https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIiwidyI6W3siZm4iOiJ3ZzRnbnFwNnkxZi1PVE9NT1RPUEwiLCJzIjoiMTYiLCJwIjoiMTAsLTEwIiwiYSI6IjAifV19.nnCXaOXAxfzDLfZcybE6Jgeh_NnbGY_U6oalyFic_qI\/image;s=320&#215;240&#8221;,\n           &#8220;1280&#215;800&#8221;: &#8220;https:\/\/ireland.apollo.olxcdn.com\/v1\/files\/eyJmbiI6InIxc3FkaTF6cGplZTEtT1RPTU9UT1BMIn0.whR98kkN_GyQnQ06ZLmTJrGN_X-0XIeMVnlUezPkaVk\/image;s=1280&#215;800&#8221;\n       }\n   },\n &#8220;image_collection_id&#8221;: 951934228,\n  &#8220;new_used&#8221;: &#8220;used&#8221;,\n  &#8220;last_update_date&#8221;: &#8220;2020-11-04 16:42:29&#8221;\n}\nCopied to clipboard\n <strong class='text-red font-bold'>Error response example:<\/strong><code>HTTP\/1.1 404 Not Found\n{\n    \"error\":\n    {\n        \"type\": \"NotFoundException\",\n        \"message\": \"Advert 7043357813 not found.\"\n    }\n}<\/code><button onclick=\"copyJson('copy_49085')\">Copy<\/button>\nHTTP\/1.1 404 Not Found\n{\n    &#8220;error&#8221;:\n    {\n        &#8220;type&#8221;: &#8220;NotFoundException&#8221;,\n        &#8220;message&#8221;: &#8220;Advert 7043357813 not found.&#8221;\n    }\n}\nCopied to clipboard\n \n","protected":false},"excerpt":{"rendered":"<p>GET:\u00a0https:\/\/www.autovit.ro\/api\/open\/account\/adverts\/:id Permission:\u00a0read 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_TOKENCopy 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 { &#8220;id&#8221;: 7043357813, &#8220;user_id&#8221;: 3161635, &#8220;status&#8221;: &#8220;unpaid&#8221;,&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=298\" title=\"Read Read single advert data\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/298"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}