Title: Webhook Stripe error
Last modified: September 25, 2023

---

# Webhook Stripe error

 *  Resolved [ptahaua](https://wordpress.org/support/users/ptahaua/)
 * (@ptahaua)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/webhook-stripe-error-2/)
 * How can I fix this? I got a message from Stripe:
   We’re still having trouble sending
   requests in test mode to a webhook endpoint associated with your account. Stripe
   sends **[webhook events](https://58.email.stripe.com/CL0/https:%2F%2Fstripe.com%2Fdocs%2Fwebhooks/1/0100018a9308639c-271b7ede-20e4-4ec2-8cf4-e3792376d8b9-000000/XKuTht7eyECknWq58lQNA5d9YbyeLcmCu8Uj45YAXLY=318)**
   to your server to notify you of activity in your Stripe account, such as a completed
   payout or a newly-created invoice.
 *  The URL of the failing webhook endpoint is: **[https://{site-ur}/wp-json/wc-stripe/v1/webhook](https://{site-url}/wp-json/wc-stripe/v1/webhook)**
 *  You (or someone on your team) configured your Stripe account to send events 
   to that URL. You can change your account’s webhook endpoints from the Dashboard.
   
   In most cases, a failing webhook does not impact your payments or payouts. However:
   If you use subscriptions **[we rely on your webhook endpoint](https://58.email.stripe.com/CL0/https:%2F%2Fstripe.com%2Fdocs%2Fbilling%2Fsubscriptions%2Fwebhooks%23understand/1/0100018a9308639c-271b7ede-20e4-4ec2-8cf4-e3792376d8b9-000000/gm0Ws0lb0izGHzvAqCgHM5A7mhuSQwUUo8sSDcmd7VM=318)**
   to notify you of new invoices. These invoices may be delayed for up to three 
   days if your endpoint is unable to successfully receive them.
 *     If you use Checkout and rely on the _checkout.session.completed_ event as
   part of your **[purchase fulfillment process](https://58.email.stripe.com/CL0/https:%2F%2Fstripe.com%2Fdocs%2Fpayments%2Fcheckout%2Ffulfillment%23webhooks/1/0100018a9308639c-271b7ede-20e4-4ec2-8cf4-e3792376d8b9-000000/l3cgJqqtiFqvFHG6s8Vlw0XLJq3Ln515FAfyEXUFwKg=318)**,
   you should review your completed payments to ensure you have fulfilled all recent
   purchases.

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

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/webhook-stripe-error-2/#post-17077476)
 * Hi [@ptahaua](https://wordpress.org/support/users/ptahaua/)
 * If your webhook is failing you should:
    1. Login to stripe.com > developers > webhooks.
    2. Click on the failing webhook and review the responses as they will have an error
       message describing the issue.
 * What do the error messages say for the failed webhook requests? Your webhook 
   secret is either incorrect or you have a 3rd party plugin installed that’s blocking
   access to the WordPress REST API.
 * Kind Regards
 *  Thread Starter [ptahaua](https://wordpress.org/support/users/ptahaua/)
 * (@ptahaua)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/webhook-stripe-error-2/#post-17080221)
 * > [View post on imgur.com](https://imgur.com/a/cRFFNsG)
 * 
   {
 * “code”: “rest_cannot_access”,
 * “message”: “Only authenticated users can access the REST API.”,
 * “data”: {
 * “status”: 401
 * }
 * }
 * > [View post on imgur.com](https://imgur.com/a/aE3U9oV)
    -  This reply was modified 2 years, 8 months ago by [ptahaua](https://wordpress.org/support/users/ptahaua/).
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/webhook-stripe-error-2/#post-17080722)
 * Hi [@ptahaua](https://wordpress.org/support/users/ptahaua/)
 * The error message is showing you have some plugin that’s blocking access to the
   WordPress REST API. You will need to find which plugin that is and make sure 
   the Stripe plugin’s rest path `/wc-stripe/v1` is added to the exclusion list.
 * Kind Regards
 *  Thread Starter [ptahaua](https://wordpress.org/support/users/ptahaua/)
 * (@ptahaua)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/webhook-stripe-error-2/#post-17082402)
 * Yeah, that was the problem. Thanks for your help!

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

The topic ‘Webhook Stripe error’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [ptahaua](https://wordpress.org/support/users/ptahaua/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/webhook-stripe-error-2/#post-17082402)
 * Status: resolved