{"id":815,"date":"2017-05-10T12:17:08","date_gmt":"2017-05-10T19:17:08","guid":{"rendered":"https:\/\/help.idevaffiliate.com\/?p=815"},"modified":"2017-06-26T17:04:15","modified_gmt":"2017-06-27T00:04:15","slug":"automatic-commission-removal-woocommerce","status":"publish","type":"post","link":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/","title":{"rendered":"Automatic Commission Removal for WooCommerce"},"content":{"rendered":"<p>As you probably already know, our WooCommerce integration will have you install a supplied WordPress plugin that will connect WooCommerce to iDevAffiliate. This plugin will automatically create new commissions for referring affiliates, as referred customers make purchases. These commissions are created instantly, during the checkout process.<\/p>\n<p><strong>Now we have another plugin for you as well!<\/strong><\/p>\n<p>Taking advantage of the already built-in iDevAffiliate API to remove commissions, this new plugin will do just that, remove commissions. When used, this new plugin will auto-remove commissions for orders marked with an <strong>order status<\/strong> of &#8220;<strong>refunded<\/strong>&#8220;. This helps to automate management of your affiliate program. What most customers will do in this case will actually be to have iDevAffiliate auto-approve new commissions as they are created. Then, if needed, you can switch the order status to &#8220;<strong>refunded<\/strong>&#8221; in WooCommerce and the commission will automatically be removed. Realize though, this will only affect commission&#8217;s that are <em>currently approved<\/em>, or <em>pending approval<\/em>. <strong>Once a commission is paid, it cannot be removed.<\/strong><\/p>\n<p>Using the example in the screenshot below, we are setting order number &#8220;<strong>14<\/strong>&#8221; to refunded. The plugin will automatically go to iDevAffiliate and look for a commission that is either <em>currently approved<\/em> or <em>pending approval<\/em>, with the order number &#8220;<strong>14<\/strong>&#8220;. If found, the commission will be removed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/help.idevaffiliate.com\/wp-content\/uploads\/2017\/05\/woo_refunded.jpg\" alt=\"\" width=\"815\" height=\"298\" class=\"aligncenter size-full wp-image-816\" srcset=\"https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/woo_refunded.jpg 815w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/woo_refunded-300x110.jpg 300w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/woo_refunded-768x281.jpg 768w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/woo_refunded-60x22.jpg 60w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/woo_refunded-150x55.jpg 150w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/p>\n<div class=\"alert alert-info\">Download and Instructions<\/div>\n<p><a href=\"\/\/www.idevlibrary.com\/files\/idevaffiliate-woocommerce-refund.zip\" target=\"_blank\" class=\"btn btn-primary\">Download Plugin<\/a><\/p>\n<ol>\n<li>Download the plugin using the link above then install it in to WordPress like any other plugin &#8211; be sure the activate it as well.<\/li>\n<li>In WordPress, go to <strong>Settings<\/strong> > <strong>Integration<\/strong> then <strong>iDevAffiliate WooCommerce Refund API<\/strong>.<\/li>\n<li>Enter your <strong>iDevAffiliate Installation URL<\/strong>.<\/li>\n<li>Enter your <strong>iDevAffiliate API Secret<\/strong>.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/help.idevaffiliate.com\/wp-content\/uploads\/2017\/05\/idevaffiliate_refund.jpg\" alt=\"\" width=\"800\" height=\"391\" class=\"aligncenter size-full wp-image-820\" srcset=\"https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_refund.jpg 800w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_refund-300x147.jpg 300w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_refund-768x375.jpg 768w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_refund-60x29.jpg 60w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_refund-150x73.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Your <strong>iDevAffiliate API Secret<\/strong> is found in your iDevAffiliate admin center at <strong>Tools<\/strong> > <strong>API<\/strong> > <strong>API Secret Key<\/strong> (tab).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/help.idevaffiliate.com\/wp-content\/uploads\/2017\/05\/idevaffiliate_secret.jpg\" alt=\"\" width=\"800\" height=\"360\" class=\"aligncenter size-full wp-image-823\" srcset=\"https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_secret.jpg 800w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_secret-300x135.jpg 300w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_secret-768x346.jpg 768w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_secret-60x27.jpg 60w, https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2017\/05\/idevaffiliate_secret-150x68.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><strong>That&#8217;s it!<\/strong> Commissions will now be removed when you set an order status to refunded.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you probably already know, our WooCommerce integration will have you install a supplied WordPress plugin that will connect WooCommerce to iDevAffiliate. This plugin will automatically create new commissions for referring affiliates, as referred customers make purchases. These commissions are created instantly, during the checkout process. Now we have another plugin for you as well! [&hellip;]<\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[30],"tags":[],"class_list":["post-815","post","type-post","status-publish","format-standard","hentry","category-shopping-cart-integration"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Automatic Commission Removal for WooCommerce - iDevAffiliate Knowledge Base, FAQs, Technical Support<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatic Commission Removal for WooCommerce - iDevAffiliate Knowledge Base, FAQs, Technical Support\" \/>\n<meta property=\"og:description\" content=\"As you probably already know, our WooCommerce integration will have you install a supplied WordPress plugin that will connect WooCommerce to iDevAffiliate. This plugin will automatically create new commissions for referring affiliates, as referred customers make purchases. These commissions are created instantly, during the checkout process. Now we have another plugin for you as well! [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"iDevAffiliate Knowledge Base, FAQs, Technical Support\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-10T19:17:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-27T00:04:15+00:00\" \/>\n<meta name=\"author\" content=\"iDevAffiliate Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"iDevAffiliate Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/\"},\"author\":{\"name\":\"iDevAffiliate Support\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/person\/76153d230c5bbbc8d134edded20526c6\"},\"headline\":\"Automatic Commission Removal for WooCommerce\",\"datePublished\":\"2017-05-10T19:17:08+00:00\",\"dateModified\":\"2017-06-27T00:04:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/\"},\"wordCount\":301,\"publisher\":{\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#organization\"},\"articleSection\":[\"Shopping Cart Integration\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/\",\"url\":\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/\",\"name\":\"Automatic Commission Removal for WooCommerce - iDevAffiliate Knowledge Base, FAQs, Technical Support\",\"isPartOf\":{\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#website\"},\"datePublished\":\"2017-05-10T19:17:08+00:00\",\"dateModified\":\"2017-06-27T00:04:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.idevaffiliate.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automatic Commission Removal for WooCommerce\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#website\",\"url\":\"https:\/\/www.idevaffiliate.com\/help\/\",\"name\":\"iDevAffiliate Knowledge Base, FAQs, Technical Support\",\"description\":\"The official support center for iDevAffiliate. Find self-help articles, video guides, FAQs and contact our support dept.\",\"publisher\":{\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.idevaffiliate.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#organization\",\"name\":\"iDevAffiliate, Inc.\",\"url\":\"https:\/\/www.idevaffiliate.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2021\/01\/idevaffiliate_logo.png\",\"contentUrl\":\"https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2021\/01\/idevaffiliate_logo.png\",\"width\":200,\"height\":40,\"caption\":\"iDevAffiliate, Inc.\"},\"image\":{\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/person\/76153d230c5bbbc8d134edded20526c6\",\"name\":\"iDevAffiliate Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/49e1c681c230bfafb85e1c5bbf24c33e61aafeb8055654adf5d96a91d445737e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/49e1c681c230bfafb85e1c5bbf24c33e61aafeb8055654adf5d96a91d445737e?s=96&d=mm&r=g\",\"caption\":\"iDevAffiliate Support\"},\"url\":\"https:\/\/www.idevaffiliate.com\/help\/author\/vetteracer_16\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatic Commission Removal for WooCommerce - iDevAffiliate Knowledge Base, FAQs, Technical Support","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"Automatic Commission Removal for WooCommerce - iDevAffiliate Knowledge Base, FAQs, Technical Support","og_description":"As you probably already know, our WooCommerce integration will have you install a supplied WordPress plugin that will connect WooCommerce to iDevAffiliate. This plugin will automatically create new commissions for referring affiliates, as referred customers make purchases. These commissions are created instantly, during the checkout process. Now we have another plugin for you as well! [&hellip;]","og_url":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/","og_site_name":"iDevAffiliate Knowledge Base, FAQs, Technical Support","article_published_time":"2017-05-10T19:17:08+00:00","article_modified_time":"2017-06-27T00:04:15+00:00","author":"iDevAffiliate Support","twitter_card":"summary_large_image","twitter_misc":{"Written by":"iDevAffiliate Support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/#article","isPartOf":{"@id":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/"},"author":{"name":"iDevAffiliate Support","@id":"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/person\/76153d230c5bbbc8d134edded20526c6"},"headline":"Automatic Commission Removal for WooCommerce","datePublished":"2017-05-10T19:17:08+00:00","dateModified":"2017-06-27T00:04:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/"},"wordCount":301,"publisher":{"@id":"https:\/\/www.idevaffiliate.com\/help\/#organization"},"articleSection":["Shopping Cart Integration"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/","url":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/","name":"Automatic Commission Removal for WooCommerce - iDevAffiliate Knowledge Base, FAQs, Technical Support","isPartOf":{"@id":"https:\/\/www.idevaffiliate.com\/help\/#website"},"datePublished":"2017-05-10T19:17:08+00:00","dateModified":"2017-06-27T00:04:15+00:00","breadcrumb":{"@id":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.idevaffiliate.com\/help\/automatic-commission-removal-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.idevaffiliate.com\/help\/"},{"@type":"ListItem","position":2,"name":"Automatic Commission Removal for WooCommerce"}]},{"@type":"WebSite","@id":"https:\/\/www.idevaffiliate.com\/help\/#website","url":"https:\/\/www.idevaffiliate.com\/help\/","name":"iDevAffiliate Knowledge Base, FAQs, Technical Support","description":"The official support center for iDevAffiliate. Find self-help articles, video guides, FAQs and contact our support dept.","publisher":{"@id":"https:\/\/www.idevaffiliate.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.idevaffiliate.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.idevaffiliate.com\/help\/#organization","name":"iDevAffiliate, Inc.","url":"https:\/\/www.idevaffiliate.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2021\/01\/idevaffiliate_logo.png","contentUrl":"https:\/\/www.idevaffiliate.com\/help\/wp-content\/uploads\/2021\/01\/idevaffiliate_logo.png","width":200,"height":40,"caption":"iDevAffiliate, Inc."},"image":{"@id":"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/person\/76153d230c5bbbc8d134edded20526c6","name":"iDevAffiliate Support","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.idevaffiliate.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/49e1c681c230bfafb85e1c5bbf24c33e61aafeb8055654adf5d96a91d445737e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/49e1c681c230bfafb85e1c5bbf24c33e61aafeb8055654adf5d96a91d445737e?s=96&d=mm&r=g","caption":"iDevAffiliate Support"},"url":"https:\/\/www.idevaffiliate.com\/help\/author\/vetteracer_16\/"}]}},"_links":{"self":[{"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/posts\/815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/comments?post=815"}],"version-history":[{"count":13,"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/posts\/815\/revisions"}],"predecessor-version":[{"id":845,"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/posts\/815\/revisions\/845"}],"wp:attachment":[{"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/media?parent=815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/categories?post=815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.idevaffiliate.com\/help\/wp-json\/wp\/v2\/tags?post=815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}