Skip to content

Stripe: Reporting schemas

3 Stripe schemas with complete fields and constraints.

← Reporting operations · All schemas

Create a Report Run — response body

FieldTypePresenceDescription and constraints
$objectRootThe Report Run object represents an instance of a report type generated with
specific run parameters. Once the object is created, Stripe begins processing the report.
When the report has finished running, it will give you a reference to a file
where you can retrieve your results. For an overview, see
[API Access to Reports](https://docs.stripe.com/reporting/statements/api).

Note that certain report types can only be run based on your live-mode data (not test-mode
data), and will error when queried without a [live-mode API key](https://docs.stripe.com/keys#test-live-modes).
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
errorJSONOptional
error (anyOf 1)stringAlternativeIf something should go wrong during the run, a message about the failure (populated when
`status=failed`).
Maximum length: 5000
error (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parent`true` if the report is run on live mode data and `false` if it is run on test mode data.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: reporting.report_run
parametersModelRequired within parentExpand Create a Report Run — response body — parameters
report_typestringRequired within parentThe ID of the [report type](https://docs.stripe.com/reports/report-types) to run, such as `"balance.summary.1"`.
Maximum length: 5000
resultJSONOptional
result (anyOf 1)JSONAlternativeThe file object representing the result of the report run (populated when
`status=succeeded`).
result (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a file — response body
result (anyOf 2)nullAlternative
statusstringRequired within parentStatus of this report run. This will be `pending` when the run is initially created.
When the run finishes, this will be set to `succeeded` and the `result` field will be populated.
Rarely, we may encounter an error, at which point this will be set to `failed` and the `error` field will be populated.
Maximum length: 5000
succeeded_atJSONOptional
succeeded_at (anyOf 1)JSONAlternative
succeeded_at (anyOf 1) (anyOf 1)integerAlternativeTimestamp at which this run successfully finished (populated when
`status=succeeded`). Measured in seconds since the Unix epoch.
Format: unix-time
succeeded_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
succeeded_at (anyOf 2)nullAlternative

Referenced models: Create a file — response body, Create a Report Run — response body — parameters

Create a Report Run — response body — parameters

FieldTypePresenceDescription and constraints
$objectRoot
columnsarrayOptionalThe set of output columns requested for inclusion in the report run.
columns[]stringEach itemMaximum length: 5000
connected_accountstringOptionalConnected account ID by which to filter the report run.
Maximum length: 5000
currencystringOptionalCurrency of objects to be included in the report run.
Format: currency
interval_endJSONOptional
interval_end (anyOf 1)integerAlternativeEnding timestamp of data to be included in the report run. Can be any UTC timestamp between 1 second after the user specified `interval_start` and 1 second before this report's last `data_available_end` value.
Format: unix-time
interval_end (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
interval_startJSONOptional
interval_start (anyOf 1)integerAlternativeStarting timestamp of data to be included in the report run. Can be any UTC timestamp between 1 second after this report's `data_available_start` and 1 second before the user specified `interval_end` value.
Format: unix-time
interval_start (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
payoutstringOptionalPayout ID by which to filter the report run.
Maximum length: 5000
reporting_categorystringOptionalCategory of balance transactions to be included in the report run.
Maximum length: 5000
timezonestringOptionalDefaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`.
Maximum length: 5000

Retrieve a Report Type — response body

FieldTypePresenceDescription and constraints
$objectRootThe Report Type resource corresponds to a particular type of report, such as
the "Activity summary" or "Itemized payouts" reports. These objects are
identified by an ID belonging to a set of enumerated values. See
[API Access to Reports documentation](https://docs.stripe.com/reporting/statements/api)
for those Report Type IDs, along with required and optional parameters.

Note that certain report types can only be run based on your live-mode data (not test-mode
data), and will error when queried without a [live-mode API key](https://docs.stripe.com/keys#test-live-modes).
data_available_endJSONRequired within parent
data_available_end (anyOf 1)integerAlternativeMost recent time for which this Report Type is available. Measured in seconds since the Unix epoch.
Format: unix-time
data_available_end (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
data_available_startJSONRequired within parent
data_available_start (anyOf 1)integerAlternativeEarliest time for which this Report Type is available. Measured in seconds since the Unix epoch.
Format: unix-time
data_available_start (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
default_columnsJSONOptional
default_columns (anyOf 1)arrayAlternativeList of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support the `columns` parameter, this will be null.)
default_columns (anyOf 1)[]stringEach itemMaximum length: 5000
default_columns (anyOf 2)nullAlternative
idstringRequired within parentThe [ID of the Report Type](https://docs.stripe.com/reporting/statements/api#available-report-types), such as `balance.summary.1`.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
namestringRequired within parentHuman-readable name of the Report Type
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: reporting.report_type
updatedJSONRequired within parent
updated (anyOf 1)integerAlternativeWhen this Report Type was latest updated. Measured in seconds since the Unix epoch.
Format: unix-time
updated (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
versionJSONRequired within parent
version (anyOf 1)integerAlternativeVersion of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas.
version (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.