triPOS REST API

<back to all web services

TransactionQueryRequest

The following routes are available for this service:
POST/api/v1/transactionQueryGets a transaction details based on the passed in parametersGets a transaction details based on the passed in parameters
TransactionQueryRequest Parameters:
NameParameterData TypeRequiredDescription
ApprovalNumberbodystringNoApproval number
ApprovedAmountbodydecimalNoAmount approved by the transaction.
ExpressTransactionDatebodystringNoExpress transaction date formatted YYYMMDD
ExpressTransactionTimebodystringNoExpress transaction time formatted HHMMSS
HostBatchIdbodystringNoUnique host batch identifier
HostItemIdbodystringNoUnique host batch reference number
ReverseOrderbodyBooleanTypeDto?NoFlag to query records in descending order
TerminalIdbodystringNoTerminal identifier
TrackingIdbodystringNoInternal transaction tracking identifier
TransactionAmountbodydecimalNoTransaction amount
TransactionDateTimeBeginbodystringNoBegin date/time of transaction range. Required if TransactionID or TransactionSetupID is not included. Format "YYYY-MM-DD HH:MM:SS"
TransactionDateTimeEndbodystringNoEnd date/time of transaction range. Required if TransactionID or TransactionSetupID is not included. Format "YYYY-MM-DD HH:MM:SS"
TransactionIdbodystringNoTransactionID returned in original transaction.
TransactionSetupIdbodystringNoTransaction setup ID
TransactionStatusbodystringNoTransaction status code
TransactionTypebodystringNoTransaction type
ReferenceNumberbodystringNoA user defined reference number.
ShiftIdbodystringNoAn optional shift id for reference.
TransactionQueryResponse Parameters:
NameParameterData TypeRequiredDescription
ReportingDataItemsformList<ReportingDataItemDto>NoTransaction information. A maximum of 1000 records can be returned.
ApiResponse Parameters:
NameParameterData TypeRequiredDescription
ErrorsformList<ApiError>NoA list of errors that occurred.
HasErrorsformboolNoIndicates if there are errors.
LinksformIEnumerable<ApiLink>NoA list of resource links
LogsformList<string>NoA list of log entries detailing what happened during the request. Ideally only used during development or troubleshooting as this can be quite verbose.
TypeformstringNoThe type of object held in the result.
WarningsformList<ApiWarning>NoA list of warnings that occurred.
ApiError Parameters:
NameParameterData TypeRequiredDescription
UserMessageformstringNoAn error message targeted at the end user of the integrated business application.
DeveloperMessageformstringNoAn error message targeted at the developer of the integrated business application.
ErrorTypeformstringNoCode associated with the error if it exists.
ExceptionMessageformstringNoThe body of the exception message.
ExceptionTypeFullNameformstringNoThe full name of the exception.
ExceptionTypeShortNameformstringNoThe short name of the exception.
ApiLink Parameters:
NameParameterData TypeRequiredDescription
HrefformstringNoA target (a URI)
MethodformstringNoThe HTTP method to access the HREF target
RelationformstringNoThe relation aka. 'rel' (the name of the link)
ApiWarning Parameters:
NameParameterData TypeRequiredDescription
DeveloperMessageformstringNoA warning message targeted at the developer of the integrated business application.
UserMessageformstringNoA warning message targeted at the end user of the integrated business application.
ReportingDataItemDto Parameters:
NameParameterData TypeRequiredDescription
AvsResponseCodeformstringNoAddress verification response code.
AcceptorIdformstringNoUnique merchant account identifier. Assigned by Element Payment.
AccountIdformstringNoUnique account ID. Assigned by Element Payment Services.
ApplicationIdformstringNoUnique application identifier. This value is assigned by Element.
ApprovalNumberformstringNoIssuer assigned approval number.
ApprovedAmountformdecimalNoApproved dollar amount.
CvvResponseCodeformstringNoCard verification value response code.
CardLogoformstringNoBrand of the card. Possible values include: Visa, Mastercard, Discover.
CardNumberMaskedformstringNoMasked card account number.
CardTypeformstringNoType of the card.
ExpirationMonthformstringNoExpiration month.
ExpirationYearformstringNoExpiration year.
ExpressResponseCodeformstringNoThe result of the transaction as determined by Express.
ExpressResponseMessageformstringNoA brief text description of the result of the transaction as determined.
ExpressTransactionDateformstringNoThe date when Express processed the transaction. The format of this property is YYYYMMDD.
ExpressTransactionTimeformstringNoThe time when Express processed the transaction. The format of this property is HHMMSS where HH is 00-23.
HostBatchIdformstringNoHost batch ID.
HostItemIdformstringNoHost item ID.
HostResponseCodeformstringNoResponse code for the transaction returned by the host that processed.
HostResponseMessageformstringNoResponse message for the transaction returned by the host that.
NameformstringNoName.
ReferenceNumberformstringNoUser assigned reference number.
TerminalIdformstringNoUnique terminal identifier assigned by Element Payment Serivces.
TimeStampformstringNoAddress verification response code.
TrackDataPresentformboolNoIndicates whether track data was present in the transaction.
TrackingIdformstringNoTracking ID.
TransactionAmountformdecimalNoDollar amount of the transaction.
TransactionIdformstringNoUnique transaction identifier.
TransactionStatusformstringNoDescription of the status/state of the transaction.
TransactionStatusCodeformstringNoStatus/state of the transaction.
TransactionTypeformstringNoType of transaction.
ExpressEnumIntExpressResponseCodeformintNoExpress Enum Int Express Response Code.
ExpressEnumIntTransactionStatusCodeformintNoExpress Enum Int Transaction Status Code.
ExpressBoolStringTrackDataPresentformstringNoExpress Bool String Track Data Present.

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/TransactionQueryRequest HTTP/1.1 
Host: triposqa.vantiv.com 
Content-Type: application/json
Content-Length: length

{"approvalNumber":"String","approvedAmount":0,"expressTransactionDate":"String","expressTransactionTime":"String","hostBatchId":"String","hostItemId":"String","reverseOrder":"False","terminalId":"String","trackingId":"String","transactionAmount":0,"transactionDateTimeBegin":"String","transactionDateTimeEnd":"String","transactionId":"String","transactionSetupId":"String","transactionStatusCode":"String","transactionType":"String","referenceNumber":"String","shiftId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"reportingData":[{"AvsResponseCode":"String","AcceptorId":"String","AccountId":"String","ApplicationId":"String","ApprovalNumber":"String","ApprovedAmount":0,"CvvResponseCode":"String","CardLogo":"String","CardNumberMasked":"String","CardType":"String","ExpirationMonth":"String","ExpirationYear":"String","ExpressResponseCode":"String","ExpressResponseMessage":"String","ExpressTransactionDate":"String","ExpressTransactionTime":"String","HostBatchId":"String","HostItemId":"String","HostResponseCode":"String","HostResponseMessage":"String","Name":"String","ReferenceNumber":"String","TerminalId":"String","TimeStamp":"String","TrackDataPresent":false,"TrackingId":"String","TransactionAmount":0,"TransactionId":"String","TransactionStatus":"String","TransactionStatusCode":"String","TransactionType":"String","ExpressEnumIntExpressResponseCode":0,"ExpressEnumIntTransactionStatusCode":0,"ExpressBoolStringTrackDataPresent":"String"}],"_errors":[{"userMessage":"String","developerMessage":"String","errorType":"String","exceptionMessage":"String","exceptionTypeFullName":"String","exceptionTypeShortName":"String"}],"_hasErrors":true,"_links":[],"_logs":["String"],"_type":"String","_warnings":[{"developerMessage":"String","userMessage":"String"}]}