Receive a notice from Stripe
POST
/api/stripe/webhook
const url = 'https://forge.example.com/api/stripe/webhook';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/stripe/webhookFor Stripe’s servers only. The body must carry Stripe’s signature for this instance’s webhook secret; anything else answers 400. Each notice is applied once, whatever the number of deliveries. 404 while card payment is not set up on the instance.
Responses
Section titled “Responses”The notice was applied, or had been applied before.
default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}