bad_amount_minor_units
HTTP 400 · Items and purchases
What it means
amount_minor_units isn't a whole number from 1 to what's left of the sale to refund.
What to do
Give amount_minor_units as a whole number from 1 to what's left of the sale to refund, as get_purchase shows.
The error's own fix says what to do in that case, and comes first. Search the forum for others who hit it, or see every error.