Create Order and Refund
A 3-step recipe with WooCommerce. We can help you get access.
Recipe · 3 steps
Create Order and Refund
with WooCommerce
Create an order, complete it, and issue a refund against it.
- Create an order with a single product line item.
- Update the order status to completed so it becomes eligible for a refund.
- Create a refund against the completed order for the supplied amount and reason.
What you'll need to have ready
- productId: ID of the product to add as a line item on the order.
- quantity: Quantity of the product to order.
- refundAmount: Amount to refund as a decimal string.
- refundReason: Optional human-readable reason for the refund.
For your developer
Arazzo workflow woocommerce:create-order-and-refund, 3 operations: createOrder → updateOrder → createOrderRefund. Specs on APIs.io.