<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.offerit.com/index.php?action=history&amp;feed=atom&amp;title=Offerit_REST_API_Edit_Offer</id>
		<title>Offerit REST API Edit Offer - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.offerit.com/index.php?action=history&amp;feed=atom&amp;title=Offerit_REST_API_Edit_Offer"/>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;action=history"/>
		<updated>2026-05-04T17:35:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=4064&amp;oldid=prev</id>
		<title>OfferitDave at 20:05, 18 November 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=4064&amp;oldid=prev"/>
				<updated>2020-11-18T20:05:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:05, 18 November 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l86&quot; &gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Accepts a comma separated list or array of 2 letter country codes where traffic is not authorized to use this offer. Defaults to the 'Default Unauthorized Countries' configuration setting.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Accepts a comma separated list or array of 2 letter country codes where traffic is not authorized to use this offer. Defaults to the 'Default Unauthorized Countries' configuration setting.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no authorized or unauthorized countries are set even after checking the network configurations, the offer is authorized for all countries by default.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no authorized or unauthorized countries are set even after checking the network configurations, the offer is authorized for all countries by default.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*device_types&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**'''''type: array'''''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**'''''possible values : 0 (desktop) 1 (mobile) 2 (tablet)'''''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**Accepts an array of device types to accept.&amp;#160; Send empty array to unset.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*suppress_conversion_pixels&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*suppress_conversion_pixels&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''''type: bool'''''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''''type: bool'''''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>OfferitDave</name></author>	</entry>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=4006&amp;oldid=prev</id>
		<title>OfferitDave: /* Offer Parameters */</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=4006&amp;oldid=prev"/>
				<updated>2019-07-18T15:33:39Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Offer Parameters&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:33, 18 July 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l86&quot; &gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Accepts a comma separated list or array of 2 letter country codes where traffic is not authorized to use this offer. Defaults to the 'Default Unauthorized Countries' configuration setting.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Accepts a comma separated list or array of 2 letter country codes where traffic is not authorized to use this offer. Defaults to the 'Default Unauthorized Countries' configuration setting.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no authorized or unauthorized countries are set even after checking the network configurations, the offer is authorized for all countries by default.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If no authorized or unauthorized countries are set even after checking the network configurations, the offer is authorized for all countries by default.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*suppress_conversion_pixels&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**'''''type: bool'''''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**If true, conversions will not trigger affiliate pixels (but goals assigned to the conversion column still will).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*suppress_continuity_pixels&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**'''''type: bool'''''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**If true, continuities will not trigger affiliate pixels (but goals assigned to the continuity column still will).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==='''Advertiser Parameters'''===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==='''Advertiser Parameters'''===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>OfferitDave</name></author>	</entry>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=3709&amp;oldid=prev</id>
		<title>Offeritnick at 21:29, 12 May 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=3709&amp;oldid=prev"/>
				<updated>2017-05-12T21:29:41Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:29, 12 May 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l281&quot; &gt;Line 281:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 281:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$resp = curl_exec($curl); &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$resp = curl_exec($curl); &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//dumps an associative array representation of the json &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//dumps an associative array representation of the json &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;response&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;var_dump(&lt;/del&gt;json_decode($resp, true)); &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;$output = &lt;/ins&gt;json_decode($resp, true)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;if($output !== NULL) {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	//json was valid. Dump the decoded array&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	print_r($output);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;else {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	//invalid json, just dump the raw response&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;	print_r($resp&lt;/ins&gt;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// Close request to clear up some resources &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// Close request to clear up some resources &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;curl_close($curl); &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;curl_close($curl); &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Offeritnick</name></author>	</entry>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=3650&amp;oldid=prev</id>
		<title>Offeritnick: Created page with &quot;{{Offerit  Manual | show_rest_api_section = true }} == '''PATCH /offer/edit_offer''' == '''Description'''  *edit_offer edits an existing offer  '''Resource URL''' *&lt;nowiki&gt;htt...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Edit_Offer&amp;diff=3650&amp;oldid=prev"/>
				<updated>2017-05-11T23:43:34Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Offerit  Manual | show_rest_api_section = true }} == &amp;#039;&amp;#039;&amp;#039;PATCH /offer/edit_offer&amp;#039;&amp;#039;&amp;#039; == &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;  *edit_offer edits an existing offer  &amp;#039;&amp;#039;&amp;#039;Resource URL&amp;#039;&amp;#039;&amp;#039; *&amp;lt;nowiki&amp;gt;htt...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Offerit  Manual&lt;br /&gt;
| show_rest_api_section = true&lt;br /&gt;
}}&lt;br /&gt;
== '''PATCH /offer/edit_offer''' ==&lt;br /&gt;
'''Description''' &lt;br /&gt;
*edit_offer edits an existing offer&lt;br /&gt;
&lt;br /&gt;
'''Resource URL'''&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;http://domain/api/offer/edit_offer&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*Replace domain with the Offerit domain&lt;br /&gt;
&lt;br /&gt;
'''Response Format'''&lt;br /&gt;
*JSON&lt;br /&gt;
&lt;br /&gt;
'''[[Offerit_REST_API_Overview#Allowed_HTTP_Request_Methods|Request Method''']]&lt;br /&gt;
*PATCH&lt;br /&gt;
&lt;br /&gt;
'''[[Offerit_REST_API_Overview#Authentication|Authentication]]'''&lt;br /&gt;
*HTTP headers&lt;br /&gt;
&lt;br /&gt;
== '''Parameters''' ==&lt;br /&gt;
=== '''Offer Parameters''' ===&lt;br /&gt;
*offerid&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''''required'''''&lt;br /&gt;
**Id of offer to edit&lt;br /&gt;
*name&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Offer Name&lt;br /&gt;
*offer_description&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Description to display to affiliates&lt;br /&gt;
*hidden&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Offer does not show up in the affiliate offer list.&lt;br /&gt;
*date_live&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Time when offer should become available to affiliates.  String to time on the string provided. Default is empty.&lt;br /&gt;
*date_expire&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Time when offer should stop being available to affiliates.  String to time on the string provided. Default is empty.&lt;br /&gt;
*featured&lt;br /&gt;
**'''''type: bool'''''&lt;br /&gt;
*thumb_url&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Url of offer thumbnail image.&lt;br /&gt;
*force_url&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Url to screenshot for thumbnail.&lt;br /&gt;
**Flags this as a featured offer. Default FALSE.&lt;br /&gt;
*expire_url&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**External URL to redirect traffic to if the offer is expired.&lt;br /&gt;
*expire_landing_pageid&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**ID of landing page to redirect traffic to if the offer is expired.&lt;br /&gt;
*no_personal_member_info&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Prevent name and address information from being stored in the customer record&lt;br /&gt;
*subject_lines&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Comma separated list of recommended subject lines for affiliates promoting via email.  Only displayed when &amp;quot;Display Offer Email Fields&amp;quot; is enabled&lt;br /&gt;
*from_addresses&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Comma separated list of recommended from addresses for affiliates promoting via email.  Only displayed when &amp;quot;Display Offer Email Fields&amp;quot; is enabled&lt;br /&gt;
*ip_lookup&lt;br /&gt;
**'''''type: Bool'''''&lt;br /&gt;
** Set cookieless tracking to match on only IP instead of IP+Browser Details. Default FALSE.&lt;br /&gt;
*ip_uniqueness_seconds&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**Set the number of seconds before a repeat visit by the same visitor will trigger the 'unique' offer redirect contition. This does not affect them showing as unique in stats.  Default is unset on the offer level and inheriting from the &amp;quot;Unique Visitor Time&amp;quot; configuration setting.  &lt;br /&gt;
*offer_groups&lt;br /&gt;
**'''''type: int,string,array'''''&lt;br /&gt;
**Accepts an existing offer group id, comma separated list of group ids, or array of group ids to associate with this offer.&lt;br /&gt;
*marketing_types&lt;br /&gt;
**'''''type: int,string,array'''''&lt;br /&gt;
**Accepts an existing  marketing type id, comma separated list of marketing type ids, or array of marketing type ids to associate with this offer.&lt;br /&gt;
*categories&lt;br /&gt;
**'''''type: int,string,array'''''&lt;br /&gt;
**Accepts an existing category id or category name, comma separated list of ids/names, or array of ids/names to associate with this offer. Creates new categories if a category name is passed that does not exist.&lt;br /&gt;
*authorized&lt;br /&gt;
**'''''type: string,array'''''&lt;br /&gt;
**Accepts a comma separated list or array of 2 letter country codes where traffic is authorized to use this offer. Defaults to the 'Default Authorized Countries' configuration setting.&lt;br /&gt;
*unauthorized&lt;br /&gt;
**'''''type: string,array'''''&lt;br /&gt;
**Accepts a comma separated list or array of 2 letter country codes where traffic is not authorized to use this offer. Defaults to the 'Default Unauthorized Countries' configuration setting.&lt;br /&gt;
If no authorized or unauthorized countries are set even after checking the network configurations, the offer is authorized for all countries by default.&lt;br /&gt;
&lt;br /&gt;
==='''Advertiser Parameters'''===&lt;br /&gt;
*advertiserid&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**Loginid of advertiser account associated with this offer. Default none.&lt;br /&gt;
*advertiser_cost_type&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''''options:'''''&lt;br /&gt;
***conversion:flat amount per conversion&lt;br /&gt;
***dynamic_conversion:uses the revenue passed with the conversion&lt;br /&gt;
***sale:calculate a percentage of the gross sale amount reported by the advertiser&lt;br /&gt;
***click:a flat amount per click&lt;br /&gt;
***unique:a flat amount per unique click&lt;br /&gt;
**If there is an advertiser associated with this offer, how is offer revenue calculated. Default none.&lt;br /&gt;
*advertiser_cost_flat&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Flat cost to advertisers. used with 'conversion','click','unique'&lt;br /&gt;
*advertiser_cost_perc&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Percentage cost to advertiser used with 'sale'&lt;br /&gt;
&lt;br /&gt;
==='''Fraud Prevention Parameters'''===&lt;br /&gt;
*ip_conversion_limit_flag&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**'''''options'''''&lt;br /&gt;
***0: Inherit from Network Configuration&lt;br /&gt;
***1: No Limit on this offer&lt;br /&gt;
***2: Specify Limimt on this offer&lt;br /&gt;
**Comma separated list of recommended from addresses for affiliates promoting via email.  Only displayed when &amp;quot;Display Offer Email Fields&amp;quot; is enabled. Default 0.&lt;br /&gt;
*ip_conversion_limit&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**Number of conversions allowed per IP to this offer in any 24 hour time period. Only checked if ip_conversion_limit_flag=2. Default 0.&lt;br /&gt;
*ip_conversion_group&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**'''''options'''''&lt;br /&gt;
***0: This offer only&lt;br /&gt;
***x: Group id of any offer group.&lt;br /&gt;
**Controls the scope of ip_conversion_limit.  Default is 0, this offer only.  Specifying a group id will count all conversion for offers in that group&lt;br /&gt;
*prevent_cookie_dupes&lt;br /&gt;
**'''''type: Bool'''''&lt;br /&gt;
**Checks a cookie to block surfers that have already converted on this offer during the cookie lifetime. Default FALSE.&lt;br /&gt;
*pending_approval_lockout&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**Minimum number of seconds that must pass between a click and a conversion for that conversion to be automatically approved.  While this setting is in effect, all conversions on this offer are treated as pending. If the lockout period has been reached, the system will record both a pending conversion and an approved conversion automatically. Default 0 to disable.&lt;br /&gt;
&lt;br /&gt;
==='''Revenue Parameters'''===&lt;br /&gt;
*conversion_default&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Amount used if none is specified in the conversion. Default none.&lt;br /&gt;
*conversion_default_type&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**'''''options'''''&lt;br /&gt;
***1:Revenue&lt;br /&gt;
***2:Gross&lt;br /&gt;
** Specify if the amount specified in conversion_default is revenue or gross. Default 1 for revenue&lt;br /&gt;
*continuity_default&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**Amount used if none is specified in the continuity. Default none.&lt;br /&gt;
*continuity_default_type&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''''options'''''&lt;br /&gt;
***1:Revenue&lt;br /&gt;
***2:Gross&lt;br /&gt;
** Specify if the amount specified in continuity_default is revenue or gross. Default 1 for revenue&lt;br /&gt;
&lt;br /&gt;
==='''Commission Parameters'''===&lt;br /&gt;
*percentage_commission_source&lt;br /&gt;
**'''''type: int''''&lt;br /&gt;
**'''''options'''''&lt;br /&gt;
***0:Revenue&lt;br /&gt;
***1:Gross&lt;br /&gt;
** Specify whether revenue or gross should be used as the base when affiliate are paid a percentage. Default 0 for revenue&lt;br /&gt;
*hide_payout_string &lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
**Hide the automatically generated commission description and use the description in 'commission_description' instead.&lt;br /&gt;
*commission_description&lt;br /&gt;
**'''''type: string''''&lt;br /&gt;
**Custom description displayed to affiliates to explain how commissions are calculated for this offer.&lt;br /&gt;
*commission_type&lt;br /&gt;
**'''''type: string''''&lt;br /&gt;
**'''''options'''''&lt;br /&gt;
***cpa:Flat per CPA.  Works with flat_amount_per_conversion and flat_amount_per_continuity&lt;br /&gt;
***cps:Percentage of Sale. Works with percentage_of_customer_conversion and percentage_of_customer_continuity&lt;br /&gt;
***click:Flat per Click. Works with flat_amount_per_click and flat_amount_per_visitor&lt;br /&gt;
***hybrid:Hybrid. Works with all fields.&lt;br /&gt;
**Specify what type of commission this offer will pay.&lt;br /&gt;
*flat_amount_per_click&lt;br /&gt;
**'''''type: decimal''''&lt;br /&gt;
** Flat commission paid for every raw click. Works with click or hybrid&lt;br /&gt;
*flat_amount_per_visitor&lt;br /&gt;
**'''''type: decimal''''&lt;br /&gt;
** Flat commission paid for every unique click. Works with click or hybrid&lt;br /&gt;
*flat_amount_per_conversion&lt;br /&gt;
**'''''type: decimal''''&lt;br /&gt;
** Flat commission paid for every conversion. Works with cpa or hybrid&lt;br /&gt;
*flat_amount_per_continuity&lt;br /&gt;
**'''''type: decimal''''&lt;br /&gt;
** Flat commission paid for every continuity. Works with cpa or hybrid&lt;br /&gt;
*percentage_of_customer_conversion&lt;br /&gt;
**'''''type: decimal''''&lt;br /&gt;
** Percentage of conversion revenue to pay as commission. Works with cps or hybrid&lt;br /&gt;
*percentage_of_customer_continuity&lt;br /&gt;
**'''''type: decimal''''&lt;br /&gt;
** Percentage of continuity revenue to pay as commission. Works with cps or hybrid&lt;br /&gt;
*retro_payout&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
*All transactions for a customer will use the commission settings in place at the time of the first transaction.&lt;br /&gt;
*hide_deductions&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
*Only show voids / chargebacks in affiliate statistics if they affected affiliate commissions.&lt;br /&gt;
*hide_continuities&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
*Only show continuities  in affiliate statistics if they affected affiliate commissions.&lt;br /&gt;
*hide_conversions&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
*Only show conversions  in affiliate statistics if they affected affiliate commissions.&lt;br /&gt;
*deduct_voids&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
**When enabled, voids will reverse the commission paid to the affiliate on the original transaction that is being voided&lt;br /&gt;
*deduct_chargebacks&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
**When enabled, chargebacks will reverse the commission paid to the affiliate on the original transaction that is being charged back&lt;br /&gt;
*min_deduct_date&lt;br /&gt;
**'''''type: string''''&lt;br /&gt;
**Date for stringtotime.  Transactions before this date will never have their commissions removed by a void or chargeback.&lt;br /&gt;
*deduct_window&lt;br /&gt;
**'''''type: int''''&lt;br /&gt;
**If a void or chargeback is reported more than this many days after the original transaction, the affiliate will not have their commission removed even if deduct_voids or deduct_chargebacks is enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== '''Example Request''' ==&lt;br /&gt;
&lt;br /&gt;
'''PATCH'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
http://domain/api/offer/edit_offer&lt;br /&gt;
name=edited API TEST OFFER&lt;br /&gt;
authorized=GB,IT&lt;br /&gt;
advertiserid=9&lt;br /&gt;
advertiser_cost_type=conversion&lt;br /&gt;
advertiser_cost_flat=25&lt;br /&gt;
commission_type=cps&lt;br /&gt;
percentage_of_customer_conversion=15&lt;br /&gt;
percentage_of_customer_continuity=5&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Response: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;result&amp;quot;:&amp;quot;Success&amp;quot;,&lt;br /&gt;
    &amp;quot;message&amp;quot;: &amp;quot;offer_saved&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Example Code''' ==&lt;br /&gt;
&lt;br /&gt;
'''PHP'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
$url = 'http://domain/api/offer/edit_offer';&lt;br /&gt;
$curl = curl_init(); &lt;br /&gt;
 &lt;br /&gt;
$headers = array( &lt;br /&gt;
    'api-key: 44b5498dbcb481a0d00b404c0169af62', &lt;br /&gt;
    'api-username: productsupport' &lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
 $data = Array(&lt;br /&gt;
    'offerid' =&amp;gt; 251,&lt;br /&gt;
    'name' =&amp;gt; 'edited API TEST Offer',&lt;br /&gt;
    'authorized' =&amp;gt; 'GB,IT',&lt;br /&gt;
    'advertiserid' =&amp;gt; 9,&lt;br /&gt;
    'advertiser_cost_type' =&amp;gt; 'conversion',&lt;br /&gt;
    'advertiser_cost_flat'=&amp;gt; 25,&lt;br /&gt;
    'commission_type' =&amp;gt; cps,&lt;br /&gt;
    'percentage_of_customer_conversion' =&amp;gt; 15,&lt;br /&gt;
    'percentage_of_customer_continuity' =&amp;gt; 5,&lt;br /&gt;
); &lt;br /&gt;
&lt;br /&gt;
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); &lt;br /&gt;
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); &lt;br /&gt;
curl_setopt($curl, CURLOPT_URL, $url);&lt;br /&gt;
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, &amp;quot;PATCH&amp;quot;);&lt;br /&gt;
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));&lt;br /&gt;
                                                  &lt;br /&gt;
$resp = curl_exec($curl); &lt;br /&gt;
//dumps an associative array representation of the json &lt;br /&gt;
var_dump(json_decode($resp, true)); &lt;br /&gt;
// Close request to clear up some resources &lt;br /&gt;
curl_close($curl); &lt;br /&gt;
?&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Offerit API Articles]]&lt;/div&gt;</summary>
		<author><name>Offeritnick</name></author>	</entry>

	</feed>