Version: 24.10
GET Transaction History
This API supports a single GET method, but provides a great deal of flexibility through a query builder API. Key features of this API include:
- Filter criteria: Return an individual transaction or a filtered transaction record set.
- Output formats: Specify JSON or CSV output format for the result set.
- Fetch limits and offsets: Enables you to page through very large transaction history record sets.
- Column filter: Specify the columns you want to see.
Request
HTTP request
GET https://<JM_SERVER>/manager/secure/rest/transaction-history/v1/
Parameters
The table below shows the set of request parameters the can be used as additional search criteria. If multiple parameters are specified, all of them are applied to the result set.
All parameters are optional except where otherwise indicated.
Parameter | Description |
---|---|
abandonmentFormStatus | Filter on the abandonment form status of an abandoned transaction at abandonment time Values: Assigned , Opened , Saved , Submitted |
clientCode | Filter on the organization code. Note: This column is not indexed, and using clientOid will be more efficient. |
clientOid | Filter on the organization client OID primary key. |
dwhPublishStatus | Filter on data warehouse publish status, which can be set via the PUT operation. This allows you to retrieve only values that you haven't previously retrieved and marked as published (via PUT). Values: null (retrieve only unpublished values), Completed (retrieve only previously published values) |
endDate | Include only those transactions requested before the specified time_request end date.Specify a value using the format yyyy-MM-dd .For example, the query parameters &startDate=2016-01-01&endDate=2016-06-30 includes transactions reqeusted between 1 January 2016 and 30 June 2016. |
formCode | Filter on the form code. Note: This column is not indexed, and using formOid will be more efficient. |
formOid | Filter on the form OID primary key. |
formStatus | Filter on the submission form status. Values: Completed , Abandoned |
formVersionNumber | Filter on the form version number of the transaction; for example, 1.0 . |
portalName | Filter on the form space (portal) associated with the transaction. |
receiptNumber | Filter on the transaction receipt number. |
referer | Filter on the transaction referer using a like "%referer%" WHERE clause. |
startDate | Include only those transactions requested on or after the specified time_request end date.Specify a value using the format yyyy-MM-dd .For example, the query parameters &startDate=2016-01-01&endDate=2016-06-30 includes transactions reqeusted between 1 January 2016 and 30 June 2016. |
submitKey | Filter on the transaction submit key (GUID). Note that this column is not indexed. |
submissionOid | Filter on the transaction submission OID primary key. Note that this column is not indexed. |
trackingCode | Filter on the transaction tracking code, also known as the tracking number. |
trackingNumber | Filter on the transaction tracking number, also known as the tracking code. |
userAgentDeviceType | Filter on the user agent device type. Values: Desktop , Tablet , Mobile |
userAgentBrowserType | Filter on the user agent browser type. |
userAgentBrowserVersion | Filter on the user agent browser version. |
userAgentOsType | Filter on the user agent OS type. |
userAgentOsVersion | Filter on the user agent OS version. |
fetchLimit | The maximum number of transactions to return. Specify a number in the range 1 - 100,000. Defaults to 1,000 if a valid value is not provided. For example: &fetchLimit=10000 |
fetchOffset | The query fetch offset in rows. Use the fetch offset to page through very large result sets. For example, &fetchLimit=10000&fetchOffset=20000 returns the next 10,000 records after the 20,000 record offset. |
format | Specify the output format. Values: JSON (JSON array), CSV . (Default: JSON ). |
columns | The columns to return. Specify a comma-separated list of column names; for example, &columns=[form_code, form_status, time_request] . |
Response
If successful, this operation returns a response with a HTTP 200 OK
status code.
Examples
Example 1
This example uses the filter criteria:
formCode=FTX-CCA
: Include only transactions with the form code"FTX-CCA"
.formStatus=Completed
: Include only transactions with the form status"Completed"
.fetchLimit=1
: Return 1 record only.
Example request
GET https://transact.maguire.com/manager/secure/rest/transaction-history/v1/?formCode=FTX-CCA&formStatus=Completed&fetchLimit=1
Example successful response
[
{
"attachment_count": 0,
"attachments_total_size": 0,
"authenticated_flag": false,
"client_code": "maguire",
"client_name": "Maguire",
"client_oid": 1,
"content_length": "19163",
"duration_client_response": 9,
"duration_render": 253,
"duration_total": 671,
"far_data_version": "4.3.0sp2",
"field_worker_flag": false,
"form_code": "FTX-CCA",
"form_name": "Credit Card Application",
"form_oid": 2,
"form_status": "Completed",
"form_version_number": "3.0",
"ip_address": "127.0.0.1",
"pdf_submit_flag": false,
"portal_name": "Maguire",
"receipt_number": "FTX-CCA-2",
"receipt_render_duration": 3497,
"referer": "http://localhost:9080/manager/admin/form/form-search.htm?_wid=1101",
"request_cookie": "JSESSIONID=Swc8R3ul6lbq8JvwCOTHajRD",
"request_key": "618124c328c44eb376dd2f7a32e4081c",
"request_log_count": 1,
"request_url": "http://localhost:9080/maguire/servlet/SmartForm.html",
"revision_number": 5,
"submission_oid": 10,
"submit_key": "1725c033d977b52bea9aef934cd63a58",
"submitted_offline_flag": false,
"task_flag": false,
"time_form_completed": "2016-02-16T12:35+1100",
"time_request": "2016-02-16T12:35+1100",
"time_submission": "2016-02-16T12:35+1100",
"time_to_submit_sec": 17,
"tracking_number": "GD4ZFB",
"transaction_history_oid": 4,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0",
"user_agent_browser_type": "Firefox",
"user_agent_browser_version": "44",
"user_agent_device_type": "Desktop",
"user_agent_os_type": "Windows",
"user_agent_os_version": "10"
}
]
Example 2
This example uses the filter criteria:
formCode=FTX-CCA
: Include only transactions with the form code"FTX-CCA"
.fetchLimit=10
: Return 10 records only.format=CSV
: Output in CSV format.columns=[form_name,form_version_number,portal_name,submission_oid,tracking_number]
: Include only these columns in the output:form_name
,form_version_number
,portal_name
,submission_oid
, andtracking_number
.
Example request
GET https://transact.maguire.com/manager/secure/rest/transaction-history/v1/?formCode=FTX-CCA&fetchLimit=10&format=CSV&columns=[form_name,form_version_number,portal_name,submission_oid,tracking_number]
Example successful response
"form_name","form_version_number","portal_name","submission_oid","tracking_number"
"Credit Card Application","3.0","Maguire",10,"GD4ZFB"
"Credit Card Application","3.0","Maguire",13,"7T5QJF"
"Credit Card Application","3.0","Maguire",27,"RC93C9"
"Credit Card Application","3.0","Maguire",612,"Y3RZZL"
"Credit Card Application","3.0","Maguire",617,"GTS32H"
"Credit Card Application","3.0","Maguire",716,"GC2HNB"
"Credit Card Application","3.0","Maguire",719,"9P8W56"
"Credit Card Application","3.0","Maguire",720,"VGLHKW"
"Credit Card Application","3.0","Maguire",721,"TP2G7P"
"Credit Card Application","3.0","Maguire",722,"DTD65S"