Handle returns, refunds, and exchanges. Use when running `stateset-returns`, `stateset-direct returns`, creating return flows, or processing RMA requests.
Process returns from request through approval and refund or exchange.
order_id and validate return eligibility.stateset-returns ... or stateset-direct returns <action>--apply.list_returns, get_return, create_return, approve_return, reject_return, receive_return.list_returns, get_return — no needed.--applycreate_return, approve_return, reject_return, receive_return — requires --apply.stateset returns list --status requested --limit 10
stateset returns create --order-id ord_456 --reason defective --items sku_001 --apply
stateset returns approve rma_123 --apply
stateset returns receive rma_123 --condition good --restock --apply
Return: Requested -> Approved -> Received -> Refunded/Exchanged (or Rejected)
{"status":"approved","return_id":"rma_123","order_id":"ord_456","refund_amount":79.99,"reason":"defective"}
order_id.RETURN_NOT_ELIGIBLE: Order is outside the return policy window or ineligible.DUPLICATE_RETURN: An open return already exists for this order.EXCHANGE_UNAVAILABLE: Replacement SKU is out of stock.