Webhooks
Create a webhook endpoint
Changed onRegister a URL to receive event deliveries. The response includes the signing secret; store it, it is the only time the create call returns it.
post/v1/webhooks
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"url": "https://example.com/webhooks/creem",
"name": "Production billing events",
"events": [
"checkout.completed",
"subscription.paid"
]
}Response
Successfully created the webhook endpoint
Example response
{
"object": "webhook",
"store_id": "sto_1234567890",
"name": "Production billing events",
"url": "https://example.com/webhooks/creem",
"events": [
"checkout.completed",
"subscription.paid"
],
"secret": "whsec_xxxxxxxxxxxxxxxxxxxx"
}Changes
- info
added the new optional request property
- info
the request property
became optional - info
added the required property
to the response with the status
- info
- info
endpoint added
- info