I am getting an UNPROCESSABLE_ENTITY but the error is to generic to figure out what to do. This exact code works perfectly in a sandbox. But it makes sense business validation might fail on live. Any insight into how to debug what the issue is?
( [name] => UNPROCESSABLE_ENTITY [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => xxxxxxxxxxxx [details] => Array ( [0] => stdClass Object ( [field] => invoiceId [value] => INV2-XXXX-XXXX-XXXX-XXXX [location] => path [issue] => REQUEST_REJECTED [description] => Could not process the request. Please contact customer service team for any queries. ) ) [links] => Array ( [0] => stdClass Object ( [href] => https://developer.paypal.com/docs/api/invoicing/#errors [method] => GET ) ))