Why did I get API error code 10007?
PayPal returned API error code 10007 - Permission denied - You don't have permission to make this API call.
Your attempt to refund a transaction failed for one of these reasons:
- You used the wrong transaction ID.
- You're trying to make the call for a third party and have the wrong email address in the subject.
- The subject account hasn't given you permission to make the third-party call.
Verify that your API call includes the correct transaction ID and correct email address, and that you have permission to make third-party calls for this account.
For help resolving this issue or others, visit PayPal's Contact Customer Service page.
NVP/SOAP API error codes