{"id":774,"date":"2024-01-09T13:05:09","date_gmt":"2024-01-09T13:05:09","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=774"},"modified":"2024-01-09T13:05:09","modified_gmt":"2024-01-09T13:05:09","slug":"primary-market-errors","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=774","title":{"rendered":"Primary Market errors"},"content":{"rendered":"\n\n\t<header id=\"content-head\">\n<h1>Primary Market errors<\/h1>\n<\/header>\n<section>\n<p>These errors happen when something&#8217;s wrong with the publication request. Below you can find the most common situations and their respective solutions.<\/p>\n<h2 align=\"\"><\/h2>\n<\/section>\n\t<h4>Cannot publish an investment ad because of the account type<\/h4>\n<p>When a client tries to activate an advert and the notification received in your webhook is the following error:<\/p>\n<code>JSON\n{\n  \"destination\": \"http:\/\/webhooks.dev.eu-central-1.mercury.olx.org\/a5607da9-8c87-4bf1-867b-52c2ad4bc930\",\n  \"timestamp\": 1594314221436,\n  \"event_timestamp\": 1594314221436,\n  \"transaction_id\": \"6786b98a-9a63-4dd9-8404-4c040e7a1801\",\n  \"object_id\": \"5d4b5cec-b613-4e2b-a23a-77412ea679a2\",\n  \"flow\": \"publish_advert\",\n  \"error_message\": \"Only Developer accounts can add Investments.\",\n  \"data\": {\n    \"detail\": \"Only Developer accounts can add Investments.\",\n    \"title\": \"ForbiddenException\",\n    \"validation\": null\n  },\n  \"event_type\": \"advert_posted_error\"\n}<\/code><button onclick=\"copyJson('copy_18691')\">Copy<\/button>\nJSON\n{\n  &#8220;destination&#8221;: &#8220;http:\/\/webhooks.dev.eu-central-1.mercury.olx.org\/a5607da9-8c87-4bf1-867b-52c2ad4bc930&#8221;,\n  &#8220;timestamp&#8221;: 1594314221436,\n  &#8220;event_timestamp&#8221;: 1594314221436,\n  &#8220;transaction_id&#8221;: &#8220;6786b98a-9a63-4dd9-8404-4c040e7a1801&#8221;,\n  &#8220;object_id&#8221;: &#8220;5d4b5cec-b613-4e2b-a23a-77412ea679a2&#8221;,\n  &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n  &#8220;error_message&#8221;: &#8220;Only Developer accounts can add Investments.&#8221;,\n  &#8220;data&#8221;: {\n    &#8220;detail&#8221;: &#8220;Only Developer accounts can add Investments.&#8221;,\n    &#8220;title&#8221;: &#8220;ForbiddenException&#8221;,\n    &#8220;validation&#8221;: null\n  },\n  &#8220;event_type&#8221;: &#8220;advert_posted_error&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\nThe client account does not allow them to publish investment adverts. Only developers can publish Investments.<br \/>\nIf the client wants to publish those types of adverts, they should contact directly their account manager.\n\n","protected":false},"excerpt":{"rendered":"<p>Primary Market errors These errors happen when something&#8217;s wrong with the publication request. Below you can find the most common situations and their respective solutions. Cannot publish an investment ad because of the account type When a client tries to activate an advert and the notification received in your webhook is the following error: JSON&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=774\" title=\"Read Primary Market errors\">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":[38],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/774"}],"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=774"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/774\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}