422
fees.refund_context_requiredfeesRule R5Pricing a refund needs refund_of
A refund's fee depends on the payment it reverses, so Compute for event refund requires refund_of.
Why the API refuses
IF Compute is executed for event refund without refund_of, THEN THE SYSTEM SHALL reject the query.
What to do
Pass the id of the payment being refunded.