<?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_Add_Commission_Change</id>
		<title>Offerit REST API Add Commission Change - 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_Add_Commission_Change"/>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Add_Commission_Change&amp;action=history"/>
		<updated>2026-04-29T22:47:15Z</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_Add_Commission_Change&amp;diff=3719&amp;oldid=prev</id>
		<title>Offeritnick at 21:32, 12 May 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Add_Commission_Change&amp;diff=3719&amp;oldid=prev"/>
				<updated>2017-05-12T21:32:23Z</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:32, 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-l152&quot; &gt;Line 152:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 152:&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_Add_Commission_Change&amp;diff=3654&amp;oldid=prev</id>
		<title>Offeritnick: Created page with &quot;{{Offerit  Manual | show_rest_api_section = true }} == '''POST /offer/add_commission_change''' == '''Description'''  *add_commission_change adds a new offer   '''Resource URL'...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Add_Commission_Change&amp;diff=3654&amp;oldid=prev"/>
				<updated>2017-05-11T23:51:44Z</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;POST /offer/add_commission_change&amp;#039;&amp;#039;&amp;#039; == &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;  *add_commission_change adds a new offer   &amp;#039;&amp;#039;&amp;#039;Resource URL&amp;#039;...&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;
== '''POST /offer/add_commission_change''' ==&lt;br /&gt;
'''Description''' &lt;br /&gt;
*add_commission_change adds a new offer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Resource URL'''&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;http://domain/api/offer/add_commission_change&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;
*POST&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;
*offerid&lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**'''''required'''''&lt;br /&gt;
**Id of the offer that contains the commission changes being edited.&lt;br /&gt;
*type&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''''options: standard,disable,temporary'''''&lt;br /&gt;
**'''''required'''''&lt;br /&gt;
**Disable automatically sets all payout fields to 0.  Temporary lets you set a start and end date to schedule when the payout change will be in effect. Standard is everything else.&lt;br /&gt;
*username &lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Username of affiliate to restrict this new commission change to.&lt;br /&gt;
*loginid &lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**Loginid of affiliate to restrict this new commission change to.&lt;br /&gt;
*countries &lt;br /&gt;
**'''''type: Array'''''&lt;br /&gt;
**Array of 2 character iso2 country codes to restrict this new commission change to&lt;br /&gt;
*countries &lt;br /&gt;
**'''''type: Array'''''&lt;br /&gt;
**Array of 2 character iso2 country codes to restrict this new commission change to&lt;br /&gt;
*subaff&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Optional affiliate subaff value to restrict this new commission change to &lt;br /&gt;
*subaff2&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Optional affiliate subaff2 value to restrict this new commission change to &lt;br /&gt;
*subaff3&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Optional affiliate subaff3 value to restrict this new commission change to &lt;br /&gt;
*subaff4&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Optional affiliate subaff4 value to restrict this new commission change to &lt;br /&gt;
*subaff5&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Optional affiliate subaff5 value to restrict this new commission change to &lt;br /&gt;
*start_time&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**Start time for type=temporary.  String to time is run on this field.&lt;br /&gt;
*end_time&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**End time for type=temporary. String to time is run on this field.&lt;br /&gt;
*goalid &lt;br /&gt;
**'''''type: int'''''&lt;br /&gt;
**The offer goal id visible in the edit offer details page or from [[Offerit_REST_Get_Commission_Changes|get_commission_changes]]. Default  0 updates the main offer commission changes instead of goal specific commissions&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 offers&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 offers&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 offers&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 offers&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 offers&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 offers&lt;br /&gt;
*aff_manager_payout&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
**Only applies to goal changes. Specifies if events posted to this goal should trigger affiliate manager payouts if applicable.&lt;br /&gt;
*aff_referral_payout&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
**Only applies to goal changes. Specifies if events posted to this goal should trigger affiliate referral payouts if applicable.&lt;br /&gt;
*offer_partner_payout&lt;br /&gt;
**'''''type: bool''''&lt;br /&gt;
**Only applies to goal changes. Specifies if events posted to this goal should trigger offer partner payouts if applicable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== '''Example Request''' ==&lt;br /&gt;
&lt;br /&gt;
'''POST'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
http://domain/api/offer/add_commission_change&lt;br /&gt;
loginid=2&lt;br /&gt;
offerid=2&lt;br /&gt;
type=standard&lt;br /&gt;
countries[0] = GB&lt;br /&gt;
countries[1] = DE&lt;br /&gt;
flat_amount_per_conversion=15&lt;br /&gt;
flat_amount_per_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;: 'changes_saved',&lt;br /&gt;
    &amp;quot;changeid&amp;quot;: 59&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/add_commission_change';&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; 2,&lt;br /&gt;
    'loginid' =&amp;gt; 2,&lt;br /&gt;
    'type' =&amp;gt; 'standard',&lt;br /&gt;
    'countries' =&amp;gt; Array('GB,DE'),&lt;br /&gt;
    'flat_amount_per_conversion' =&amp;gt; 15,&lt;br /&gt;
    'flat_amount_per_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;POST&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;
&lt;br /&gt;
[[Category:Offerit API Articles]]&lt;/div&gt;</summary>
		<author><name>Offeritnick</name></author>	</entry>

	</feed>