Skip to content

Raw subscription events

POST
/v1/report/raw/subscriptions
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.

time_format
string
Allowed values: rfc3339 proto

Format of the dates of the answer

Request

Media type application/json
object
app_id

Applications by id. Empty together with package_name: every application of the key.

Array<integer>
Example
[
123
]
customer_user_ids

Customer user ids.

Array<string>
event_name_originals

Event names of the provider.

Array<string>
order

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.

Array<string>
Example
[
"-received_at"
]
original_transaction_id

Original transaction ids.

Array<string>
package_name

Applications by package name.

Array<string>
pagination

Page of the answer.

object
limit

Rows in the page: 10 when pagination is absent, 1000 when limit is 0, at most 10000.

integer
Example
1000
offset

Rows to skip.

integer
Example
0
product_ids

Product ids.

Array<string>
time_format

Format of the dates of the answer: rfc3339 (default) or proto ({“seconds”,“nanos”}). Also accepted as a query parameter.

string
Allowed values: rfc3339 proto
time_window
required

Window by received_at of the subscription event. Required.

object
from_not_include

Exclude the start of the window. By default it is included.

boolean
Example
false
from_rfc3339

Window start, RFC 3339. Without a zone the time is UTC, a date alone is its midnight UTC. Absent, unparsable or in the future: now.

string
Example
2026-11-01T00:00:00Z
to_include

Include the end of the window. By default it is excluded.

boolean
Example
false
to_rfc3339

Window end, RFC 3339, same rules as from_rfc3339. Absent, unparsable or in the future: now.

string
Example
2026-11-02T00:00:00Z
transaction_id

Transaction ids.

Array<string>

Subscription events

Media type application/json
object
subscriptions
Array<object>
object
app_id
integer
client_id
integer
customer_user_id
string
is_unattributed

True when no install of the client has this customer_user_id.

boolean
received_at

Time the webhook of the provider was received, UTC. The window of the report applies to it.

string format: date-time
service

Not filled by the report.

integer
source

Provider.

string
subscription
object
cancelled_at

Cancellation time, UTC.

string format: date-time
currency
string
environment

Not filled by the report.

string
event_id
string
event_name
string
event_name_original
string
event_time

Time of the event at the provider, UTC.

string format: date-time
expires_at

Subscription period end, UTC.

string format: date-time
original_transaction_id
string
product_id
string
revenue_gross
number
revenue_net
number
started_at

Subscription period start, UTC.

string format: date-time
store

Store of the purchase as the provider reports it.

string
transaction_id

Transaction id.

string
type

0 unknown, 1 trial, 2 regular, 3 refund, 4 other.

integer
Allowed values: 0 1 2 3 4
updated_at

Version of the row in the storage, UTC.

string format: date-time
Example
{
"subscriptions": [
{
"subscription": {
"type": 0
}
}
]
}

Bad request

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

No credentials (answered with 403 until default-deny is enabled)

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Invalid credentials or no access, an agency key too

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Internal server error

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}