{"id":703,"date":"2024-01-08T15:22:48","date_gmt":"2024-01-08T15:22:48","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=703"},"modified":"2024-01-08T15:22:48","modified_gmt":"2024-01-08T15:22:48","slug":"publish-vas","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=703","title":{"rendered":"Publish VAS"},"content":{"rendered":"\n\n\t<h1>Publish VAS<\/h1>\n<p>Publish VAS (Value-Added Services) Event Flow<\/p>\n\t<p><strong>Event flow name<\/strong> : <strong>publish_vas<\/strong><\/p>\n<p>This event flow contains events related to\u00a0<strong>VAS publishing operations<\/strong>, also known as value-added services or promotions.<\/p>\n<h2 class='h1'><\/h2>\n<h5>\u2757\ufe0fThe previous system for managing promotions and notifications is deprecated and this page has been updated with the newest information. Please refer to the\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/applying-promotions\" target=\"_self\" rel=\"noopener\">Applying Promotions<\/a>\u00a0page to get started.<\/h5>\n\t<p>Currently, there is only one available events in this flow:<\/p>\n<table>\n<thead>\n<tr>\n<th>Event Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>advert_vas_applied_error<\/td>\n<td>The event is triggered when there&#8217;s an error when you try to apply the VAS.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\t<p><strong>advert_vas_applied_error<\/strong><\/p>\n<p>This notification is emitted when there was an error while publishing the VAS in the marketplace.<\/p>\n<p>Check\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/vas-errors\" target=\"_self\" rel=\"noopener\">here<\/a>\u00a0VAS errors, and suggestions of solutions.<\/p>\n<code>Json\n{\n  \"destination\": \"{{webhook destination}}\",\n  \"timestamp\": 1688392214800,\n  \"event_timestamp\": 1688392214800,\n  \"transaction_id\": \"{{transaction_id}}\",\n  \"object_id\": \"{{vas_uuid}}\",\n  \"flow\": \"publish_vas\",\n  \"error_message\": \"Advert status doesn't allow this promotion.\",\n  \"data\": {\n    \"detail\": \"Advert status doesn't allow this promotion.\",\n    \"title\": \"BadRequestException\"\n  },\n  \"event_type\": \"advert_vas_applied_error\"\n}<\/code><button onclick=\"copyJson('copy_20700')\">Copy<\/button>\nJson\n{\n  &#8220;destination&#8221;: &#8220;{{webhook destination}}&#8221;,\n  &#8220;timestamp&#8221;: 1688392214800,\n  &#8220;event_timestamp&#8221;: 1688392214800,\n  &#8220;transaction_id&#8221;: &#8220;{{transaction_id}}&#8221;,\n  &#8220;object_id&#8221;: &#8220;{{vas_uuid}}&#8221;,\n  &#8220;flow&#8221;: &#8220;publish_vas&#8221;,\n  &#8220;error_message&#8221;: &#8220;Advert status doesn&#8217;t allow this promotion.&#8221;,\n  &#8220;data&#8221;: {\n    &#8220;detail&#8221;: &#8220;Advert status doesn&#8217;t allow this promotion.&#8221;,\n    &#8220;title&#8221;: &#8220;BadRequestException&#8221;\n  },\n  &#8220;event_type&#8221;: &#8220;advert_vas_applied_error&#8221;\n}\nCopied to clipboard\n\t<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>error_message<\/strong><\/td>\n<td>Error describes why the promotion was not successfully applied.<\/td>\n<\/tr>\n<tr>\n<td><strong>title<\/strong><\/td>\n<td>A high-level error title.<\/td>\n<\/tr>\n<tr>\n<td><strong>detail<\/strong><\/td>\n<td>Same as <strong>error_message<\/strong>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n","protected":false},"excerpt":{"rendered":"<p>Publish VAS Publish VAS (Value-Added Services) Event Flow Event flow name : publish_vas This event flow contains events related to\u00a0VAS publishing operations, also known as value-added services or promotions. \u2757\ufe0fThe previous system for managing promotions and notifications is deprecated and this page has been updated with the newest information. Please refer to the\u00a0Applying Promotions\u00a0page to&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=703\" title=\"Read Publish VAS\">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":[28],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/703"}],"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=703"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}