triPOS REST API

<back to all web services

CreateOmniTokenRequest

The following routes are available for this service:
POST/api/v1/token/omniCreates a Omni token based on a card swipeThis endpoint is for swipe capable omni token creation.
CreateOmniTokenRequest Parameters:
NameParameterData TypeRequiredDescription
LaneIdbodyintNoSpecifies which lane to use.
VaultIdbodystringNoThe Vault ID with Omni.
InokeManualEntrybodyboolNoInvokes manual card entry.
IsCscSupportedbodystringNoInvokes prompt for cardholder to enter card security code for manual keyed card entry.
ConfigurationbodyTokenRequestConfigurationNoAny value included in this section will override the corresponding value set in the triPOS.config
TokenRequestConfiguration Parameters:
NameParameterData TypeRequiredDescription
CardReadRetriesformint?NoNumber of retries in case of bad card read. The default value is 1.
CreateOmniTokenResponse Parameters:
NameParameterData TypeRequiredDescription
AccountNumberformstringNoThe card account number.
BinValueformstringNoThe card bin value. This value is only provided for a CreateOmniTokenRequest NOT for a CreateOmniTokenWithTransIdRequest.
CardHolderNameformstringNoThe card holder name on the card. This value is only provided for a CreateOmniTokenRequest NOT for a CreateOmniTokenWithTransIdRequest. If the card is keyed for a CreateOmniTokenRequest this value will be empty.
CardLogoformstringNoThe card logo. Possible values are: Visa, Mastercard, Discover, Amex, Diners Club, JCB, Carte Blanche, Other.
EntryModeformstringNoDescription of how card was entered. This value is only provided for a CreateOmniTokenRequest NOT for a CreateOmniTokenWithTransIdRequest.

Allowable Values

  • Unknown
  • Swiped
  • Keyed
  • ContactIcc
  • ContactlessIcc
  • ContactlessMsd
ExpirationMonthformstringNoThe card's expiration month
ExpirationYearformstringNoThe card's expiration year
MerchantIdformstringNoThe merchant ID used to process the transaction.
TokenProviderformstringNoThe Token Provider.
TokenIdformstringNoThe Token ID.
TransactionDateTimeformstringNoTransaction date/time in ISO8601 format
ProcessorformProcessorNoResponse information from the processor.
IsOfflineformboolNoA boolean value indicating whether triPOS is disconnected from the host.
BinAttributesformDictionary<string, bool>NoAvailable binAttributes of card. more»
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.
Processor Parameters:
NameParameterData TypeRequiredDescription
ProcessorLogsformList<string>No[DEPRECATED] Use logs.
ProcessorRawResponseformstringNo[DEPRECATED] Use rawResponse.
ProcessorReferenceNumberformstringNo[DEPRECATED] Use the same reference number passed in the request.
ProcessorRequestFailedformboolNo[DEPRECATED] Use top level properties (e.g. hasErrors).
ProcessorRequestWasApprovedformboolNo[DEPRECATED] Use top level properties (e.g isApproved).
ProcessorResponseCodeformProcessorResponseCodeNo[DEPRECATED] Use expressResponseCode.

Allowable Values

  • Unknown
  • Approved
  • PartialApproval
  • Decline
  • ExpiredCard
  • Duplicate
  • PickUpCard
  • ReferralCallIssuer
  • InvalidData
  • ApprovedExceptCashback
  • NotAllowed
ProcessorResponseMessageformstringNo[DEPRECATED] Use expressResponseMessage.
ExpressResponseCodeformstringNoThe response code received from Express.
ExpressResponseMessageformstringNoThe response message received from Express.
HostResponseCodeformstringNoThe response code received from the host via Express. NOTE: This value is only populated if Express send the request to the host.
HostResponseMessageformstringNoThe response message received from the host via Express. NOTE: This value is only populated if Express send the request to the host.
LogsformList<string>NoA list of messages pertaining processing the transaction.
RawResponseformstringNoThe raw processor response. In the case of Express, this is the raw XML returned by the Express platform.
RawRequestformstringNo
ProcessorNameformProcessorNameNo

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

{"laneId":0,"vaultId":"String","invokeManualEntry":false,"isCscSupported":"String","configuration":{"cardReadRetries":0}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"accountNumber":"String","binValue":"String","cardHolderName":"String","cardLogo":"String","entryMode":"String","expirationMonth":"String","expirationYear":"String","merchantId":"String","tokenProvider":"String","tokenId":"String","transactionDateTime":"String","_processor":{"processorLogs":["String"],"processorRawResponse":"String","processorReferenceNumber":"String","processorRequestFailed":false,"processorRequestWasApproved":false,"processorResponseCode":"Unknown","processorResponseMessage":"String","expressResponseCode":"String","expressResponseMessage":"String","hostResponseCode":"String","hostResponseMessage":"String","logs":["String"],"rawResponse":"String","rawRequest":"String","processorName":"Unknown"},"isOffline":false,"binAttributes":{"String":false},"_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"}]}