.. _reportTrigger-label: POST /reports/:reportTypeIdentifier ----------------------------------- **Description** - The Report Trigger API initiates generation of a specific report type. Use the report type identifier from the :ref:`report-types-label` table in the request path, and pass the corresponding parameters in the request body. Request and Response Parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: toggle .. container:: header **☰ SHOW | HIDE** **URL:** ``https://api.flipkart.net/reports/:reportTypeIdentifier`` **Path Variables** +-------------------------+------------+------------------------------------------+ | Parameter/Attribute | Requirement| Description | +=========================+============+==========================================+ | ``reportTypeIdentifier``| Required | Unique identifier of the report type. | | | | See :ref:`report-types-label`. | +-------------------------+------------+------------------------------------------+ **Request Body Parameters** +------------------+------------+------------------------------------------+ | Parameter | Requirement| Description | +==================+============+==========================================+ |``correlation_id``| Optional | UUID string. Should be unique for each | | | | request. | +------------------+------------+------------------------------------------+ |``parameters`` | Required | Report-specific parameters. Structure | | | | depends on the report type. Use ``{}`` | | | | if no parameters are required. | +------------------+------------+------------------------------------------+ **Sample Request** .. code-block:: json { "correlation_id": "59297562-eada-49c9-bdd1-447f778e5037", "parameters": { "from_date": "2023-05-02", "to_date": "2023-06-02" } } **Response Body Parameters** +------------------+------------+----------------------------------------------+ | Parameter | Requirement| Description | +==================+============+==============================================+ | ``report_id`` | Required | Unique ID for the triggered report. Use | | | | this value to track status and download | | | | the report via :ref:`getReportDetail-label`. | +------------------+------------+----------------------------------------------+ **Sample Response** .. code-block:: json { "report_id": "R-01BX5ZZKBKACTAV9WEVGEMMVRY" } | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~