reference with 409. Refunds use the original transaction id and replay the existing refund.
Payouts — reference
reference → 409 (not a replay). Look up with GET /payouts/{reference}. Use a stable id per operation (wd-<order>). A new reference is a new payout.
Payments work the same way (GET /payments/{reference}).

