<?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_Approve_Pending_Transaction</id>
		<title>Offerit REST API Approve Pending Transaction - 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_Approve_Pending_Transaction"/>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Approve_Pending_Transaction&amp;action=history"/>
		<updated>2026-05-02T11:38:10Z</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_Approve_Pending_Transaction&amp;diff=3922&amp;oldid=prev</id>
		<title>Offeritnick at 16:33, 31 August 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Approve_Pending_Transaction&amp;diff=3922&amp;oldid=prev"/>
				<updated>2018-08-31T16:33: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 16:33, 31 August 2018&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-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&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;}}&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;}}&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;== '''POST transaction/approve_pending_transaction''' ==&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;== '''POST transaction/approve_pending_transaction''' ==&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;* COMING SOON *&amp;lt;/font&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;'''Description''' &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;'''Description''' &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_Approve_Pending_Transaction&amp;diff=3920&amp;oldid=prev</id>
		<title>Offeritnick: Created page with &quot;{{Offerit Manual | show_rest_api_section = true }} == '''POST transaction/approve_pending_transaction''' == &lt;font color=&quot;red&quot;&gt;* COMING SOON *&lt;/font&gt;  '''Description'''  *This...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Approve_Pending_Transaction&amp;diff=3920&amp;oldid=prev"/>
				<updated>2018-08-28T22:43:23Z</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 transaction/approve_pending_transaction&amp;#039;&amp;#039;&amp;#039; == &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;* COMING SOON *&amp;lt;/font&amp;gt;  &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;  *This...&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 transaction/approve_pending_transaction''' ==&lt;br /&gt;
&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;* COMING SOON *&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Description''' &lt;br /&gt;
*This REST API resource is used to approve a pending transaction&lt;br /&gt;
&lt;br /&gt;
'''Resource URL'''&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;http://domain/api/transaction/approve_pending_transaction&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*Replace domain with your Offerit network domain&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;
'''Response Format'''&lt;br /&gt;
*JSON&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;
Must pass at least one of the following:&lt;br /&gt;
&lt;br /&gt;
*'''transaction_hash''': ''The click_hash/transaction_hash of the pending transaction you want to approve.''&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''''optional'''''&lt;br /&gt;
&lt;br /&gt;
*'''orderid''': ''The transaction identifier you want to approve. (sent on the pending conversion as orderid)''&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''''optional'''''&lt;br /&gt;
&lt;br /&gt;
*'''transactionid''': ''The Offerit generated transaction identifier you want to approve''&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''''optional'''''&lt;br /&gt;
&lt;br /&gt;
== '''Example Request''' ==&lt;br /&gt;
&lt;br /&gt;
'''POST'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://domain.com/api/transaction/approve_pending_transaction&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Response: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Success&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;Transaction approved successfully.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Failure&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;result&amp;quot;: &amp;quot;error&amp;quot;,&lt;br /&gt;
   &amp;quot;message&amp;quot;: &amp;quot;Invalid transaction.&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;
$curl = curl_init();&lt;br /&gt;
&lt;br /&gt;
$data = array(&lt;br /&gt;
    'transaction_hash' =&amp;gt; '156097c947ece92.38318951',&lt;br /&gt;
);&lt;br /&gt;
$url = 'http://domain/api/transaction/approve_pending_transaction';&lt;br /&gt;
$headers = array(&lt;br /&gt;
    'api-key: 44b5498dbcb481a0d00b404c0169af62',&lt;br /&gt;
    'api-username: productsupport'&lt;br /&gt;
);&lt;br /&gt;
curl_setopt($curl, CURLOPT_POST, 1);&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_POSTFIELDS, http_build_query($data));&lt;br /&gt;
curl_setopt($curl, CURLOPT_URL, $url);&lt;br /&gt;
&lt;br /&gt;
$resp = curl_exec($curl);&lt;br /&gt;
//dumps an associative array representation of the json response&lt;br /&gt;
$output = json_decode($resp, true);&lt;br /&gt;
if($output !== NULL) {&lt;br /&gt;
	//json was valid. Dump the decoded array&lt;br /&gt;
	print_r($output);&lt;br /&gt;
}&lt;br /&gt;
else {&lt;br /&gt;
	//invalid json, just dump the raw response&lt;br /&gt;
	print_r($resp);&lt;br /&gt;
}&lt;br /&gt;
// Close request to clear up some resources&lt;br /&gt;
curl_close($curl);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&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>