To retrieve individual customer details append the ID of the customer to the GET REST url e.g /api/customer/346
To update individual customer details append the ID of the customer to the POST REST url
<?xml version==1.0" encoding="UTF-8"?>
<customers>
<total>1</total>
<customer>
<id>346</id>
<reference>DEMO</reference>
<start_date>2010-02-03 01:41:17</start_date>
<firstname>Test</firstname>
<lastname>Demo</lastname>
<address>PO Box 1</address>
<state>Qld</state>
<zip>4000</zip>
<mobile>6111111111</mobile>
<home></home>
<email>info@sueldo.me</email>
<active>1</active>
<username></username>
<password></password>
<customer>;
</customers>HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
<?xml version="1.0" encoding="UTF-8"?>
<customers>
<total>1</total>
<customer>
<id>346</id>
<reference>DEMO</reference>
<start_date>2010-02-03 01:41:17</start_date>
<firstname>Test</firstname>
<lastname>Demo</lastname>
<address>PO Box 1</address>
<state>Qld</state>
<zip>4000</zip>
<mobile>6111111111</mobile>
<home></home>
<email>info@sueldo.me</email>
<active>1</active>
</customer>
</customers><?xml version="1.0" encoding="UTF-8"?>
<entries>
<name>Mr Customer</name>
<number>611111111</number>
<entry>
<type>outgoing</type>
<hit>2010-06-25 10:03:27</hit>
<message>The Password you entered is<br> incorrect</message>
</entry>
<entry>
<type>outgoing</type>
<hit>2010-06-25 10:01:33</hit>
<message>The item you have requested is valid</message>
</entry>
<entry>
<type>incoming</type>
<hit>2010-06-25 10:01:33</hit>
<message>HEIN</message>
</entry>
<entry>
<type>outgoing</type>
<hit>2010-05-25 11:32:55</hit>
<message>Your receipt code is 014511349913.</message>
</entry>
<entry>
<type>payment</type>
<hit>2010-05-25 11:32:55</hit>
<message>Transaction Successful</message>
</entry>
</entries>HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
<?xml version="1.0" encoding="UTF-8"?>
<products>
<total>1</total>
<product>
<id>1</id>
<code>VEGE</code>
<topup>0</topup>
<unit_cost>10.99</unit_cost>
<description>Hot Pizza</description>
<message>[CODE] for [DESCRIPTION]</message>
</product>
</products>HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
<?xml version='1.0' encoding='UTF-8'?>
<invoices>
<total>1</total><invoice>
<lastname>xxxx</lastname>
<firstname>yyy</firstname>
<reference>ref</reference>
<id>1</id>
<code>INV1</code>
<customer>1</customer>
<unit_cost>43.00</unit_cost>
<description>Consultancy Work (12hrs)</description>
<message>Please pay [COST] for [Description]</message>
<due_date>2010-08-01</due_date>
<paid>1</paid>
<paid_date>2010-07-14</paid_date>
</invoice>
</invoices><invoice>
<id>19</id>
<code_type>invoice</code_type>
<msisdn>61418754101</msisdn>
<customer>1</customer>
<description>Shopping Cart</description>
<unit_cost>10.00</unit_cost>
<active>1</active>
<message>Text [CODE] to pay [DESCRIPTION]</message>
<due_date>2010-11-01</due_date>
<sent_date></sent_date>
<paid_date>2010-10-04</paid_date>
<paid>1</paid>
</invoice>HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
HTTP Codes: - 200 OK
- 500 Server problem
- 406 missing arguments
<?xml version='1.0' encoding='UTF-8'?>
<sent_sms>
<sms>
<id>43</id>
<client>1</client>
<message>API test</message>
<from>614XX194147</from>
<to>614XX194147</to>
<entered_date>2010-08-06 19:29:43</entered_date>
<gateway_message_id>6101102920469278</gateway_message_id>
<last_update_date></last_update_date>
<status></status>
<error_code></error_code>
<sent>1</sent>
</sms>
</sent_sms>HTTP Codes: - 200 OK
- 418 Billing
- 500 Server problem
Use this method to process a single transaction
<response>
<error>0</error>
<text>Transaction Successful</text>
<receipt>101111564011</receipt>
<error_msg>Approved</error_msg>
</response>
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_exec($ch);
Set objWinHttpToken = Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttpToken.SetTimeouts 0, 60000, 60000, 60000
objWinHttpToken.Open method, url, False
objWinHttpToken.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objWinHttpToken.Send sendData