The refunds API allows you to create, view, and delete individual refunds.
This API helps you to create a new refund for an order.
required String amount,
required int orderId,
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
Refund refund = await WooSignal.instance.createRefund({String amount, int orderId});
Refund instance
Represents the following object - WooCommerce create a refund
This API lets you retrieve and view a specific refund from an order.
required int orderId,
required int refundId,
String dp,
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
Refund refund = await WooSignal.instance.retrieveRefund(orderId: "order Id", refundId: "refund Id");
Refund instance
Represents the following object - WooCommerce retrieve a refund
This API helps you to view all the refunds from an order.
String context,
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,
int dp
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
List<Refund> refunds = await WooSignal.instance.getRefunds(id: "order id");
List<Refund> instance
Represents the following object - WooCommerce list all refunds
This API helps you delete an order refund.
int orderId,
int refundId
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
Refund refunds = await WooSignal.instance.deleteRefund(int orderId, int refundId);
Refund instance
Represents the following object - WooCommerce delete a refund