The orders API allows you to view individual or a batch of products.
This method can be used to create new orders in WooCommerce
OrderWC orderWC, // Create an instance of OrderWC and set all the parameters in the object
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
OrderWC orderWC = OrderWC();
orderWC.setPaid = true;
orderWC.lineItems = [];
...
Order order = await WooSignal.instance.createOrder(orderWC);
Order instance
Represents the following object - WooCommerce order created
Returns orders back from WooCommerce, include parameters to query data.
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
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
List<Order> orders = await WooSignal.instance.getOrders();
List<Order> instance
Represents the following object - WooCommerce list all orders
int id,
String dp, // (Optional) Number of decimal points to use in each resource.
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
Order order = await WooSignal.instance.retrieveOrder(id: "order id");
Order instance
Represents the following object - WooCommerce retrieve order
This API helps you delete an order.
int id,
bool force = true
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
Order order = await WooSignal.instance.deleteOrder("order id");
Order instance
Represents the following object - WooCommerce orders
This API helps you to batch create, update and delete multiple orders.
int id,
bool force = true
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
OrderBatch orderBatch = await WooSignal.instance.batchOrders({});
OrderBatch instance
Represents the following object - WooCommerce order batch