getorders
Purpose
This command is used to generate a list of orders
Attributes
Optional Attributes
- id - to get a specific order ID only
- status - to get all orders in a specific status: Pending, Active, Fraud, Cancelled
- limitstart - The record number to start at (default = 0)
- limitnum - The number of order records to return (default = 25)
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "getorders"; $result = mikrovps_SendCommand( $postfields );
Successful Response
Array ( [result] => success [totalresults] => 1 [startnumber] => 0 [numreturned] => 1 [orders] => Array ( [order] => Array ( [0] => Array ( [id] => 1 [ordernum] => 11111 [userid] => 1 [contactid] => 0 [date] => 2015-06-03 23:55:02 [nameservers] => [transfersecret] => [renewals] => [promocode] => [promotype] => [promovalue] => [orderdata] => a:0:{} [amount] => 2540.00 [paymentmethod] => paypal [invoiceid] => 0 [status] => Active [ipaddress] => 10.10.10.10 [fraudmodule] => [fraudoutput] => [notes] => [paymentmethodname] => PayPal [paymentstatus] => [name] => Demo User [currencyprefix] => [currencysuffix] => Ft [frauddata] => [lineitems] => Array ( [lineitem] => Array ( [0] => Array ( [type] => domain [relid] => 435 [producttype] => Domain [product] => Register [domain] => domain.tld [billingcycle] => 1 [amount] => 2,000 Ft [status] => Active [dnsmanagement] => [emailforwarding] => [idprotection] => ) ) ) ) ) ) )