api 405 error

i am trying to get a post response to my application from stripe cli. but i get this message. anyone knows what is going on?
PS D:\My Files\Workspace\my_projects\inventorymanagement> stripe listen --forward-to http://inventorymanagement.test/api/stripe/webhook --headers "Accept: application/json"
> Ready! You are using Stripe API Version [2024-10-28.acacia]. Your webhook signing secret is
2025-08-05 11:46:46 --> charge.succeeded [evt_3RshSDLekfvdfPo12NIU3IZ9]
2025-08-05 11:46:46 --> payment_intent.succeeded [evt_3RshSDLekfvdfPo12F9L1eHu]
2025-08-05 11:46:46 --> payment_intent.created [evt_3RshSDLekfvdfPo12TpnwEyp]
2025-08-05 11:46:46 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12NIU3IZ9]
2025-08-05 11:46:46 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12F9L1eHu]
2025-08-05 11:46:47 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12TpnwEyp]
2025-08-05 11:46:49 --> charge.updated [evt_3RshSDLekfvdfPo12A7F6sT7]
2025-08-05 11:46:49 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12A7F6sT7]
2025-08-05 11:52:59 --> payment_intent.created [evt_3RshYELekfvdfPo10C0hhXXb]
2025-08-05 11:53:00 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo10C0hhXXb]
2025-08-05 11:53:03 --> payment_intent.requires_action [evt_3RshYELekfvdfPo10s77MoU1]
2025-08-05 11:53:03 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo10s77MoU1]
2025-08-05 11:53:08 --> payment_intent.succeeded [evt_3RshYELekfvdfPo10OuKmkqv]
2025-08-05 11:53:09 --> charge.succeeded [evt_3RshYELekfvdfPo109Ygl63F]
2025-08-05 11:53:09 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo10OuKmkqv]
2025-08-05 11:53:09 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo109Ygl63F]
PS D:\My Files\Workspace\my_projects\inventorymanagement> stripe listen --forward-to http://inventorymanagement.test/api/stripe/webhook --headers "Accept: application/json"
> Ready! You are using Stripe API Version [2024-10-28.acacia]. Your webhook signing secret is
2025-08-05 11:46:46 --> charge.succeeded [evt_3RshSDLekfvdfPo12NIU3IZ9]
2025-08-05 11:46:46 --> payment_intent.succeeded [evt_3RshSDLekfvdfPo12F9L1eHu]
2025-08-05 11:46:46 --> payment_intent.created [evt_3RshSDLekfvdfPo12TpnwEyp]
2025-08-05 11:46:46 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12NIU3IZ9]
2025-08-05 11:46:46 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12F9L1eHu]
2025-08-05 11:46:47 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12TpnwEyp]
2025-08-05 11:46:49 --> charge.updated [evt_3RshSDLekfvdfPo12A7F6sT7]
2025-08-05 11:46:49 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshSDLekfvdfPo12A7F6sT7]
2025-08-05 11:52:59 --> payment_intent.created [evt_3RshYELekfvdfPo10C0hhXXb]
2025-08-05 11:53:00 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo10C0hhXXb]
2025-08-05 11:53:03 --> payment_intent.requires_action [evt_3RshYELekfvdfPo10s77MoU1]
2025-08-05 11:53:03 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo10s77MoU1]
2025-08-05 11:53:08 --> payment_intent.succeeded [evt_3RshYELekfvdfPo10OuKmkqv]
2025-08-05 11:53:09 --> charge.succeeded [evt_3RshYELekfvdfPo109Ygl63F]
2025-08-05 11:53:09 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo10OuKmkqv]
2025-08-05 11:53:09 <-- [405] POST http://inventorymanagement.test/api/stripe/webhook [evt_3RshYELekfvdfPo109Ygl63F]
6 Replies
LeandroFerreira
LeandroFerreira3mo ago
are you sure you have this route api/stripe/webhook in routes/api.php?
toeknee
toeknee3mo ago
405 mean it does exist but the payload is incorrect, I suspect your forwarding is dropping the webhook secret
raheel3031
raheel3031OP3mo ago
Yes it is. How do I enable api routes? What makes you say the payload is incorrect?
toeknee
toeknee3mo ago
It's a standard response for missing a signature or secret for Stripe. You can run php artisan route:list to see the API routes, but if it didn't exist you would be triggering a 404. Check your strip webhook end point code, and see where you are testing for the webhook secret. If you say so 👍
LeandroFerreira
LeandroFerreira3mo ago
did you enable it using php artisan install:api ? Maybe you could try the route in postman or something like that
raheel3031
raheel3031OP3mo ago
It's working now. I didn't install the api routes

Did you find this page helpful?