Skip to main content

Webhook API Versioning

Khaime uses date-based versioning for webhook payloads. This ensures partners can adopt new payload structures at their own pace without breaking existing integrations.

How Versions Work

  • api_version is a date string (e.g., "2026-03-27") stored on each API key record.
  • The version is included in the webhook body (api_version field) and the X-Khaime-Api-Version response header.
  • New partners are assigned the latest version at key creation.
  • Existing partners keep their current version until they explicitly opt in to a newer one.

What Triggers a New Version

Adding new optional fields or new event types is non-breaking — your integration should handle unknown fields gracefully.

Migrating to a New Version

Update your API key’s version via the API:
Once updated, all subsequent webhook deliveries will use the new payload structure.

Migration Guide: Pre-2026-03-27 to 2026-03-27

The 2026-03-27 version introduces structured multi-currency amounts, expanded event types, and richer object payloads.

Key Changes

Event Mapping

Example: payment.succeeded