Run Search

GET{{api_url}}/shop/reportstore/run/search?limit=5&limit_start=0&report_key=amazon_mfn_returns

Searches the saved runs of reports, newest first. A run is one saved copy of a report for one period, for example the Amazon MFN Returns report for 2026-11-30.

Returns run_total, the count of every matching run (not just this page), and runs. Each run carries:

FieldDescription
report_store_run_idRun id, used by Run Get.
report_keyThe report's key.
report_nameDisplay name.
report_paramsThe parameters the report was generated with.
report_summaryThe report's totals, each with key, label, and value.
period_startFirst day the run covers.
period_endLast day the run covers.
row_countRows saved in the run.
date_createdWhen the run was saved.

Rows are not included; read them with Run Get.

period_from and period_to match runs whose period_start falls in that range. Send the same date in both to find the run for one day; a run_total of 0 means no saved copy exists for that report and day.

Authorization

Bearer token, sent in the Authorization header. Inherited from the collection.

Query Parameters

KeyValueDescription
limit5Maximum runs to return. Maximum 100.
limit_start0Number of leading runs to skip, for paging.
period_from optional2026-11-30Runs whose period_start is on or after this date. Format: 2026-11-01
period_to optional2026-12-31Runs whose period_start is on or before this date. Format: 2026-11-30
report_keyamazon_mfn_returnsOnly runs of this report, the report_key from Definition List. Omit for runs of every report.

Example Request

curl --location --request GET '{{api_url}}/shop/reportstore/run/search?limit=5&limit_start=0&report_key=amazon_mfn_returns' \
--header 'Authorization: Bearer {{auth_token}}'

Example Responses

Run Search

Request

curl --location --request GET '{{api_url}}/shop/reportstore/run/search?limit=5&limit_start=0&report_key=amazon_mfn_returns' \
--header 'Authorization: Bearer YOUR_API_KEY'

Response 200 OK

{
    "run_total": 1,
    "runs": [
        {
            "report_store_run_id": 13,
            "report_key": "amazon_mfn_returns",
            "report_name": "Amazon MFN Returns",
            "report_params": {
                "report_date": "2026-11-30"
            },
            "report_summary": [
                {
                    "key": "return_units",
                    "label": "Units Returned",
                    "value": 0
                },
                {
                    "key": "refunded_amount",
                    "label": "Total Refunded",
                    "value": 0
                },
                {
                    "key": "return_rows",
                    "label": "Returns",
                    "value": 0
                }
            ],
            "period_start": "2026-11-30",
            "period_end": "2026-11-30",
            "row_count": 0,
            "date_created": "2026-12-01 09:07:27"
        }
    ]
}