triPOS REST API

<back to all web services

ReceiptRequest

The following routes are available for this service:
POST/api/v1/receiptPrints a receipt on a PIN pad using the posted data.This endpoint supports printing functionality. See Receipt documentation for more information.
ReceiptRequest Parameters:
NameParameterData TypeRequiredDescription
LaneIdbodyintNoThe lane ID.
AccountNumberbodystringNoThe card account number used in the transaction.
ApprovalNumberbodystringNoApproval number of the transaction.
CardLogobodystringNoThe card logo of the card used in the transaction.
CashbackAmountbodydecimal?NoCashback amount the customer received.
CopyTypebodyReceiptCopyTypeNoIndicates whether the receipt is a Merchant Copy or a Customer Copy.
CurrencyCodebodystringNoThe currency code used in the transaction.

Allowable Values

  • None
  • Cad
  • Gbp
  • Usd
CustomTemplatebodystringNoA custom template that should be used instead of the default.
EmvbodyReceiptEmvDtoNoThe EMV information of the EMV card used in the transaction.
EntryModebodyTransactionDataEntryMode?NoEntry method used to enter card information, swipe, chip, etc.
FooterbodyList<string>NoThe list of individual lines of text to be displayed at the bottom of the receipt.
HeaderbodyList<string>NoThe list of individual lines of text to be displayed at the top of the receipt.
HostResponseCodebodystringNoThe code returned by the transaction's processing host.
IsApprovedbodybool?NoIndicates whether the transaction was approved.
PinVerifiedbodybool?NoIndicates whether the entered PIN was verified.
ReceiptTypebodyReceiptTypeNoThe type of receipt.
ReferenceNumberbodystringNoThe transaction's reference number.
SubTotalAmountbodydecimal?NoThe subtotal amount of the transaction.
TerminalIdbodystringNoThe ID of the terminal used in the transaction.
TipAmountbodydecimal?NoThe tip amount.
TotalAmountbodydecimal?NoThe total amount of the transaction.
TransactionDateTimebodystringNoDate and time of the transaction.
TransactionIdbodystringNoThe ID of the transaction.
SurchargeAmountbodydecimal?NoThe surcharge amount.
ReceiptEmvDto Parameters:
NameParameterData TypeRequiredDescription
ApplicationIdentifierformstringNoThe Application Identifier also known as the AID. Identifies the application as described in ISO/IEC 7816-5. Printed receipts are required to contain the AID as hexadecimal characters.
ApplicationLabelformstringNoMnemonic associated with the AID according to ISO/IEC 7816-5. If the Application Preferred Name is not available or the Issuer code table index is not supported, then the Application Label should be used on the receipt instead of the Application Preferred Name.
ApplicationPreferredNameformstringNoPreferred mnemonic associated with the AID. When the Application Preferred Name is present and the Issuer code table index is supported, then this data element is mandatory on the receipt.
CryptogramformstringNoThe EMV cryptogram type and value. It is a preferred best practice to include this data element on the receipt, but is not mandatory. This field contains cryptogram type followed by the cryptogram value.
TagsformList<EmvTagKeyValue>NoA name value collection of additional EMV tags that are required to appear on the receipt.
IssuerCodeTableIndexformstringNoIndicates the code table according to ISO/IEC 8859 for displaying the Application Preferred Name.
EmvTagKeyValue Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
ValueformstringNo
ReceiptResponse Parameters:
NameParameterData TypeRequiredDescription
LaneIdformintNoThe lane ID.
PrintResultformPrintResultNoThe result of the print operation is returned in the printResult field.
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.

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/ReceiptRequest HTTP/1.1 
Host: triposqa.vantiv.com 
Content-Type: application/json
Content-Length: length

{"laneId":0,"accountNumber":"String","approvalNumber":"String","cardLogo":"String","cashbackAmount":0,"copyType":"Merchant","currencyCode":"String","customTemplate":"String","emv":{"ApplicationIdentifier":"String","ApplicationLabel":"String","ApplicationPreferredName":"String","Cryptogram":"String","Tags":[{"Key":"String","Value":"String"}],"IssuerCodeTableIndex":"String"},"entryMode":"Unknown","footer":["String"],"header":["String"],"hostResponseCode":"String","isApproved":false,"pinVerified":false,"receiptType":"Sale","referenceNumber":"String","subTotalAmount":0,"terminalId":"String","tipAmount":0,"totalAmount":0,"transactionDateTime":"String","transactionId":"String","surchargeAmount":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"laneId":0,"printResult":"PrintSuccess","_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"}]}