Title: API Authorization check failed.
Last modified: April 3, 2021

---

# API Authorization check failed.

 *  Resolved [alpual](https://wordpress.org/support/users/alpual/)
 * (@alpual)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/api-authorization-check-failed/)
 * Hi,
    I am seeing the following error error after migrating to production from
   sandbox URLs (and after launching the site from a dev to production URL). `There
   was an error processing your payment. Reason: API Authorization check failed.
   Ensure you have entered your API keys correctly and the user associated with 
   your API keys has the proper permissions.` The plugin says my API keys are good
   when I use the “Production Connection Test” button on the admin page for the 
   BrainTree plugin. When I was testing with sandbox API keys, the plugin seemed
   to work and accept the payment info. I get the same error when testing with a
   credit card or PayPal payment. Any help/advice would be appreciated.
    -  This topic was modified 5 years, 1 month ago by [alpual](https://wordpress.org/support/users/alpual/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/api-authorization-check-failed/#post-14273532)
 * Hi [@alpual](https://wordpress.org/support/users/alpual/),
 * Make sure the user associated with your API keys has all of the required permissions.
 * Sometimes the user associated with the API keys does not have access to make 
   all the API calls.
 * Also make sure the user has access to all
    of the merchant accounts associated
   with your Braintree gateway.
 * Kind regards
 *  Thread Starter [alpual](https://wordpress.org/support/users/alpual/)
 * (@alpual)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/api-authorization-check-failed/#post-14273547)
 * Thanks for the quick reply!
 * This actually helped me figure it out. For others with this problem, my issues
   was that I the user had admin access, including API access, but did not have 
   access to the merchant account. To give the user that access, I had to go to 
   Team > Users, then scroll to “Merchant Accounts,” and check the box to enable
   access to Merchant Accounts.
 * Thanks [@mrclayton](https://wordpress.org/support/users/mrclayton/)!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API Authorization check failed.’ is closed to new replies.

 * ![](https://ps.w.org/woo-payment-gateway/assets/icon-256x256.png?rev=2142799)
 * [Payment Plugins Braintree For WooCommerce](https://wordpress.org/plugins/woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [production](https://wordpress.org/support/topic-tag/production/)

 * 2 replies
 * 2 participants
 * Last reply from: [alpual](https://wordpress.org/support/users/alpual/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/api-authorization-check-failed/#post-14273547)
 * Status: resolved