Orders


Overview

The orders API allows you to view individual or a batch of products.


List all orders

Returns orders back from WooCommerce, include parementers to query data.

getOrders()

Parameters

int page,
int perPage,
String search,
String after,
String before,
List<int> exclude,
List<int> include,
int offset,
String order,
String orderBy,
List<int> parent,
List<int> parentExclude,
List<String> status,    // Options: any, pending, processing, on-hold, completed, cancelled, refunded, failed and trash. Default is any.
int customer,
int product,
int dp

API Call

WooSignal wooSignal = new WooSignal();
wooSignal.setAppKey("your app key"); // Add your API key

wooSignal.getOrders().then((orders){
    wooSignal.printLog(orders.toString());
});

Response

List<Order> instance

Represents the following object - WooCommerce list all orders

Retrieve a order by it's ID

getOrders()

Parameters

int id,

String dp, // (Optional) Number of decimal points to use in each resource.

API Call

WooSignal wooSignal = new WooSignal();
wooSignal.setAppKey(""); // Add your API key

wooSignal.retrieveOrder(id: "order id").then((order){
    wooSignal.printLog(order.toString());
});

Response

Order instance

Represents the following object - WooCommerce retrieve order