# rpt_100\Reports_apiApi All URIs are relative to *https://sandbox.api.visa.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**getreportingApi**](Reports_apiApi.md#getreportingApi) | **GET** /visadirect/reports/v1/transactiondata | # **getreportingApi** > \rpt_100\model\ReportingApigetResponse getreportingApi($from_date, $to_date, $fields, $offset, $limit) Transaction Data ### Example ```php setUsername("Username"); $config->setPassword("Password"); $config->setCertificatePath("Certificate_path"); $config->setPrivateKey("Private_key_path"); //Instantiate Reports_apiApi $api_instance = new rpt_100\Api\Reports_apiApi(); // Set the required payload and parameters. $from_date = "from_date_example"; // string $to_date = "to_date_example"; // string $fields = "fields_example"; // string $offset = "offset_example"; // string $limit = "limit_example"; // string try { $result = $api_instance->getreportingApi($from_date, $to_date, $fields, $offset, $limit); print_r($result); } catch (Exception $e) { echo 'Exception when calling Reports_apiApi->getreportingApi: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **from_date** | **string**| The beginning date. Example: 31032016 for 31st March 2016. | **to_date** | **string**| The end date. Example: 03042016 for 3rd April 2016. Currently, only upto 5 days worth of data can be retrieved. Also, only the last 120 days of data can be searched from the current date. | **fields** | **string**| Required additional fields. Example: Add fields like amountInTransactionCurrency, currencyConversionRate, reasonCodeValue, cardType, networkId, transactionStateCode, businessApplicationId, separated by comma. | [optional] **offset** | **string**| This determines the page number for the pagination. Defalut is set to 1. | [optional] **limit** | **string**| Total number of records that should be present in each page. Defalut is set to 100. | [optional] ### Return type [**\rpt_100\model\ReportingApigetResponse**](../Model/ReportingApigetResponse.md) ### Authorization [basicAuth](../../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [Back to top](#) | [Back to API list](../../README.md#documentation-for-api-endpoints) | [Back to Model list](../../README.md#documentation-for-models) | [Back to README](../../README.md) ##License **© Copyright 2018 Visa. All Rights Reserved.** *NOTICE: The software and accompanying information and documentation (together, the “Software”) remain the property of and are proprietary to Visa and its suppliers and affiliates. The Software remains protected by intellectual property rights and may be covered by U.S. and foreign patents or patent applications. The Software is licensed and not sold.* *By accessing the Software you are agreeing to Visa's terms of use (developer.visa.com/terms) and privacy policy (developer.visa.com/privacy). In addition, all permissible uses of the Software must be in support of Visa products, programs and services provided through the Visa Developer Program (VDP) platform only (developer.visa.com). **THE SOFTWARE AND ANY ASSOCIATED INFORMATION OR DOCUMENTATION IS PROVIDED ON AN “AS IS,” “AS AVAILABLE,” “WITH ALL FAULTS” BASIS WITHOUT WARRANTY OR CONDITION OF ANY KIND. YOUR USE IS AT YOUR OWN RISK.** All brand names are the property of their respective owners, used for identification purposes only, and do not imply product endorsement or affiliation with Visa. Any links to third party sites are for your information only and equally do not constitute a Visa endorsement. Visa has no insight into and control over third party content and code and disclaims all liability for any such components, including continued availability and functionality. Benefits depend on implementation details and business factors and coding steps shown are exemplary only and do not reflect all necessary elements for the described capabilities. Capabilities and features are subject to Visa’s terms and conditions and may require development, implementation and resources by you based on your business and operational details. Please refer to the specific API documentation for details on the requirements, eligibility and geographic availability.* *This Software includes programs, concepts and details under continuing development by Visa. Any Visa features, functionality, implementation, branding, and schedules may be amended, updated or canceled at Visa’s discretion. The timing of widespread availability of programs and functionality is also subject to a number of factors outside Visa’s control, including but not limited to deployment of necessary infrastructure by issuers, acquirers, merchants and mobile device manufacturers.*