#api 405 message

1 messages · Page 1 of 1 (latest)

arctic copper
#

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?

> 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]```
oak crag
#

It's making a POST request to your webhook, while the route either doesn't exist or it's only allowing a GET request

arctic copper
#

I have a post route defined in api.php

oak crag
#

Then maybe you have your routes cached? Which you shouldn't do locally

arctic copper
oak crag
#

And what does your route file look like? Do you have the API routes enabled? What does php artisan route:list --path=api/stripe output?

arctic copper
#

How do you enable the api routes? When i do a query of route:list then it the api routes are not listed.