Events

Track Event

Tracks an analytics event from the SDK. Used for funnel analysis, screen views, and custom events.

post/iap/events

Request

  • Base URL
    https://api.zerosettle.io/v1
  • URL
    https://api.zerosettle.io/v1/iap/events
  • Auth
    API key in header X-ZeroSettle-Key

Request body

event_typestring required

The event type identifier (e.g., paywall_shown, purchase_started, checkout_completed).

user_idstring required

The user's external ID.

product_idstring

The product related to this event, if applicable.

screen_namestring

The screen or view where the event occurred.

metadataobject

Additional key-value metadata for the event.

Response

Event recorded

statusstring

Example response

{
  "status": "ok"
}

Changes