AppsFlyer

Send verified subscription events from SubHero to AppsFlyer, with your own credentials, revenue mode and sandbox forwarding settings.

Open your project’s Webhooks & integrations page as an owner/admin. Configure credentials, revenue mode and sandbox forwarding, then enable the destination. Members can read status and delivery history.

Use the API3 S2S key for each app, not a legacy SDK developer key. An iOS app ID must include the id prefix. Configure either platform or both. Initialize the AppsFlyer SDK in the app and pass its real appsflyer_id plus analytics_context.os_version with verified purchase ingestion. Do not manufacture an installation ID. Revenue uses a decimal string in eventValue.af_revenue; refunds retain their negative sign. af_order_id and the custom event ID trace the local event but do not establish receiver-side deduplication. AppsFlyer warns that HTTP 200 can occur without full event recording, so inspect the vendor event view.

Credential fields

The cookie-authenticated endpoint is PUT /console/projects/:id/integrations/appsflyer. Its credentials value is:

json code
{
  "app_store": {
    "app_id": "id123456789",
    "s2s_key": "YOUR_APP_S2S_KEY"
  },
  "play_store": {
    "app_id": "com.example.app",
    "s2s_key": "YOUR_ANDROID_S2S_KEY"
  }
}

Secrets are encrypted and write-only. Omit credentials to change settings without rotating them. Supplying credentials replaces the whole credential object, including both platforms when configured. Settings are enabled, forwardSandbox (default false), revenueMode (gross or proceeds), optional eventTypeMap, and region (us or eu, used by Amplitude/Mixpanel).

Test and operate

Save and enable the destination, click Test connection, and supply real test-device identifiers in the JSON form. A minimal identity-based test uses {"store":"app_store","user_id":"your-test-user"}; MMPs also need the SDK identifiers/context described above. This sends a non-revenue subhero_connection_test event and records a private test delivery. Refresh Recent deliveries and verify receipt in the vendor dashboard. A local delivered acknowledgement alone is not live-vendor certification.

Production store events are forwarded by default. Explicitly enable sandbox forwarding for sandbox store events. Disabling pauses pending work; enabling resumes it without backfilling events generated while disabled. Snapshots expire after 30 days. Failed deliveries retry after 1 minute, 10 minutes, 1 hour and 6 hours, then become dead; crashes consume attempts too. Stable local event IDs survive retries, but receiver guarantees vary as described above.

Official API documentation. Contract checked 2026-10-30; real vendor-account validation remains an owner release check.