capabilities.work

Customer Order Refund Lifecycle

A 4-step recipe with WooCommerce. We can help you get access.

Recipe · 4 steps

Customer Order Refund Lifecycle

with WooCommerce · Customer Data Management

Create customer, place order, complete it, and refund it.

  1. Create the customer account that the order will be placed against.
  2. Place an order for the customer with a single product line item.
  3. Transition the order to completed so it becomes eligible for a refund.
  4. Issue a refund against the completed order for the supplied amount.
What you'll need to have ready
  • email: Email address for the new customer account.
  • firstName: Customer first name.
  • lastName: Customer last name.
  • 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 reason for the refund.
For your developer

Arazzo workflow woocommerce:customer-order-refund-lifecycle, 4 operations: createCustomer → createOrder → updateOrder → createOrderRefund. Specs on APIs.io.