POST | /api/v1/return/{transactionId}/{paymentType} | Creates a new card return based on the passed in parameters. | Creates a new card return based on the passed in parameters. More» |
---|---|---|---|
POST | /api/v1/sale/{transactionId}/return/{paymentType} | [Deprecated] Use /api/v1/return/{transactionId}/{paymentType} instead. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Configuration | body | RequestConfiguration | No | Any value included in this section will override the corresponding value set in the triPOS.config |
PaymentType | path | string | Yes | The original payment type.Allowable Values
|
TransactionAmount | body | decimal | No | The total transaction amount. This is the amount of funds to move on the card |
TransactionId | path | string | Yes | The ID of a previous transaction. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CardHolderPresentCode | body | CardHolderPresentCode? | No | Defines whether the card holder 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 | body | string | No | An optional clerk number for reference. |
LaneId | body | int | No | Specifies which lane to use. |
ReferenceNumber | body | string | No | A user defined reference number. This reference number is returned in the response |
ShiftId | body | string | No | An optional shift id for reference. |
TicketNumber | body | string | No | An optional ticket number. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AllowPartialApprovals | body | bool? | No | If set to true, partial approvals are allowed |
CheckForDuplicateTransactions | body | bool? | No | If set to true, enables duplicate checking logic for the transaction at the host. |
CurrencyCode | body | CurrencyCode? | No | The currency code of the transaction.Allowable Values
|
MarketCode | body | MarketCode | No | The market code of the transaction. Allowable Values
|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AccountNumber | body | string | No | The card account number. |
BinValue | body | string | No | The BIN entry that matched the account number. |
CardHolderName | body | string | No | The card holder name. |
CardLogo | body | string | No | The card logo. Possible values are: Visa, Mastercard, Discover, Amex, Diners Club, JCB, Carte Blanche, Other. |
CurrencyCode | body | CurrencyCode | No | The currency code used in the transaction.Allowable Values
|
EntryMode | body | string | No | Description of how card was entered.Allowable Values |
ExpirationYear | body | string | No | The card's expiration year |
ExpirationMonth | body | string | No | The card's expiration month |
PaymentType | body | PaymentType | No | Description of payment type utilized.Allowable Values
|
PinVerified | body | bool | No | True if the PIN was verified, false if not verified or undetermined. |
Signature | body | Signature | No | The signature data. |
TerminalId | body | string | No | The ID of the terminal used during the transaction |
TotalAmount | body | decimal | No | The total amount of the transaction. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/ReturnRequest HTTP/1.1
Host: booking.pufferdayspa.com
Content-Type: application/xml
Content-Length: length
<returnRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tripos.vantiv.com/2014/09/TriPos.Api">
<cardHolderPresentCode>Default</cardHolderPresentCode>
<clerkNumber>String</clerkNumber>
<laneId>0</laneId>
<referenceNumber>String</referenceNumber>
<shiftId>String</shiftId>
<ticketNumber>String</ticketNumber>
<configuration>
<allowPartialApprovals>false</allowPartialApprovals>
<checkForDuplicateTransactions>false</checkForDuplicateTransactions>
<currencyCode>None</currencyCode>
<marketCode>Default</marketCode>
</configuration>
<paymentType>None</paymentType>
<transactionAmount>0</transactionAmount>
<transactionId>String</transactionId>
</returnRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <returnResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tripos.vantiv.com/2014/09/TriPos.Api"> <_errors> <error> <developerMessage>String</developerMessage> <errorType>String</errorType> <exceptionMessage>String</exceptionMessage> <exceptionTypeFullName>String</exceptionTypeFullName> <exceptionTypeShortName>String</exceptionTypeShortName> <userMessage>String</userMessage> </error> </_errors> <_hasErrors>true</_hasErrors> <_links /> <_logs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </_logs> <_type>String</_type> <_warnings> <warning> <developerMessage>String</developerMessage> <userMessage>String</userMessage> </warning> </_warnings> <_processor> <expressResponseCode>String</expressResponseCode> <expressResponseMessage>String</expressResponseMessage> <hostResponseCode>String</hostResponseCode> <hostResponseMessage>String</hostResponseMessage> <logs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>String</d3p1:string> </logs> <processorLogs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>String</d3p1:string> </processorLogs> <processorRawResponse>String</processorRawResponse> <processorReferenceNumber>String</processorReferenceNumber> <processorRequestFailed>false</processorRequestFailed> <processorRequestWasApproved>false</processorRequestWasApproved> <processorResponseCode>Unknown</processorResponseCode> <processorResponseMessage>String</processorResponseMessage> <rawResponse>String</rawResponse> </_processor> <approvalNumber>String</approvalNumber> <isApproved>false</isApproved> <merchantId>String</merchantId> <statusCode>None</statusCode> <transactionDateTime>String</transactionDateTime> <transactionId>String</transactionId> <accountNumber>String</accountNumber> <binValue>String</binValue> <cardHolderName>String</cardHolderName> <cardLogo>String</cardLogo> <currencyCode>None</currencyCode> <entryMode>String</entryMode> <expirationMonth>String</expirationMonth> <expirationYear>String</expirationYear> <paymentType>None</paymentType> <pinVerified>false</pinVerified> <signature> <data>AA==</data> <format>String</format> <statusCode>Unknown</statusCode> </signature> <terminalId>String</terminalId> <totalAmount>0</totalAmount> </returnResponse>