Difference between revisions of "Offerit API Deny Transaction"
From Offerit
OfferitJames (talk | contribs) |
|||
Line 6: | Line 6: | ||
* '''orderid''' - Your order ID of the sale | * '''orderid''' - Your order ID of the sale | ||
* '''customerid''' - The customer ID of the sale | * '''customerid''' - The customer ID of the sale | ||
+ | |||
+ | == NuSOAP Example == | ||
+ | |||
+ | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]): | ||
+ | |||
+ | <pre> | ||
+ | $values = Array( | ||
+ | 'transid' => 265, | ||
+ | 'customerid' => 130 | ||
+ | ); | ||
+ | |||
+ | $result = $client->call('approve_transaction', $values, 'offeritapiadmin_wsdl'); | ||
+ | </pre> | ||
+ | |||
+ | === Sample Output === | ||
+ | <pre> | ||
+ | on success: | ||
+ | SUCCESS | ||
+ | |||
+ | on error: | ||
+ | ERROR: error message | ||
+ | </pre> | ||
+ | |||
+ | ==Server Request== | ||
<pre> | <pre> | ||
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
Line 17: | Line 41: | ||
</pre> | </pre> | ||
+ | ==Server Response== | ||
You will get a response similar to the following: | You will get a response similar to the following: | ||
Line 26: | Line 51: | ||
<return xsi:type="xsd:string">ERROR - Unable to Deny Transaction Type</return> | <return xsi:type="xsd:string">ERROR - Unable to Deny Transaction Type</return> | ||
</ns1:deny_transactionResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> | </ns1:deny_transactionResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
[[Category:Offerit API Articles]] | [[Category:Offerit API Articles]] |
Revision as of 13:26, 9 December 2011
This function allows you to deny a specific transaction for a customer. To use this function, you must make a SOAP call with the following parameters:
- orderid - Your order ID of the sale
- customerid - The customer ID of the sale
NuSOAP Example
This example continues from the main article NuSOAP Example):
$values = Array( 'transid' => 265, 'customerid' => 130 ); $result = $client->call('approve_transaction', $values, 'offeritapiadmin_wsdl');
Sample Output
on success: SUCCESS on error: ERROR: error message
Server Request
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:offeritapiadmin_wsdl"><SOAP-ENV:Body><tns:deny_transaction xmlns:tns="urn:offeritapiadmin_wsdl"> <transid xsi:type="xsd:int">265</transid> <customerid xsi:type="xsd:int">130</customerid> </tns:deny_transaction></SOAP-ENV:Body></SOAP-ENV:Envelope>
Server Response
You will get a response similar to the following:
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body><ns1:deny_transactionResponse xmlns:ns1="urn:offeritapiadmin_wsdl"> <return xsi:type="xsd:string">ERROR - Unable to Deny Transaction Type</return> </ns1:deny_transactionResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>