Order notes


Overview

The order notes API allows you to create, view, and delete individual order notes. Order notes are added by administrators and programmatically to store data about an order, or order events.


Create a order note

This API helps you to create a new note for an order.

createOrderNote({})

Parameters

required int id,
Map<String, dynamic> data,

API Call

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
OrderNote orderNote = await WooSignal.instance.createOrderNote(id: "order id", data: {});

Response

OrderNote instance

Represents the following object - WooCommerce create an order note


Retrieve an order note

This API lets you retrieve and view a specific note from an order.

retrieveOrderNote({})

Parameters

required int orderId,
required int noteId

API Call

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
OrderNote orderNote = await WooSignal.instance.retrieveOrderNote(orderId: "order id", noteId: "note id");

Response

OrderNote instance

Represents the following object - WooCommerce retrieve an order note


List all order notes

This API helps you to view all the notes from an order.

getOrderNotes(id: "order id")

Parameters

required int orderId,
String context,
String type

API Call

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
List<OrderNote> orderNotes = await WooSignal.instance.getOrderNotes(id: "order id");

Response

List<OrderNote> instance

Represents the following object - WooCommerce list all order notes


Delete an order note

This API helps you delete an order note.

deleteOrderNote({})

Parameters

int orderId,
int noteId

API Call

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
OrderNote orderNote = await WooSignal.instance.deleteOrderNote(int orderId, int noteId);

Response

OrderNote instance

Represents the following object - WooCommerce delete an order note