{"id":771,"date":"2024-01-09T13:03:21","date_gmt":"2024-01-09T13:03:21","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=771"},"modified":"2024-01-09T13:03:21","modified_gmt":"2024-01-09T13:03:21","slug":"publishing-errors","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=771","title":{"rendered":"Publishing errors"},"content":{"rendered":"\n\n\t<header id=\"content-head\">\n<h1>Publishing errors<\/h1>\n<\/header>\n<section>\n<p>These errors happen when something&#8217;s wrong with the publication request (<strong>POST, PUT, DELETE, Activate, or Deactivate<\/strong>). Below you can find the most common situations and their respective solutions.<\/p>\n<\/section>\n\t<h4>Posting a duplicate advert<\/h4>\n<p>To avoid content duplication we automatically detect situations where you post an advert that contains that same:<\/p>\n<ul>\n<li><strong>custom_fields.id<\/strong><\/li>\n<li><strong>category_urn<\/strong><br \/>\nas an existing advert. In these cases, we&#8217;ll simply reuse that record and return the same UUID back to you.<\/li>\n<\/ul>\n<code>JSON\n{\n    \"transaction_id\": \"b251fcb2-98a9-41a2-99dc-0457cce44c24\",\n    \"message\": \"Resource with custom_fields.id 11 and category_urn urn:concept:investments already exists. To update this resource use a PUT operation instead.\"\n}<\/code><button onclick=\"copyJson('copy_16675')\">Copy<\/button>\nJSON\n{\n    &#8220;transaction_id&#8221;: &#8220;b251fcb2-98a9-41a2-99dc-0457cce44c24&#8221;,\n    &#8220;message&#8221;: &#8220;Resource with custom_fields.id 11 and category_urn urn:concept:investments already exists. To update this resource use a PUT operation instead.&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>If you received an error message alerting you that the advert already exists, use a PUT operation to do any updates on the advert, instead of using a POST.<\/p>\n\t<h4>Duplicate attributes<\/h4>\n<p>If you post adverts with duplicate attributes you&#8217;ll get an error as shown below:<\/p>\n<code>JSON\n{\n    \"transaction_id\": \"931fefdd-bc7a-4c5a-a70a-0db089b52ce3\",\n    \"message\": \"Requested body doesn't comply with the service requirements\",\n    \"errors\": [\n        {\n            \"field\": \"urn:concept:net-area-m2\",\n            \"message\": \"The attribute urn:concept:net-area-m2 is present more than once\"\n        }\n    ]\n}<\/code><button onclick=\"copyJson('copy_14477')\">Copy<\/button>\nJSON\n{\n    &#8220;transaction_id&#8221;: &#8220;931fefdd-bc7a-4c5a-a70a-0db089b52ce3&#8221;,\n    &#8220;message&#8221;: &#8220;Requested body doesn&#8217;t comply with the service requirements&#8221;,\n    &#8220;errors&#8221;: [\n        {\n            &#8220;field&#8221;: &#8220;urn:concept:net-area-m2&#8221;,\n            &#8220;message&#8221;: &#8220;The attribute urn:concept:net-area-m2 is present more than once&#8221;\n        }\n    ]\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Make sure to check out if there are no duplicated attributes in your request. The duplicate field(s) will be displayed in the error message to help you debug. Remove it and send the request again.<\/p>\n\t<h4>Requested body doesn&#8217;t comply with the service requirements<\/h4>\n<strong>HTTP code: <\/strong><strong>400 Bad Request<\/strong><br \/>\nYou can get this error when the ad you&#8217;re trying to publish doesn&#8217;t comply with the\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/advert-validation-rules\" target=\"_self\" rel=\"noopener\">validation rules<\/a>. For example, if you forget to include the <strong>contact<\/strong> parameter, you&#8217;ll get an error such as:\n<code>JSON\n{\n    \"transaction_id\": \"556ecc20-3f2e-11e8-a691-55a1dd521900\",\n    \"message\": \"Requested body doesn't comply with the service requirements\",\n    \"errors\": [\n        {\n            \"field\": \"contact\",\n            \"message\": \"contact parameter is required\"\n        }\n    ]\n}<\/code><button onclick=\"copyJson('copy_9240')\">Copy<\/button>\nJSON\n{\n    &#8220;transaction_id&#8221;: &#8220;556ecc20-3f2e-11e8-a691-55a1dd521900&#8221;,\n    &#8220;message&#8221;: &#8220;Requested body doesn&#8217;t comply with the service requirements&#8221;,\n    &#8220;errors&#8221;: [\n        {\n            &#8220;field&#8221;: &#8220;contact&#8221;,\n            &#8220;message&#8221;: &#8220;contact parameter is required&#8221;\n        }\n    ]\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Make sure to check out the\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/advert-validation-rules\" target=\"_self\" rel=\"noopener\">Advert validation rules<\/a>\u00a0page and confirm that your ad complies with all the rules described there.<\/p>\n\t<h4>Cannot publish an ad because personal contact info is missing<\/h4>\n<p>When you try to activate an advert and you get a notification in your webhook with the following error for <strong>field: contact.person<\/strong>:<\/p>\n<code>JSON\n{\n  \"data\": {\n    \"data\": {\n      \"detail\": \"Adding the ad failed.\",\n      \"title\": \"AdvertsPostingException\",\n      \"validation\": [\n        {\n          \"detail\": \"Deve indicar um contacto pessoal\",\n          \"field\": \"contact.person\",\n          \"title\": \"Error\"\n        }\n      ]\n    },\n    \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n    \"error_message\": \"Adding the ad failed.\",\n    \"event_timestamp\": 1580844552429,\n    \"event_type\": \"advert_posted_error\",\n    \"flow\": \"publish_advert\",\n    \"object_id\": \"7cadf3e8-fe2d-4b58-9992-02a0318d7714\",\n    \"timestamp\": 1580844552429,\n    \"transaction_id\": \"0641f05a-91b6-11e8-9369-75b35a5b6605\"\n  },<\/code><button onclick=\"copyJson('copy_8566')\">Copy<\/button>\nJSON\n{\n  &#8220;data&#8221;: {\n    &#8220;data&#8221;: {\n      &#8220;detail&#8221;: &#8220;Adding the ad failed.&#8221;,\n      &#8220;title&#8221;: &#8220;AdvertsPostingException&#8221;,\n      &#8220;validation&#8221;: [\n        {\n          &#8220;detail&#8221;: &#8220;Deve indicar um contacto pessoal&#8221;,\n          &#8220;field&#8221;: &#8220;contact.person&#8221;,\n          &#8220;title&#8221;: &#8220;Error&#8221;\n        }\n      ]\n    },\n    &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n    &#8220;error_message&#8221;: &#8220;Adding the ad failed.&#8221;,\n    &#8220;event_timestamp&#8221;: 1580844552429,\n    &#8220;event_type&#8221;: &#8220;advert_posted_error&#8221;,\n    &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n    &#8220;object_id&#8221;: &#8220;7cadf3e8-fe2d-4b58-9992-02a0318d7714&#8221;,\n    &#8220;timestamp&#8221;: 1580844552429,\n    &#8220;transaction_id&#8221;: &#8220;0641f05a-91b6-11e8-9369-75b35a5b6605&#8221;\n  },\nCopied to clipboard\n\t<p>This error is because the client has authenticated with a private account instead of using a professional one (agency, developer, promoter&#8230;).<\/p>\n<h5>Solution<\/h5>\n<p>If one of your (or your clients&#8217; ads) is getting the error because personal contact is missing, you must contact your client and ask them to authenticate with a professional account. After that, help them to re-export the advert(s).<\/p>\n\t<h4>Cannot publish an ad because the contact image is getting an error<\/h4>\n<p>When you try to activate an advert and you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n\"data\": {\n    \"data\": {\n      \"detail\": \"Adding the ad failed.\",\n      \"title\": \"AdvertsPostingException\",\n      \"validation\": [\n        {\n          \"detail\": \"Ficheiro n\u00e3o existe (slot #1)\",\n          \"field\": \"contact.image\",\n          \"title\": \"Error\"\n        }\n      ]\n    },\n    \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n    \"error_message\": \"Adding the ad failed.\",\n    \"event_timestamp\": 1578566260785,\n    \"event_type\": \"advert_posted_error\",\n    \"flow\": \"publish_advert\",\n    \"object_id\": \"7cadf3e8-fe2d-4b58-9992-02a0318d7714\",\n    \"timestamp\": 1578566260785,\n    \"transaction_id\": \"f267c4e6-283b-464c-a99a-089fc691800f\"\n  },<\/code><button onclick=\"copyJson('copy_21257')\">Copy<\/button>\nJSON\n&#8220;data&#8221;: {\n    &#8220;data&#8221;: {\n      &#8220;detail&#8221;: &#8220;Adding the ad failed.&#8221;,\n      &#8220;title&#8221;: &#8220;AdvertsPostingException&#8221;,\n      &#8220;validation&#8221;: [\n        {\n          &#8220;detail&#8221;: &#8220;Ficheiro n\u00e3o existe (slot #1)&#8221;,\n          &#8220;field&#8221;: &#8220;contact.image&#8221;,\n          &#8220;title&#8221;: &#8220;Error&#8221;\n        }\n      ]\n    },\n    &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n    &#8220;error_message&#8221;: &#8220;Adding the ad failed.&#8221;,\n    &#8220;event_timestamp&#8221;: 1578566260785,\n    &#8220;event_type&#8221;: &#8220;advert_posted_error&#8221;,\n    &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n    &#8220;object_id&#8221;: &#8220;7cadf3e8-fe2d-4b58-9992-02a0318d7714&#8221;,\n    &#8220;timestamp&#8221;: 1578566260785,\n    &#8220;transaction_id&#8221;: &#8220;f267c4e6-283b-464c-a99a-089fc691800f&#8221;\n  },\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>If one of your (or your clients&#8217; ads) is getting the error because of the contact image, you must validate if <strong>contact.photo<\/strong> has the right validations. Refer to <strong>contact.photo<\/strong>\u00a0in\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/advert-validation-rules\" target=\"_self\" rel=\"noopener\">Advert validation rules<\/a>. After that, help them to re-export the advert(s).<\/p>\n\t<h4>Cannot publish an ad because the operation failed<\/h4>\n<p>When you try to post\/update an advert, and you get a webhook describing that the operation fails, but without any specific value (e.g.: mandatory fields are missing). As the example below:<\/p>\n<code>JSON\n\"data\": {\n    \"data\": {\n      \"activated_at\": null,\n      \"code\": \"<ad status - if the ad alredy exists>\",\",\n      \"created_at\": \"2021-05-19T19:20:21.620Z\",\n      \"detail\": \"Update action failed\",\n      \"moderation\": {\n        \"description\": null,\n        \"reason\": null\n      },\n      \"modified_at\": \"2021-05-19T19:20:21.620Z\",\n      \"recorded_at\": null,\n      \"title\": \"Operation failed\",\n      \"ttl\": \"2021-06-18T16:18:08.000+0000\",\n      \"url\": \"<\/ad><ad url - if the ad alredy exists>\",\n      \"validation\": null\n    },\n    \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n    \"error_message\": \"Update action failed\",\n    \"event_timestamp\": 1621452021864,\n    \"event_type\": \"advert_posted_error\",\n    \"flow\": \"publish_advert\",\n    \"object_id\": \"d17bce24-ff40-4d07-a710-54e36a342f6e\",\n    \"timestamp\": 1621452021864,\n    \"transaction_id\": \"3bb6a94f-a3e7-4a83-9e37-69fbd1b9d3a6\"\n  },<\/ad><\/code><button onclick=\"copyJson('copy_33079')\">Copy<\/button>\nJSON\n&#8220;data&#8221;: {\n    &#8220;data&#8221;: {\n      &#8220;activated_at&#8221;: null,\n      &#8220;code&#8221;: &#8220;<ad status - if the ad alredy exists>&#8220;,&#8221;,\n      &#8220;created_at&#8221;: &#8220;2021-05-19T19:20:21.620Z&#8221;,\n      &#8220;detail&#8221;: &#8220;Update action failed&#8221;,\n      &#8220;moderation&#8221;: {\n        &#8220;description&#8221;: null,\n        &#8220;reason&#8221;: null\n      },\n      &#8220;modified_at&#8221;: &#8220;2021-05-19T19:20:21.620Z&#8221;,\n      &#8220;recorded_at&#8221;: null,\n      &#8220;title&#8221;: &#8220;Operation failed&#8221;,\n      &#8220;ttl&#8221;: &#8220;2021-06-18T16:18:08.000+0000&#8221;,\n      &#8220;url&#8221;: &#8220;<\/ad><ad url - if the ad alredy exists>&#8220;,\n      &#8220;validation&#8221;: null\n    },\n    &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n    &#8220;error_message&#8221;: &#8220;Update action failed&#8221;,\n    &#8220;event_timestamp&#8221;: 1621452021864,\n    &#8220;event_type&#8221;: &#8220;advert_posted_error&#8221;,\n    &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n    &#8220;object_id&#8221;: &#8220;d17bce24-ff40-4d07-a710-54e36a342f6e&#8221;,\n    &#8220;timestamp&#8221;: 1621452021864,\n    &#8220;transaction_id&#8221;: &#8220;3bb6a94f-a3e7-4a83-9e37-69fbd1b9d3a6&#8221;\n  },\nCopied to clipboard\n\t<h5>Solution<\/h5>\nWhen you get an <strong>advert_xxxx_error<\/strong>\u00a0(xxxx, can be posted, put, deleted, deactivated, or activated), the same operation request will always need to be sent again. Check <a href=\"https:\/\/developer.olxgroup.com\/docs\/publish-advert\" target=\"_self\" rel=\"noopener\">here<\/a>\u00a0the next available operations for all publishing requests.<br \/>\nSo, in this case, re-export the advert(s) automatically in the next sync. No need to wait for the client(s) to do any update on the advert, only processing it automatically since something failed on our side (e.g.: time out).\n\t<h4>Unauthorized request<\/h4>\n<p>When you try to do any operation with a valid token (with a valid expiration date) and you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n\"error\": {\n    \"detail\": \"Unauthorized request\",\n    \"title\": \"MercuryForbiddenException\",\n    \"validation\": null\n  },<\/code><button onclick=\"copyJson('copy_3903')\">Copy<\/button>\nJSON\n&#8220;error&#8221;: {\n    &#8220;detail&#8221;: &#8220;Unauthorized request&#8221;,\n    &#8220;title&#8221;: &#8220;MercuryForbiddenException&#8221;,\n    &#8220;validation&#8221;: null\n  },\nCopied to clipboard\n\t<p>That means that the token expiration date was not yet achieved, however, the client revokes the APP. So now, you don&#8217;t have access to their adverts to do any operation.<\/p>\n<h5>Solution<\/h5>\n<p>The client needs to authorize again the APP. After that, an export in volume is needed to have all adverts correctly sync. First, get all adverts from the client account, using\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/get-advert-metadata\" target=\"_self\" rel=\"noopener\">Get advert metadata<\/a>, then compare his status with what you have on your side. For last, send all operations that are needed to sync and align information between both platforms.<\/p>\n\t<h4>Updating the ID field error<\/h4>\n<p>The field <strong>custom_fields.id<\/strong>\u00a0cannot be updated. If you try to send a PUT operation for a published advert and change the value of this field, you&#8217;ll get an error as shown below:<\/p>\n<code>JSON\n{\n    \"transaction_id\": \"1eccb6a5-f7d4-11e8-86c5-1be52bedc6d3\",\n    \"message\": \"Cannot change custom_fields.id field.\"\n}<\/code><button onclick=\"copyJson('copy_31485')\">Copy<\/button>\nJSON\n{\n    &#8220;transaction_id&#8221;: &#8220;1eccb6a5-f7d4-11e8-86c5-1be52bedc6d3&#8221;,\n    &#8220;message&#8221;: &#8220;Cannot change custom_fields.id field.&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>If one of your (or your clients&#8217; ads) is getting this error you need to change the <strong>custom_fields.id<\/strong> to the one sent previously during the POST operation. In case the custom field changed on your side and you need to start using this new one, you should send us a Delete Operation and then publish again the same advert but with the new <strong>custom_fields.id<\/strong>. This last operation will create another advert.<\/p>\n\t<h4>Cannot update or activate ad because not a valid key<\/h4>\n<p>When you try to\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/activate-deactivate-adverts\" target=\"_self\" rel=\"noopener\">activate an advert<\/a>\u00a0or\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/editing-and-deleting-adverts\" target=\"_self\" rel=\"noopener\">editing and deleting adverts<\/a>\u00a0an advert, and you get a notification in your webhook with the following error:<\/p>\n<code>JSON\n{\n  \"transaction_id\": \"ed518e0a-7826-4ac0-89bc-212ce0af1f2a\",\n  \"message\": \"'218993621b1e255811c0c398b6071fd74b89c977' not a valid key=value pair (missing equal-sign) in Authorization header: 'Bearer 218993621b1e255811c0c398b6071fd74b89c977'.\"\n}<\/code><button onclick=\"copyJson('copy_24348')\">Copy<\/button>\nJSON\n{\n  &#8220;transaction_id&#8221;: &#8220;ed518e0a-7826-4ac0-89bc-212ce0af1f2a&#8221;,\n  &#8220;message&#8221;: &#8220;&#8216;218993621b1e255811c0c398b6071fd74b89c977&#8217; not a valid key=value pair (missing equal-sign) in Authorization header: &#8216;Bearer 218993621b1e255811c0c398b6071fd74b89c977&#8217;.&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>That message is because the request does not have the correct format.<\/p>\n<p>Check the following scenarios:<\/p>\n<ol>\n<li>You are trying to POST an ad and you have included in the request a UUID received from a previous request that when error.<br \/>\nTo solve, remove the UUID of the endpoint and submit again the request as a new\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/publishing-adverts#making-the-api-request\" target=\"_self\" rel=\"noopener\">POST<\/a>.<\/li>\n<li>You are trying to edit an ad, however, the request made was a POST.<br \/>\nTo solve, send us a\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/editing-and-deleting-adverts#edit-an-advert\" target=\"_self\" rel=\"noopener\">PUT<\/a>\u00a0operation.<\/li>\n<\/ol>\n<p>Any action (post, update, delete, deactivate, or activate) will always return a similar error like the one above if the endpoint set in the request does not fulfill the correct structure (as examples above). So make sure that you are sending or not the advert UUID on the endpoint taking into consideration the request you have the intention to send us.<\/p>\n\t<h4>Cannot update or activate ad because it was moderated<\/h4>\n<p>When you try to\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/activate-deactivate-adverts\" target=\"_self\" rel=\"noopener\">activate an advert<\/a>\u00a0that was previously moderated for some reason, you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n{\n    \"data\": {\n        \"detail\": \"An\u00fancios removidos pela equipa do Imovirtual. N\u00e3o pode editar este an\u00fancio.\",\n        \"title\": \"BadRequestException\",\n        \"validation\": null\n    },\n    \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n    \"error_message\": \"An\u00fancios removidos pela equipa do Imovirtual. N\u00e3o pode editar este an\u00fancio.\",\n    \"event_timestamp\": 1532707163221,\n    \"event_type\": \"advert_activated_error\",\n    \"flow\": \"publish_advert\",\n    \"object_id\": \"7cadf3e8-fe2d-4b58-9992-02a0318d7714\",\n    \"signature\": \"cf8fabc5d5369dcf1a93be35e63fd5439e067673\",\n    \"timestamp\": 1532707163221,\n    \"transaction_id\": \"0641f05a-91b6-11e8-9369-75b35a5b6605\"\n}<\/code><button onclick=\"copyJson('copy_21255')\">Copy<\/button>\nJSON\n{\n    &#8220;data&#8221;: {\n        &#8220;detail&#8221;: &#8220;An\u00fancios removidos pela equipa do Imovirtual. N\u00e3o pode editar este an\u00fancio.&#8221;,\n        &#8220;title&#8221;: &#8220;BadRequestException&#8221;,\n        &#8220;validation&#8221;: null\n    },\n    &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n    &#8220;error_message&#8221;: &#8220;An\u00fancios removidos pela equipa do Imovirtual. N\u00e3o pode editar este an\u00fancio.&#8221;,\n    &#8220;event_timestamp&#8221;: 1532707163221,\n    &#8220;event_type&#8221;: &#8220;advert_activated_error&#8221;,\n    &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n    &#8220;object_id&#8221;: &#8220;7cadf3e8-fe2d-4b58-9992-02a0318d7714&#8221;,\n    &#8220;signature&#8221;: &#8220;cf8fabc5d5369dcf1a93be35e63fd5439e067673&#8221;,\n    &#8220;timestamp&#8221;: 1532707163221,\n    &#8220;transaction_id&#8221;: &#8220;0641f05a-91b6-11e8-9369-75b35a5b6605&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>If one of your (or your clients&#8217; ads) is moderated, the application user must contact their account manager directly to correct the advert and unblock the situation to be republished. For example, any action (update or activate, for example) will always return a similar error to the one above.<\/p>\n\t<h4>Cannot activate ad because it was activated<\/h4>\n<p>When you try to\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/activate-deactivate-adverts#activate-ads\" target=\"_self\" rel=\"noopener\">activate an advert<\/a>\u00a0that was previously activated for some reason, you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n{\n  \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n  \"timestamp\": 1695120894807,\n  \"event_timestamp\": 1695120894807,\n  \"transaction_id\": \"16704fc4-39bb-4bff-9abb-f30cc603429d\",\n  \"object_id\": \"958b2f80-3d3b-48e4-bce9-ed88bc15316c\",\n  \"flow\": \"publish_advert\",\n  \"error_message\": \"Este an\u00fancio j\u00e1 se encontra ativo\",\n  \"data\": {\n    \"activated_at\": \"2023-09-19T10:54:35.000Z\",\n    \"recorded_at\": \"2023-09-19T10:54:50.051Z\",\n    \"code\": \"active\",\n    \"moderation\": {\n      \"description\": null,\n      \"reason\": null\n    },\n    \"created_at\": \"2023-09-19T10:53:08.000Z\",\n    \"detail\": \"Este an\u00fancio j\u00e1 se encontra ativo\",\n    \"visible_in_profile\": true,\n    \"title\": \"BadRequestException\",\n    \"modified_at\": \"2023-09-19T10:54:49.000Z\",\n    \"ttl\": \"2023-10-19T10:54:26.000Z\",\n    \"validation\": null,\n    \"url\": \"https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html\"\n  },\n  \"event_type\": \"advert_activated_error\"\n}<\/code><button onclick=\"copyJson('copy_21714')\">Copy<\/button>\nJSON\n{\n  &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n  &#8220;timestamp&#8221;: 1695120894807,\n  &#8220;event_timestamp&#8221;: 1695120894807,\n  &#8220;transaction_id&#8221;: &#8220;16704fc4-39bb-4bff-9abb-f30cc603429d&#8221;,\n  &#8220;object_id&#8221;: &#8220;958b2f80-3d3b-48e4-bce9-ed88bc15316c&#8221;,\n  &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n  &#8220;error_message&#8221;: &#8220;Este an\u00fancio j\u00e1 se encontra ativo&#8221;,\n  &#8220;data&#8221;: {\n    &#8220;activated_at&#8221;: &#8220;2023-09-19T10:54:35.000Z&#8221;,\n    &#8220;recorded_at&#8221;: &#8220;2023-09-19T10:54:50.051Z&#8221;,\n    &#8220;code&#8221;: &#8220;active&#8221;,\n    &#8220;moderation&#8221;: {\n      &#8220;description&#8221;: null,\n      &#8220;reason&#8221;: null\n    },\n    &#8220;created_at&#8221;: &#8220;2023-09-19T10:53:08.000Z&#8221;,\n    &#8220;detail&#8221;: &#8220;Este an\u00fancio j\u00e1 se encontra ativo&#8221;,\n    &#8220;visible_in_profile&#8221;: true,\n    &#8220;title&#8221;: &#8220;BadRequestException&#8221;,\n    &#8220;modified_at&#8221;: &#8220;2023-09-19T10:54:49.000Z&#8221;,\n    &#8220;ttl&#8221;: &#8220;2023-10-19T10:54:26.000Z&#8221;,\n    &#8220;validation&#8221;: null,\n    &#8220;url&#8221;: &#8220;https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html&#8221;\n  },\n  &#8220;event_type&#8221;: &#8220;advert_activated_error&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Actions performed in the CRM should be based on the information returned by\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/receiving-advert-notifications\" target=\"_self\" rel=\"noopener\">Advert Notifications<\/a>. If you activate an advert, you will receive a webhook afterwards with information about the result of the processing. The webhook contains information about the current status of the advert (for example:\u00a0<strong>&#8220;event_type&#8221;: &#8220;advert_activated_success&#8221;<\/strong>, <strong>code: active<\/strong>, <strong>&#8220;visible_in_profile&#8221;: true<\/strong>). When you receive such a notification, you should remember this status for your advert so that re-activation is not possible.<\/p>\n\t<h4>Cannot activate ad because it was deleted<\/h4>\n<p>When you try to\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/activate-deactivate-adverts#activate-ads\" target=\"_self\" rel=\"noopener\">activate an advert<\/a>\u00a0that was previously deleted for some reason, you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n{\n  \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n  \"timestamp\": 1695121650385,\n  \"event_timestamp\": 1695121650385,\n  \"transaction_id\": \"fadf1434-63c1-45ec-8e2c-c1b5488ffd70\",\n  \"object_id\": \"958b2f80-3d3b-48e4-bce9-ed88bc15316c\",\n  \"flow\": \"publish_advert\",\n  \"error_message\": \"An\u00fancio removido\",\n  \"data\": {\n    \"activated_at\": \"2023-09-19T10:54:35.000Z\",\n    \"recorded_at\": \"2023-09-19T11:07:06.734Z\",\n    \"code\": \"removed_by_user\",\n    \"moderation\": {\n      \"description\": null,\n      \"reason\": null\n    },\n    \"created_at\": \"2023-09-19T10:53:08.000Z\",\n    \"detail\": \"An\u00fancio removido\",\n    \"visible_in_profile\": false,\n    \"title\": \"BadRequestException\",\n    \"modified_at\": \"2023-09-19T11:07:06.000Z\",\n    \"ttl\": \"2023-09-19T11:07:06.000Z\",\n    \"validation\": null,\n    \"url\": \"https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html\"\n  },\n  \"event_type\": \"advert_activated_error\"\n}<\/code><button onclick=\"copyJson('copy_7571')\">Copy<\/button>\nJSON\n{\n  &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n  &#8220;timestamp&#8221;: 1695121650385,\n  &#8220;event_timestamp&#8221;: 1695121650385,\n  &#8220;transaction_id&#8221;: &#8220;fadf1434-63c1-45ec-8e2c-c1b5488ffd70&#8221;,\n  &#8220;object_id&#8221;: &#8220;958b2f80-3d3b-48e4-bce9-ed88bc15316c&#8221;,\n  &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n  &#8220;error_message&#8221;: &#8220;An\u00fancio removido&#8221;,\n  &#8220;data&#8221;: {\n    &#8220;activated_at&#8221;: &#8220;2023-09-19T10:54:35.000Z&#8221;,\n    &#8220;recorded_at&#8221;: &#8220;2023-09-19T11:07:06.734Z&#8221;,\n    &#8220;code&#8221;: &#8220;removed_by_user&#8221;,\n    &#8220;moderation&#8221;: {\n      &#8220;description&#8221;: null,\n      &#8220;reason&#8221;: null\n    },\n    &#8220;created_at&#8221;: &#8220;2023-09-19T10:53:08.000Z&#8221;,\n    &#8220;detail&#8221;: &#8220;An\u00fancio removido&#8221;,\n    &#8220;visible_in_profile&#8221;: false,\n    &#8220;title&#8221;: &#8220;BadRequestException&#8221;,\n    &#8220;modified_at&#8221;: &#8220;2023-09-19T11:07:06.000Z&#8221;,\n    &#8220;ttl&#8221;: &#8220;2023-09-19T11:07:06.000Z&#8221;,\n    &#8220;validation&#8221;: null,\n    &#8220;url&#8221;: &#8220;https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html&#8221;\n  },\n  &#8220;event_type&#8221;: &#8220;advert_activated_error&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Actions performed in the CRM should be based on the information returned by\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/receiving-advert-notifications\" target=\"_self\" rel=\"noopener\">Advert Notifications<\/a>. If you delete an advert, you will receive a webhook afterwards with information about the result of the processing. The webhook contains information about the current status of the advert (for example:\u00a0<strong>&#8220;event_type&#8221;: &#8220;advert_deleted_success&#8221;<\/strong>, <strong>code: removed_by_user<\/strong>, <strong>&#8220;visible_in_profile&#8221;: false<\/strong>). When you receive such a notification, you should remember this status for your advert so that re-activation is not possible.<\/p>\n\t<h4>Cannot deactivate ad because it was deactivated<\/h4>\n<p>When you try to\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/activate-deactivate-adverts#deactivate-ads\" target=\"_self\" rel=\"noopener\">deactivate an advert<\/a>\u00a0that was previously deactivated for some reason, you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n{\n  \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n  \"timestamp\": 1695122093654,\n  \"event_timestamp\": 1695122093654,\n  \"transaction_id\": \"cf099f7c-3f7f-4ac5-8633-faf85c541ad0\",\n  \"object_id\": \"958b2f80-3d3b-48e4-bce9-ed88bc15316c\",\n  \"flow\": \"publish_advert\",\n  \"error_message\": \"O an\u00fancio tem que estar ativo\",\n  \"data\": {\n    \"activated_at\": \"2023-09-19T11:14:38.000Z\",\n    \"recorded_at\": \"2023-09-19T11:14:48.660Z\",\n    \"code\": \"removed_by_user\",\n    \"moderation\": {\n      \"description\": null,\n      \"reason\": null\n    },\n    \"created_at\": \"2023-09-19T10:53:08.000Z\",\n    \"detail\": \"O an\u00fancio tem que estar ativo\",\n    \"visible_in_profile\": true,\n    \"title\": \"BadRequestException\",\n    \"modified_at\": \"2023-09-19T11:14:48.000Z\",\n    \"ttl\": \"2023-09-19T11:07:06.000Z\",\n    \"validation\": null,\n    \"url\": \"https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html\"\n  },\n  \"event_type\": \"advert_deactivated_error\"\n}<\/code><button onclick=\"copyJson('copy_21885')\">Copy<\/button>\nJSON\n{\n  &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n  &#8220;timestamp&#8221;: 1695122093654,\n  &#8220;event_timestamp&#8221;: 1695122093654,\n  &#8220;transaction_id&#8221;: &#8220;cf099f7c-3f7f-4ac5-8633-faf85c541ad0&#8221;,\n  &#8220;object_id&#8221;: &#8220;958b2f80-3d3b-48e4-bce9-ed88bc15316c&#8221;,\n  &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n  &#8220;error_message&#8221;: &#8220;O an\u00fancio tem que estar ativo&#8221;,\n  &#8220;data&#8221;: {\n    &#8220;activated_at&#8221;: &#8220;2023-09-19T11:14:38.000Z&#8221;,\n    &#8220;recorded_at&#8221;: &#8220;2023-09-19T11:14:48.660Z&#8221;,\n    &#8220;code&#8221;: &#8220;removed_by_user&#8221;,\n    &#8220;moderation&#8221;: {\n      &#8220;description&#8221;: null,\n      &#8220;reason&#8221;: null\n    },\n    &#8220;created_at&#8221;: &#8220;2023-09-19T10:53:08.000Z&#8221;,\n    &#8220;detail&#8221;: &#8220;O an\u00fancio tem que estar ativo&#8221;,\n    &#8220;visible_in_profile&#8221;: true,\n    &#8220;title&#8221;: &#8220;BadRequestException&#8221;,\n    &#8220;modified_at&#8221;: &#8220;2023-09-19T11:14:48.000Z&#8221;,\n    &#8220;ttl&#8221;: &#8220;2023-09-19T11:07:06.000Z&#8221;,\n    &#8220;validation&#8221;: null,\n    &#8220;url&#8221;: &#8220;https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html&#8221;\n  },\n  &#8220;event_type&#8221;: &#8220;advert_deactivated_error&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Actions performed in the CRM should be based on the information returned by\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/receiving-advert-notifications\" target=\"_self\" rel=\"noopener\">Advert Notifications<\/a>. If you deactivate an advert, you will receive a webhook afterward with information about the result of the processing. The webhook contains information about the current status of the advert (for example: <strong>&#8220;event_type&#8221;: &#8220;advert_deactivated_success&#8221;<\/strong>, <strong>code: removed_by_user<\/strong>, <strong>&#8220;visible_in_profile&#8221;: true<\/strong>). When you receive such a notification, you should remember this status for your advert so that a second deactivation is not possible.<\/p>\n\t<h4>Cannot deactivate ad because it was deleted<\/h4>\n<p>When you try to\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/activate-deactivate-adverts#deactivate-ads\" target=\"_self\" rel=\"noopener\">deactivate an advert<\/a>\u00a0that was previously deactivated for some reason, you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n{\n  \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n  \"timestamp\": 1695122250415,\n  \"event_timestamp\": 1695122250415,\n  \"transaction_id\": \"57fadd76-f026-487b-ad27-339617fbc5b1\",\n  \"object_id\": \"958b2f80-3d3b-48e4-bce9-ed88bc15316c\",\n  \"flow\": \"publish_advert\",\n  \"error_message\": \"O an\u00fancio tem que estar ativo\",\n  \"data\": {\n    \"activated_at\": \"2023-09-19T11:14:38.000Z\",\n    \"recorded_at\": \"2023-09-19T11:17:22.172Z\",\n    \"code\": \"removed_by_user\",\n    \"moderation\": {\n      \"description\": null,\n      \"reason\": null\n    },\n    \"created_at\": \"2023-09-19T10:53:08.000Z\",\n    \"detail\": \"O an\u00fancio tem que estar ativo\",\n    \"visible_in_profile\": false,\n    \"title\": \"BadRequestException\",\n    \"modified_at\": \"2023-09-19T11:17:22.000Z\",\n    \"ttl\": \"2023-09-19T11:17:21.000Z\",\n    \"validation\": null,\n    \"url\": \"https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html\"\n  },\n  \"event_type\": \"advert_deactivated_error\"\n}<\/code><button onclick=\"copyJson('copy_35155')\">Copy<\/button>\nJSON\n{\n  &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n  &#8220;timestamp&#8221;: 1695122250415,\n  &#8220;event_timestamp&#8221;: 1695122250415,\n  &#8220;transaction_id&#8221;: &#8220;57fadd76-f026-487b-ad27-339617fbc5b1&#8221;,\n  &#8220;object_id&#8221;: &#8220;958b2f80-3d3b-48e4-bce9-ed88bc15316c&#8221;,\n  &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n  &#8220;error_message&#8221;: &#8220;O an\u00fancio tem que estar ativo&#8221;,\n  &#8220;data&#8221;: {\n    &#8220;activated_at&#8221;: &#8220;2023-09-19T11:14:38.000Z&#8221;,\n    &#8220;recorded_at&#8221;: &#8220;2023-09-19T11:17:22.172Z&#8221;,\n    &#8220;code&#8221;: &#8220;removed_by_user&#8221;,\n    &#8220;moderation&#8221;: {\n      &#8220;description&#8221;: null,\n      &#8220;reason&#8221;: null\n    },\n    &#8220;created_at&#8221;: &#8220;2023-09-19T10:53:08.000Z&#8221;,\n    &#8220;detail&#8221;: &#8220;O an\u00fancio tem que estar ativo&#8221;,\n    &#8220;visible_in_profile&#8221;: false,\n    &#8220;title&#8221;: &#8220;BadRequestException&#8221;,\n    &#8220;modified_at&#8221;: &#8220;2023-09-19T11:17:22.000Z&#8221;,\n    &#8220;ttl&#8221;: &#8220;2023-09-19T11:17:21.000Z&#8221;,\n    &#8220;validation&#8221;: null,\n    &#8220;url&#8221;: &#8220;https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html&#8221;\n  },\n  &#8220;event_type&#8221;: &#8220;advert_deactivated_error&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Actions performed in the CRM should be based on the information returned by\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/receiving-advert-notifications\" target=\"_self\" rel=\"noopener\">Advert Notifications<\/a>. If you delete an advert, you will receive a webhook afterward with information about the result of the processing. The webhook contains information about the current status of the advert (for example: <strong>&#8220;event_type&#8221;: &#8220;advert_deleted_success&#8221;<\/strong>, <strong>code: removed_by_user<\/strong>, <strong>&#8220;visible_in_profile&#8221;: false<\/strong>). When you receive such a notification, you should remember this status for your advert so that deactivation of a deleted advert is not possible.<\/p>\n\t<h4>Cannot update ad because it was deleted<\/h4>\n<p>When you try to\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/editing-and-deleting-adverts#edit-an-advert\" target=\"_self\" rel=\"noopener\">update an advert<\/a>\u00a0that was previously deleted for some reason, you&#8217;ll get a notification in your webhook with the following error:<\/p>\n<code>JSON\n{\n  \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n  \"timestamp\": 1695202468228,\n  \"event_timestamp\": 1695202468228,\n  \"transaction_id\": \"dddb0de3-039c-4427-9412-3beb5a6932d9\",\n  \"object_id\": \"1ef37504-674d-4289-a41f-660cfce7dedd\",\n  \"flow\": \"publish_advert\",\n  \"error_message\": \"Editing the ad failed.\",\n  \"data\": {\n    \"activated_at\": \"2023-09-20T09:33:52.000Z\",\n    \"recorded_at\": \"2023-09-20T09:34:14.964Z\",\n    \"code\": \"removed_by_user\",\n    \"moderation\": {\n      \"description\": null,\n      \"reason\": null\n    },\n    \"created_at\": \"2023-09-20T09:33:50.000Z\",\n    \"detail\": \"Editing the ad failed.\",\n    \"visible_in_profile\": false,\n    \"title\": \"AdvertsPostingException\",\n    \"modified_at\": \"2023-09-20T09:34:14.000Z\",\n    \"ttl\": \"2023-09-20T09:34:14.000Z\",\n    \"validation\": [\n      {\n        \"detail\": \"An\u00fancio removido\",\n        \"field\": \"ad\",\n        \"title\": \"Error\"\n      }\n    ],\n    \"url\": \"https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html\"\n  },\n  \"event_type\": \"advert_put_error\"\n}<\/code><button onclick=\"copyJson('copy_40388')\">Copy<\/button>\nJSON\n{\n  &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n  &#8220;timestamp&#8221;: 1695202468228,\n  &#8220;event_timestamp&#8221;: 1695202468228,\n  &#8220;transaction_id&#8221;: &#8220;dddb0de3-039c-4427-9412-3beb5a6932d9&#8221;,\n  &#8220;object_id&#8221;: &#8220;1ef37504-674d-4289-a41f-660cfce7dedd&#8221;,\n  &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n  &#8220;error_message&#8221;: &#8220;Editing the ad failed.&#8221;,\n  &#8220;data&#8221;: {\n    &#8220;activated_at&#8221;: &#8220;2023-09-20T09:33:52.000Z&#8221;,\n    &#8220;recorded_at&#8221;: &#8220;2023-09-20T09:34:14.964Z&#8221;,\n    &#8220;code&#8221;: &#8220;removed_by_user&#8221;,\n    &#8220;moderation&#8221;: {\n      &#8220;description&#8221;: null,\n      &#8220;reason&#8221;: null\n    },\n    &#8220;created_at&#8221;: &#8220;2023-09-20T09:33:50.000Z&#8221;,\n    &#8220;detail&#8221;: &#8220;Editing the ad failed.&#8221;,\n    &#8220;visible_in_profile&#8221;: false,\n    &#8220;title&#8221;: &#8220;AdvertsPostingException&#8221;,\n    &#8220;modified_at&#8221;: &#8220;2023-09-20T09:34:14.000Z&#8221;,\n    &#8220;ttl&#8221;: &#8220;2023-09-20T09:34:14.000Z&#8221;,\n    &#8220;validation&#8221;: [\n      {\n        &#8220;detail&#8221;: &#8220;An\u00fancio removido&#8221;,\n        &#8220;field&#8221;: &#8220;ad&#8221;,\n        &#8220;title&#8221;: &#8220;Error&#8221;\n      }\n    ],\n    &#8220;url&#8221;: &#8220;https:\/\/www.imovirtual.com\/pt\/anuncio\/advert.html&#8221;\n  },\n  &#8220;event_type&#8221;: &#8220;advert_put_error&#8221;\n}\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Actions performed in the CRM should be based on the information returned by\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/receiving-advert-notifications\" target=\"_self\" rel=\"noopener\">Advert Notifications<\/a>. If you delete an advert, you will receive a webhook afterward with information about the result of the processing. The webhook contains information about the current status of the advert (for example: <strong>&#8220;event_type&#8221;: &#8220;advert_deleted_success&#8221;<\/strong>, <strong>code: removed_by_user<\/strong>, <strong>&#8220;visible_in_profile&#8221;: false<\/strong>). When you receive such a notification, you should remember this status for your advert so that an update of a deleted advert is not possible.<\/p>\n\t<h4>Got a server error (5xx)<\/h4>\nIf you got an error with the following structure: &#8220;Got a server error (5xx) from Target API (hard)&#8230;&#8221;, that means that the request has a duplicated attribute. In this case, we cannot consider it as a duplicated attribute because both have different values. So, our platform is struggling to get which is the right value to fill &#8211; more about duplicated values (same attribute and same value)\u00a0<a href=\"https:\/\/developer.olxgroup.com\/docs\/publishing-errors#duplicate-attributes\" target=\"_self\" rel=\"noopener\">here<\/a>.<br \/>\nSo you&#8217;ll get an error as shown below:\n<code>JSON\n{\n    \"data\": {\n      \"detail\": \"Got a server error (5xx) from Target API (hard), will not try again because i reached the maximum number of receives or the retries extended the visibility time past the max allowed by SQS.\",\n      \"title\": \"TargetServerErrorHardException\",\n      \"validation\": null\n    },\n    \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n    \"error_message\": \"Got a server error (5xx) from Target API (hard), will not try again because i reached the maximum number of receives or the retries extended the visibility time past the max allowed by SQS.\",\n    \"event_timestamp\": 1622909202148,\n    \"event_type\": \"advert_posted_error\",\n    \"flow\": \"publish_advert\",\n    \"object_id\": \"c7a5b6d0-ea89-4874-b1c0-63bebcba92a3\",\n    \"timestamp\": 1622909202148,\n    \"transaction_id\": \"5159b2be-d26c-461d-bd4f-2eb023050915\"\n  },<\/code><button onclick=\"copyJson('copy_26774')\">Copy<\/button>\nJSON\n{\n    &#8220;data&#8221;: {\n      &#8220;detail&#8221;: &#8220;Got a server error (5xx) from Target API (hard), will not try again because i reached the maximum number of receives or the retries extended the visibility time past the max allowed by SQS.&#8221;,\n      &#8220;title&#8221;: &#8220;TargetServerErrorHardException&#8221;,\n      &#8220;validation&#8221;: null\n    },\n    &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n    &#8220;error_message&#8221;: &#8220;Got a server error (5xx) from Target API (hard), will not try again because i reached the maximum number of receives or the retries extended the visibility time past the max allowed by SQS.&#8221;,\n    &#8220;event_timestamp&#8221;: 1622909202148,\n    &#8220;event_type&#8221;: &#8220;advert_posted_error&#8221;,\n    &#8220;flow&#8221;: &#8220;publish_advert&#8221;,\n    &#8220;object_id&#8221;: &#8220;c7a5b6d0-ea89-4874-b1c0-63bebcba92a3&#8221;,\n    &#8220;timestamp&#8221;: 1622909202148,\n    &#8220;transaction_id&#8221;: &#8220;5159b2be-d26c-461d-bd4f-2eb023050915&#8221;\n  },\nCopied to clipboard\n\t<h5>Solution<\/h5>\n<p>Check for duplicated attributes, and implement a validation to make sure no attributes are being sent twice in the same post request. Check the following piece of a request payload, as an example:<\/p>\n<code>JSON\n{\n          \"urn\": \"urn:concept:net-area-m2\",\n          \"value\": \"4700\"\n        },\n        {\n          \"urn\": \"urn:concept:gross-area-m2\",\n          \"value\": \"2890\"\n        },\n        {\n          \"urn\": \"urn:concept:gross-area-m2\",\n          \"value\": \"4700\"\n        },<\/code><button onclick=\"copyJson('copy_31445')\">Copy<\/button>\nJSON\n{\n          &#8220;urn&#8221;: &#8220;urn:concept:net-area-m2&#8221;,\n          &#8220;value&#8221;: &#8220;4700&#8221;\n        },\n        {\n          &#8220;urn&#8221;: &#8220;urn:concept:gross-area-m2&#8221;,\n          &#8220;value&#8221;: &#8220;2890&#8221;\n        },\n        {\n          &#8220;urn&#8221;: &#8220;urn:concept:gross-area-m2&#8221;,\n          &#8220;value&#8221;: &#8220;4700&#8221;\n        },\nCopied to clipboard\n <\/ad>\n","protected":false},"excerpt":{"rendered":"<p>Publishing errors These errors happen when something&#8217;s wrong with the publication request (POST, PUT, DELETE, Activate, or Deactivate). Below you can find the most common situations and their respective solutions. Posting a duplicate advert To avoid content duplication we automatically detect situations where you post an advert that contains that same: custom_fields.id category_urn as an&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=771\" title=\"Read Publishing 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\/771"}],"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=771"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/771\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}