Skip to content

E-commerce events report

POST
/v1/report/ecom_events
curl --request POST \
--url https://restapi.affattr.com/v1/report/ecom_events \
--header 'API-KEY: <API-KEY>' \
--header 'Content-Type: application/json' \
--data '{ "filter[applications]": [ 1 ], "filter[conversion_id]": "example", "filter[countries]": [ "example" ], "filter[date_from]": "example", "filter[date_to]": "example", "filter[environment]": "example", "filter[events]": [ "example" ], "filter[order_id]": "example", "filter[partners]": [ 1 ], "filter[product_id]": "example", "format": "example", "limit": 1, "offset": 1, "page": 1, "tz": "example" }'

Order, OrderCancel, OrderReturnRequest and OrderReturnRequestCancel events with their order, product, quantity and revenue, by affise_event_timestamp; limit/offset or page. Formats: json (default), csv. filter[environment]: default all. Client API key only.

Request

Media type application/json
object
filter[applications]
Array<integer>
filter[conversion_id]
string
filter[countries]
Array<string>
filter[date_from]
string
filter[date_to]
string
filter[environment]

All (default), production, sandbox

string
filter[events]
Array<string>
filter[order_id]
string
filter[partners]
Array<integer>
filter[product_id]
string
format

"", csv

string
limit
integer
offset
integer
page
integer
tz
string
Example generated
{
"filter[applications]": [
1
],
"filter[conversion_id]": "example",
"filter[countries]": [
"example"
],
"filter[date_from]": "example",
"filter[date_to]": "example",
"filter[environment]": "example",
"filter[events]": [
"example"
],
"filter[order_id]": "example",
"filter[partners]": [
1
],
"filter[product_id]": "example",
"format": "example",
"limit": 1,
"offset": 1,
"page": 1,
"tz": "example"
}

Report data

Media type application/json
object
key
additional properties
any
Example generated
{}

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

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"
}