Market Events
This section covers all webhook events related to markets, including market updates and deletions.
Event Types
The following market-related events are available:
market.update- Triggered when a market is created or modifiedmarket.deleted- Triggered when a market is deleted
Market Updated Event
The market.update event is triggered when a market is created or modified.
Event Structure
- JSON Example
{
"event_type": "market.update",
"payload": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "United States",
"slug": "us",
"country_code": "US",
"locale": "en-US",
"currency_code": "USD",
"active": true,
"updated_at": "2024-02-12T12:00:00Z",
"created_at": "2024-02-12T12:00:00Z"
}
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the market |
name | string | Display name of the market |
slug | string | URL-friendly identifier |
country_code | string | Two-letter ISO country code |
locale | string | Locale code (language-COUNTRY) |
currency_code | string | Three-letter ISO currency code |
active | boolean | Whether the market is active |
updated_at | string | Last update timestamp |
created_at | string | Creation timestamp |
Market Deleted Event
The market.deleted event is triggered when a market is removed from the system.
Event Structure
- JSON Example
{
"event_type": "market.deleted",
"payload": {
"id": "123e4567-e89b-12d3-a456-426614174000"
}
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier of the deleted market |