Get Orders

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] =>
                                                )

                                        )

                                )

                        )

                )

        )

)
  • 1 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

Get Products

getproducts Purpose This command can be used to retrieve product and domain details....

Cancel Order

cancelorder Purpose This command is used to cancel a pending order in the system. Attributes...

Get TLDs

gettlds Purpose This command can be used to retrieve available TLDs and prices. Optional...

Add Order

addorder Purpose This command is used to add a new order to the system. Attributes clientid...