The /archive
resource provides access to raw report data. At this time raw reports are only available for Apple apps (via App Store Connect).
Scope: All of the resources in this route require read access in the private scope (private:read).
Getting All Report Listings
Request
GET /archive/?type={type}&date={date}
Arguments
Argument | Type | Description |
---|---|---|
type | List | (daily | weekly | monthly | yearly | finance | payment | all) Only return reports of this time. Defaults to all |
date | Date | (yyyy-mm-dd) Only return reports with a report_timestamp on this date. Defaults to all dates |
Example Response
// GET /archive/?type=finance&date=2013-05-01 { "10": { "id": 10, "type": "finance", "external_account_id": 234, "report_timestamp": "2013-05-01T00:00:00", "import_timestamp": "2013-06-14T20:11:23", "region": "GB", "import_method": "auto" }, "11": { "id": 11, "type": "finance", "external_account_id": 234, "report_timestamp": "2013-05-01T00:00:00", "import_timestamp": "2013-06-14T20:11:22", "region": "TR", "import_method": "auto" }, ... }
Getting Latest Report Listings
This route will return the newest report in each of the linked accounts.
Request
GET /archive/latest/?type={type}
Arguments
Argument | Type | Description |
---|---|---|
type | List | (daily | weekly | monthly | yearly | finance | payment | all) Only return reports of this time. Defaults to all |
Example Response
// GET /archive/latest/?type=daily { "23": { "id": 23, "type": "daily", "external_account_id": 234, "report_timestamp": "2013-06-30T00:00:00", "import_timestamp": "2013-07-01T08:12:31", "region": "None", "import_method": "auto" }, "24": { "id": 24, "type": "daily", "external_account_id": 500, "report_timestamp": "2013-06-30T00:00:00", "import_timestamp": "2013-07-01T08:12:30", "region": "None", "import_method": "auto" } }
Getting Raw Report Data
Request
GET /archive/raw/{id}/
Arguments
Argument | Type | Description |
---|---|---|
id | Number | The id of the report to get |
Example Response
// GET /archive/raw/105451447 // Output varies depending on type of report.