Creating a One-Time Report
To create a one-time report, your client application must send an HTTP POST request to the report server. The request body contains the details for creating the report, such as the report type, the start time, and the frequency. The format of the URL is as follows:
PUT https://<url_prefix>/reporting/v3/reports
The request body would be:
{ "organizationId": "myorg", "reportName": "DailyTransactions", "reportDefinitionName": "TransactionDetailClass", "reportFields": [ "Request.RequestID", "Request.TransactionDate", "Request.MerchantID", "BillTo.FirstName", "BillTo.LastName", "BillTo.City",], "startTime": "1100", "reportMimeType": "application/xml, "reportFrequency": "DAILY", "timezone": "GMT", "startTime": "0900", "startDay": "1" }
Value | Description |
---|---|
< url_prefix > | Name of the server from which to
download the report. Use one of these values:
|
Value | Description | Required/ Optional |
---|---|---|
organizationId | The organization ID under which the
report is subscribed. This can be the merchant ID, account ID, or reseller
ID. | Optional |
reportDefinitionName | Name of the report type you want to
review. The options are:
| Required |
reportFields | Array of field names which should be
included in the report. For a list of available fields, see Reporting Fields and Descriptions
| Required |
reportMimeType | Format of the report. Valid values
are:
| Optional |
reportName | Unique name of the report
subscription you want to create or edit. | Required |
timeZone | Merchant’s time zone. For a list of
supported time zones, see Supported Time Zones. Example: America/Chicago | Optional |
startTime | Time of day the report will run.
Format: HHMM | Optional |
startDay | Day of month (1-31) the report will
run for monthly reports. | Optional |
reportFilters | Array that contains additional
filters. | Optional |
reportPreferences.signed
Amounts | Indicator that determines whether or
not a negative sign is used for the amount of all refunded transactions. Valid
values:
| Optional |
reportPreferences.fieldName Convention | Specify the field naming convention
to be followed in reports (applicable only to csv report formats). Valid values:
| Optional |
selectedMerchantGroupName | Name of the merchant group. | Optional |
Responses
This call can return one of the following HTTP status codes:
- 200: Ok.
- 304: Not modified.
- 404: Report not found or no transactions are available.
For detailed information on the responses,
including which fields are returned, see the Reporting REST API Reference
.