Adjust server-side events
Send verified subscription events from SubHero to Adjust as server-to-server events.
Create the app and event tokens in Adjust. Initialize the Adjust SDK in the test app first: Adjust must already recognize the device for its server-side events to match. Obtain an S2S security bearer token and map the SubHero event types you want to the corresponding Adjust event tokens.
An admin configures the project through PUT /console/projects/{projectId}/integrations/adjust:
{
"enabled": true,
"forwardSandbox": false,
"revenueMode": "gross",
"eventTypeMap": { "INITIAL_PURCHASE": "abc123", "RENEWAL": "def456", "CANCELLATION": "ghi789" },
"credentials": { "app_token": "YOUR_APP_TOKEN", "s2s_bearer_token": "YOUR_S2S_TOKEN" }
}
Credentials are write-only and encrypted. Omit credentials when changing other settings to retain them. Use GET /console/projects/{projectId}/integrations for settings and credential-presence flags, and GET /console/projects/{projectId}/integrations/adjust/deliveries for delivery status. Admins can disable or delete an integration; members can read its status.
Requests use the Adjust S2S event endpoint, an Authorization bearer header and form-encoded bodies. Device preference is gps_adid, then idfa, then Adjust adid; these identifiers are collected during verified ingest. The event timestamp is sent in seconds and no per-event primary_dedupe_token is sent: that parameter is a persistent device identity, not event idempotency. Revenue stays an exact decimal string. Only money events carry revenue; lifecycle events such as cancellation and trial start carry none. proceeds mode skips a money event when its proceeds estimate is unavailable instead of substituting gross revenue.
Adjust's supported revenue range starts at 0.001. Mapped zero, negative refund and smaller-value events are sent without revenue or currency, preserving the lifecycle signal without fabricating positive revenue. Values above its upper bound are skipped_unsupported_revenue. Missing local device identifiers, or an Adjust Device not found response, are recorded as skipped_no_device. Events missing an event-token mapping are skipped_unmapped_event. Sandbox forwarding is off until explicitly enabled.
Delivery failures retry after 1 minute, 10 minutes, 1 hour and 6 hours, then become dead with an alert. Adjust runs in its own queue, independent of Amplitude, GA4 and subscription state processing. Request credentials and vendor response bodies are never stored in delivery logs.
For live verification, enable sandbox forwarding on a staging project, perform a test-app purchase/renewal/cancellation, and inspect Adjust's live events view. This requires owner-provided credentials and a device previously seen by the Adjust SDK. No live verification or screenshots are claimed by the automated test suite.
Contract sources: Adjust S2S events and S2S developer guide. Adjust also imposes timestamp and device/event ordering restrictions; old or out-of-order data is not rewritten to appear current.
Delivery is at least once: a timeout after Adjust accepts an event can duplicate revenue on retry. Pending events for the same captured device identifiers and configured event token are sent chronologically; an earlier retry blocks later events for that identity/token. Historical events arriving after a later event has already reached Adjust can still be rejected (adjust_out_of_order); timestamps are never rewritten. The vendor's 58-day submission limit is enforced as skipped_outside_vendor_window.
Disabling pauses pending work and lease recovery. Re-enabling resumes those same deliveries; events created while disabled are not backfilled. Already running requests can finish. Event-time subscriber snapshots are immutable. Deleting the integration deletes its delivery history.
Missing gross prices are skipped_missing_price; missing estimates in proceeds mode are skipped_missing_proceeds. Invalid local payloads (invalid_payload) or unreadable credentials (invalid_config) immediately become dead and raise an alert. Single-event 400/413/422 responses are permanent; 401/403, 429, server errors and network failures use the retry schedule so corrected settings can recover. Logs store only fixed outcome codes and status numbers, never raw exception messages, request URLs or vendor bodies.