curl --request POST \
--url https://public-api.stora.co/2025-09/webhook_endpoints/{webhook_endpoint_id}/enable \
--header 'Authorization: Bearer <token>'{
"endpoint": {
"id": "we_195h6kfm9ro15lof",
"api_version": "2025-09",
"created_at": "2025-02-22T14:41:00Z",
"creator": {
"id": "staff_06778802edebb94d"
},
"description": "Test webhook endpoint",
"disabled_at": null,
"event_types": [
"credit_note.created"
],
"metadata": {},
"name": "My Webhook",
"secret": null,
"status": "enabled",
"updated_at": "2025-02-22T14:41:00Z",
"url": "https://example.com/webhook"
},
"meta": {
"request_id": "01563646-58c1-4607-8fe0-cae3e92c4477",
"curies": [
{
"name": "bo",
"href": "https://app.stora.test{rel}",
"templated": true,
"title": "Backoffice"
},
{
"name": "sf",
"href": "https://acme.stora.test{rel}",
"templated": true,
"title": "Storefront"
}
]
}
}Enable a webhook endpoint.
Required authorization scope: public.webhook_endpoint:write
curl --request POST \
--url https://public-api.stora.co/2025-09/webhook_endpoints/{webhook_endpoint_id}/enable \
--header 'Authorization: Bearer <token>'{
"endpoint": {
"id": "we_195h6kfm9ro15lof",
"api_version": "2025-09",
"created_at": "2025-02-22T14:41:00Z",
"creator": {
"id": "staff_06778802edebb94d"
},
"description": "Test webhook endpoint",
"disabled_at": null,
"event_types": [
"credit_note.created"
],
"metadata": {},
"name": "My Webhook",
"secret": null,
"status": "enabled",
"updated_at": "2025-02-22T14:41:00Z",
"url": "https://example.com/webhook"
},
"meta": {
"request_id": "01563646-58c1-4607-8fe0-cae3e92c4477",
"curies": [
{
"name": "bo",
"href": "https://app.stora.test{rel}",
"templated": true,
"title": "Backoffice"
},
{
"name": "sf",
"href": "https://acme.stora.test{rel}",
"templated": true,
"title": "Storefront"
}
]
}
}Bearer Token necessary to use API
The ID of the webhook endpoint to enable
Was this page helpful?