Report runs
Start a report run
POST
/report_runsBuilds one report in the background, with the same data and definitions as Insights. Pay.com sends report_run.succeeded with a short-lived download link.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
idempotency-keystringA unique key, such as a UUID, that makes a POST safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace. A retry with the same key, endpoint and body gets the first response. Another endpoint or body gets 400 idempotency_error, and a retry while the first is running gets 409.
Parameters
typestringRequiredperiodobjectRequiredA subscriptions report is a snapshot at end.
Show 2 child parametersHide child parameters
startstringRequiredendstringRequiredfiltersobjectShow 5 child parametersHide child parameters
sellerstringcountrystringproductstringsourcestringAn engine, app_store or google_play.
currencystringreporting_currencystringConverts every amount into this currency at each day's rate. Defaults to your workspace's reporting currency.
Returns
The report run, pending.
idstringresourcestringstatusstringtypestringperiodobjectShow 2 child attributesHide child attributes
startstringendstringfiltersobjectreporting_currencystring or nullfileobject or nullShow 2 child attributesHide child attributes
urlstringexpires_atstringfailure_reasonstring or nullcreatedstringtest_modebooleanErrors
400The request is invalid.
401The API key is missing or wrong.
403The key's permissions don't allow this route.
409A request with this idempotency key is still running.
Was this page helpful?