Raw subscription events
const url = 'https://restapi.affattr.com/v1/report/raw/subscriptions?time_format=rfc3339';const options = { method: 'POST', headers: {'API-KEY': '<API-KEY>', 'Content-Type': 'application/json'}, body: '{"app_id":[123],"customer_user_ids":["example"],"event_name_originals":["example"],"order":["-received_at"],"original_transaction_id":["example"],"package_name":["example"],"pagination":{"limit":1000,"offset":0},"product_ids":["example"],"time_format":"rfc3339","time_window":{"from_not_include":false,"from_rfc3339":"2026-11-01T00:00:00Z","to_include":false,"to_rfc3339":"2026-11-02T00:00:00Z"},"transaction_id":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://restapi.affattr.com/v1/report/raw/subscriptions?time_format=rfc3339' \ --header 'API-KEY: <API-KEY>' \ --header 'Content-Type: application/json' \ --data '{ "app_id": [ 123 ], "customer_user_ids": [ "example" ], "event_name_originals": [ "example" ], "order": [ "-received_at" ], "original_transaction_id": [ "example" ], "package_name": [ "example" ], "pagination": { "limit": 1000, "offset": 0 }, "product_ids": [ "example" ], "time_format": "rfc3339", "time_window": { "from_not_include": false, "from_rfc3339": "2026-11-01T00:00:00Z", "to_include": false, "to_rfc3339": "2026-11-02T00:00:00Z" }, "transaction_id": [ "example" ] }'Subscription events (RevenueCat, Apphud, Adapty, App Store, Google Play, Paddle) of the applications, by received_at of the webhook. Client API key only.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Format of the dates of the answer
Request Body required
Section titled “Request Body required ”Request
object
Applications by id. Empty together with package_name: every application of the key.
Example
[ 123]Customer user ids.
Event names of the provider.
Sort fields, a name or “-name” for descending; any other value is 400. Fields: received_at, updated_at, event_time, started_at, expires_at, app_id, product_id, customer_user_id, transaction_id, original_transaction_id. Default: received_at.
Example
[ "-received_at"]Original transaction ids.
Applications by package name.
Page of the answer.
object
Rows in the page: 10 when pagination is absent, 1000 when limit is 0, at most 10000.
Example
1000Rows to skip.
Example
0Product ids.
Format of the dates of the answer: rfc3339 (default) or proto ({“seconds”,“nanos”}). Also accepted as a query parameter.
Window by received_at of the subscription event. Required.
object
Exclude the start of the window. By default it is included.
Example
falseWindow start, RFC 3339. Without a zone the time is UTC, a date alone is its midnight UTC. Absent, unparsable or in the future: now.
Example
2026-11-01T00:00:00ZInclude the end of the window. By default it is excluded.
Example
falseWindow end, RFC 3339, same rules as from_rfc3339. Absent, unparsable or in the future: now.
Example
2026-11-02T00:00:00ZTransaction ids.
Responses
Section titled “ Responses ”Subscription events
object
object
True when no install of the client has this customer_user_id.
Time the webhook of the provider was received, UTC. The window of the report applies to it.
Not filled by the report.
Provider.
object
Cancellation time, UTC.
Not filled by the report.
Time of the event at the provider, UTC.
Subscription period end, UTC.
Subscription period start, UTC.
Store of the purchase as the provider reports it.
Transaction id.
0 unknown, 1 trial, 2 regular, 3 refund, 4 other.
Version of the row in the storage, UTC.
Example
{ "subscriptions": [ { "subscription": { "type": 0 } } ]}Bad request
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}No credentials (answered with 403 until default-deny is enabled)
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Invalid credentials or no access, an agency key too
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Internal server error
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}