Good day @Temp20221122C, Thank you for your post and welcome to the Community Forum. The examples mentioned here https://developer.paypal.com/docs/api-basics/sandbox/error-conditions/ are for NVP API integration. Test API error handling routines : https://developer.paypal.com/tools/sandbox/error-conditions/#link-testapierrorhandlingroutines. For REST APIs, please refer https://developer.paypal.com/docs/api-basics/sandbox/nt-rest/. To enable negative testing - https://developer.paypal.com/tools/sandbox/error-conditions/#link-enablenegativetesting We only have negative testing available for the following APIs: You can use request headers to test the following Payments API and Orders API methods: Payments API v1 Create payment Execute approved PayPal payment Payments API v2 Show details for authorized payment Capture authorized payment Void authorized payment Show captured payment details Refund captured payment Show refund details Orders API v2 Create order Update order Show order details Authorize payment for order Capture payment for order https://developer.paypal.com/tools/sandbox/negative-testing/request-headers/ Sincerely, Chiranjeevi PayPal/Braintree MTS If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
... View more