POST | /api/v1/reversal/{transactionId}/{paymentType} | Creates a new full reversal based on given transaction ID, payment type, and the passed in amounts |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Configuration | body | TransactionIdRequestConfiguration | No | Any value included in this section will override the corresponding value set in the triPOS.config |
ConvenienceFeeAmount | body | decimal | No | The convenience fee amount. |
PaymentType | path | string | Yes | The original payment type.Allowable Values
|
TransactionAmount | body | decimal | No | The original transaction amount. |
RecurringPaymentType | body | RecurringPaymentType? | No | Intent of why the credentials are being stored.Allowable Values
|
SubmissionType | body | SubmissionType? | No | Initial vs Subsequent Transaction.Allowable Values
|
NetworkTransactionID | body | string | No | The card brand specific transaction ID that should be stored by the integrator. |
TransactionId | path | string | Yes | The ID of a previous transaction. |
ReversalType | query | string | No | The type of reversal. |
EbtType | body | EbtTypeSelection? | No | EBT card type of the original transaction. This is required when payment type is EBT.Allowable Values
|
StoreCard | body | StoreCard | No | Information necessary to process a StoreCard transaction. |
GetTokenType | body | string | No | To retrieve Token in the transaction. |
GiftProgramType | body | GiftProgramTypes | No | This field is for Valutec gift/loyalty card type. The value 0 is for gift and 1 for loyaltyAllowable Values
|
GiftCardProgram | body | string | No | This field is for Valutec gift/loyalty card program. '01' = Original Gift Card Program '02' = Promotional Gift Card Program '03' = Original Combo Card Program '04' = Auto Rewards LPR Card Program '05' = Original Loyalty Card Program Allowable Values
|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CardHolderPresentCode | form | CardHolderPresentCode? | No | Defines whether the cardholder is present at the transaction. This value is optional, but recommended to be set. If this value is not set in the request, it will be automatically set based on the market code.Allowable Values
|
ClerkNumber | form | string | No | An optional clerk number for reference. |
LaneId | form | int | No | Specifies which lane to use. |
ReferenceNumber | form | string | No | A user defined reference number. |
ShiftId | form | string | No | An optional shift id for reference. |
TicketNumber | form | string | No | An optional ticket number. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
MarketCode | form | MarketCode | No | The market code of the transaction. Allowable Values
|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | The ID of a StoreCard. |
Password | form | string | No | The password of StoreCard. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CardLogo | form | string | No | The card logo. Possible values are: Visa, Mastercard, Discover, Amex, Diners Club, JCB, Carte Blanche, Other |
ConvenienceFeeAmount | form | decimal | No | The convenience fee amount. |
PaymentType | form | string | No | Original card payment type: Credit, Debit, Gift, EBT |
TerminalId | form | string | No | The ID of the terminal used during the transaction |
TotalAmount | form | decimal | No | The total amount of the transaction. |
AccountNumber | form | string | No | The card account number. |
BalanceAmount | form | decimal | No | The balance of the gift card. |
TokenId | form | string | No | The Token ID. |
TokenProvider | form | string | No | The Token Provider. |
GiftPointsBalance | form | string | No | This field provides gift points balance for Valutec gift/loyalty cards. |
GiftRewardLevel | form | string | No | This field provides gift reward level for Valutec gift/loyalty cards. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ApprovalNumber | form | string | No | Approval number from the processor. Depending on card type and processor an approval number might not be returned. |
IsApproved | form | bool | No | Set to true if the host approved the transaction. |
Processor | form | Processor | No | Response information from the processor. |
StatusCode | form | TransactionFlowStatus | No | The status code for the transaction.Allowable Values
|
TransactionDateTime | form | string | No | Transaction date/time in ISO8601 format |
TransactionId | form | string | No | The transaction ID from the processor |
MerchantId | form | string | No | The Merchant used to process the transaction. |
IsOffline | form | bool | No | A boolean value indicating whether triPOS is disconnected from the host. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Errors | form | List<ApiError> | No | A list of errors that occurred. |
HasErrors | form | bool | No | Indicates if there are errors. |
Links | form | IEnumerable<ApiLink> | No | A list of resource links |
Logs | form | List<string> | No | A list of log entries detailing what happened during the request. Ideally only used during development or troubleshooting as this can be quite verbose. |
Type | form | string | No | The type of object held in the result. |
Warnings | form | List<ApiWarning> | No | A list of warnings that occurred. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserMessage | form | string | No | An error message targeted at the end user of the integrated business application. |
DeveloperMessage | form | string | No | An error message targeted at the developer of the integrated business application. |
ErrorType | form | string | No | Code associated with the error if it exists. |
ExceptionMessage | form | string | No | The body of the exception message. |
ExceptionTypeFullName | form | string | No | The full name of the exception. |
ExceptionTypeShortName | form | string | No | The short name of the exception. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Href | form | string | No | A target (a URI) |
Method | form | string | No | The HTTP method to access the HREF target |
Relation | form | string | No | The relation aka. 'rel' (the name of the link) |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
DeveloperMessage | form | string | No | A warning message targeted at the developer of the integrated business application. |
UserMessage | form | string | No | A warning message targeted at the end user of the integrated business application. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ProcessorLogs | form | List<string> | No | [DEPRECATED] Use logs. |
ProcessorRawResponse | form | string | No | [DEPRECATED] Use rawResponse. |
ProcessorReferenceNumber | form | string | No | [DEPRECATED] Use the same reference number passed in the request. |
ProcessorRequestFailed | form | bool | No | [DEPRECATED] Use top level properties (e.g. hasErrors). |
ProcessorRequestWasApproved | form | bool | No | [DEPRECATED] Use top level properties (e.g isApproved). |
ProcessorResponseCode | form | ProcessorResponseCode | No | [DEPRECATED] Use expressResponseCode.Allowable Values
|
ProcessorResponseMessage | form | string | No | [DEPRECATED] Use expressResponseMessage. |
ExpressResponseCode | form | string | No | The response code received from Express. |
ExpressResponseMessage | form | string | No | The response message received from Express. |
HostResponseCode | form | string | No | The response code received from the host via Express. NOTE: This value is only populated if Express send the request to the host. |
HostResponseMessage | form | string | No | The response message received from the host via Express. NOTE: This value is only populated if Express send the request to the host. |
Logs | form | List<string> | No | A list of messages pertaining processing the transaction. |
RawResponse | form | string | No | The raw processor response. In the case of Express, this is the raw XML returned by the Express platform. |
RawRequest | form | string | No | |
ProcessorName | form | ProcessorName | No |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/ReversalRequest HTTP/1.1
Host: triposqa.vantiv.com
Content-Type: application/json
Content-Length: length
{"configuration":{"marketCode":"Default"},"convenienceFeeAmount":0,"paymentType":"None","transactionAmount":0,"recurringPaymentType":"NotUsed","submissionType":"NotUsed","networkTransactionID":"String","transactionId":"String","type":"String","ebtType":"None","storeCard":{"Id":"String","Password":"String"},"getToken":"String","giftProgramType":"gift","giftCardProgram":"String","cardHolderPresentCode":"Default","clerkNumber":"String","laneId":0,"referenceNumber":"String","shiftId":"String","ticketNumber":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"cardLogo":"String","convenienceFeeAmount":0,"paymentType":"String","terminalId":"String","totalAmount":0,"accountNumber":"String","balanceAmount":0,"tokenId":"String","tokenProvider":"String","giftPointsBalance":"String","giftRewardLevel":"String","approvalNumber":"String","isApproved":false,"_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"},"statusCode":"None","transactionDateTime":"String","transactionId":"String","merchantId":"String","isOffline":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"}]}