Why did I get API error code 10620?

Issue
PayPal returned API error code 10620 - Order has already been voided, expired, or completed.

Cause
The order has already been voided, expired, or completed. The DoAuthorization, DoCapture, and DoVoid API calls can produce this error.

Solution
Don't retry the same API call against the same transaction after receiving a 10618 error code, because the result won't change.

Note: You can use the GetTransactionDetails API to determine the current payment status of an order. For example, if GetTransactionDetails returns a payment status of "Voided," then you don't need to use DoVoid because the order is already void.