Report types
A report type is a kind of report: what a row is, which columns the file can have, and the period its data covers now. Its id ends in its version, as Stripe’s do: payments.itemized.1.
A key lists the types it can ask for. A key is of one merchant account, so it gets the types of an account’s data: payments.itemized.1, and payouts.itemized.1 on a market that has payouts. The settlements and balance reports are the whole merchant’s, and are asked for in the merchant portal. Report types take a secret key (sk_); a CLI key (rk_) gets 403 api_key_permission.
The report type object
Section titled “The report type object”| Field | |
|---|---|
id |
The type, e.g. payments.itemized.1. |
object |
reporting.report_type. |
name |
The type in words. |
version |
The number its id ends in. |
default_columns |
The columns a run has when it names none. |
columns |
Every column a run of your key may name. |
filters |
The filters a run may set. |
data_available_start |
The earliest time a run’s interval_start may be: your account’s first payment. null before it has one. |
data_available_end |
The latest time a run’s interval_end may be: one minute ago. |
updated |
When the data was last updated: the same as data_available_end. |
livemode |
true for a live key, false for a test key. |
Times are in seconds since the Unix epoch.
A type your key cannot ask for, or one that does not exist, is 404 resource_missing with param id, from GET /reporting/report_types/{id}; the list leaves it out.
Endpoints
GET/reporting/report_typesListReportTypesGET/reporting/report_types/{id}GetReportType
Loading the reference…