On This Page
Creating and Updating Report Subscriptions
To create or update a report subscription, your client application must send an HTTP PUT
request to the report server. The request body contains the details for creating the
subscription, 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/report-subscriptions
For example, if you wanted to create a report titled Daily Transactions, the request would
be:
PUT https://<url_prefix>/reporting/v3/report-subscriptions
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:
|
NOTE
Not all configuration options below are available for all reports.
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 |
< reportFrequency > | Frequency of the report subscription. The options are:
| Optional |
< reportName > | Unique name of the report subscription you want to create or edit. | Required |
< timeZone > | Merchant’s time zone. For example: America/Chicago | Required |
< 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.signedAmounts > | Indicator that determines whether or not a negative sign is used for the amount
of all refunded transactions. Valid values:
| Optional |
< reportPreferences.fieldNameConvention > | 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.
For detailed information on the responses, including which fields are returned, see the
Reporting REST API Reference.