Skip to main content

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 modified
  • market.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

{
"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

FieldTypeDescription
idstringUnique identifier for the market
namestringDisplay name of the market
slugstringURL-friendly identifier
country_codestringTwo-letter ISO country code
localestringLocale code (language-COUNTRY)
currency_codestringThree-letter ISO currency code
activebooleanWhether the market is active
updated_atstringLast update timestamp
created_atstringCreation timestamp

Market Deleted Event

The market.deleted event is triggered when a market is removed from the system.

Event Structure

{
"event_type": "market.deleted",
"payload": {
"id": "123e4567-e89b-12d3-a456-426614174000"
}
}

Field Descriptions

FieldTypeDescription
idstringUnique identifier of the deleted market