> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-management/payments/base44/webhooks/introduction.md

## Article Content:

# About the Webhooks API

The Webhooks API lets you retrieve the webhooks registered to notify a [Base44](https://base44.com) app about [Checkout Sessions](https://dev.wix.com/docs/api-reference/business-management/payments/checkout-sessions/introduction.md) events. It's part of the [Payments APIs for Base44](https://dev.wix.com/docs/api-reference/business-management/payments/base44/introduction.md). Each call applies to the app's [site](https://dev.wix.com/docs/api-reference/business-management/payments/base44/introduction.md#terminology), which holds the app's payments data.

With the Webhooks API, you can retrieve all the webhooks registered for a site, including the event type and the URL each one notifies.

## Registering webhooks

You don't create or delete webhooks with this API. Webhooks are registered with Checkout Sessions, which returns a public key for verifying the webhook payloads. Retrieve the registered webhooks with this API to check which event types are active and which URL receives each one.

A webhook can be registered for these event types:

- Order approved: `wix.ecom.v1.order_approved`. This is the default when you don't specify an event type.
- Subscription canceled: `wix.ecom.subscription_contracts.v1.subscription_contract_canceled`.
- Subscription ended: `wix.ecom.subscription_contracts.v1.subscription_contract_expired`.

The `id` of each webhook in the response is the slug of its event type.

## Before you begin

It's important to note the following points before starting to code:

- [List Webhooks](https://dev.wix.com/docs/api-reference/business-management/payments/base44/webhooks/list-webhooks.md) returns only webhooks that were registered through Checkout Sessions.
- If the site has no companion app yet, List Webhooks creates it before it returns the webhooks, so the call isn't strictly read-only.
- All webhooks are returned in a single response. Paging, filtering, and sorting aren't supported, and the order of the webhooks isn't guaranteed.

## Use cases

- [Check which events a site is subscribed to](https://dev.wix.com/docs/api-reference/business-management/payments/base44/webhooks/sample-flows.md#check-which-events-a-site-is-subscribed-to)

## Terminology

- **Webhook**: A registration that sends notifications about an event type to a URL.
- **Event type slug**: The identifier of an event type, such as `wix.ecom.v1.order_approved`. It's used as the webhook ID.

