{"id":2798,"date":"2025-03-05T03:39:53","date_gmt":"2025-03-05T03:39:53","guid":{"rendered":"https:\/\/synctrack.io\/?post_type=knowledgebase&#038;p=2798"},"modified":"2025-03-05T04:11:11","modified_gmt":"2025-03-05T04:11:11","slug":"returns-exchanges-webhooks","status":"publish","type":"knowledgebase","link":"https:\/\/synctrack.io\/knowledge-base\/returns\/api-webhook\/returns-exchanges-webhooks\/","title":{"rendered":"Returns\/Exchanges Webhooks"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-a9ef64e25134218383302c74006cc091\" style=\"color:#14296e\">Introduction<\/h2>\n\n\n\n<p>The <strong>Returns\/Exchange Webhooks<\/strong> feature enables merchants to integrate and synchronize return\/exchange data with their systems in real-time. This guide will walk you through the setup process, key benefits, and considerations for using this feature.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-e6a3456570abfc9be6b46e53de0025cd\" style=\"color:#14296e\">Merchant Setup<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Activating the Feature<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log into the <strong>Synctrack Return app<\/strong>.<\/li>\n\n\n\n<li>Navigate to <strong>Settings > Webhooks<\/strong>.<\/li>\n\n\n\n<li>Create webhook with endpoint and optional topics<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Configuring the Webhooks<\/strong><\/h3>\n\n\n\n<p>By default, webhooks are available for the following events:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Return\/Exchange Order Created<\/li>\n\n\n\n<li>Approved<\/li>\n\n\n\n<li>Rejected<\/li>\n\n\n\n<li>Refunded<\/li>\n<\/ul>\n\n\n\n<p>You can select which events to create for webhook notifications.<\/p>\n\n\n\n<p>You can also test the received data by sending a test webhook.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Response<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n      \"topic\": \"RETURNS_CREATE\",\n      \"returnOrderId\": \"RF11ADEDB8\",\n      \"requestDate\": \"2025-03-05T04:08:47.522Z\",\n      \"status\": \"PENDING\",\n      \"returnMethod\": \"Ship with any carrier\",\n      \"returnFee\": \"15.00\",\n      \"orderId\": \"#1036\",\n      \"currency\": \"USD\",\n      \"customer\": {\n        \"id\": \"7856547070120\",\n        \"name\": \"null null\",\n        \"email\": \"datdh@omegatheme.com\",\n        \"address\": \"\"\n      },\n      \"shippingAddress\": {\n        \"name\": null,\n        \"address\": null,\n        \"address2\": null,\n        \"city\": null,\n        \"province\": null,\n        \"provinceCode\": null,\n        \"country\": null,\n        \"countryCode\": null\n      },\n      \"items\": &#91;\n        {\n          \"productName\": \"Refuge Destroyed Super Shortie Denim Shorts\",\n          \"reason\": \"Others (Please specify in additional notes)\",\n          \"price\": \"15.0\",\n          \"quantity\": 1\n        }\n      ],\n      \"label\": {\n        \"url\": null\n      }\n    }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Introduction The Returns\/Exchange Webhooks feature enables merchants to integrate and synchronize return\/exchange data with their systems in real-time. This guide will walk you through the setup process, key benefits, and considerations for using this feature. Merchant Setup Activating the Feature [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","template":"","knowledgebase_cat":[286],"class_list":["post-2798","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-api-webhook"],"acf":[],"_links":{"self":[{"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/knowledgebase\/2798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/comments?post=2798"}],"version-history":[{"count":3,"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/knowledgebase\/2798\/revisions"}],"predecessor-version":[{"id":2808,"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/knowledgebase\/2798\/revisions\/2808"}],"wp:attachment":[{"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/media?parent=2798"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/synctrack.io\/wp-json\/wp\/v2\/knowledgebase_cat?post=2798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}