POST | /api/v1/sale/{paymentAccountId} | Creates a new payment account sale based on the passed in amounts. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
PaymentAccountId | path | string | Yes | The payment account ID. |
Address | body | Address | No | The cardholder address information for the transaction. |
Configuration | body | RequestConfiguration | 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 of the transaction. This amount is added to the TotalAmount before the cardholder is charged |
TipAmount | body | decimal | No | The tip amount of the transaction. This amount is added to the TotalAmount before the cardholder is charged. |
TransactionAmount | body | decimal | No | The total transaction amount. This is the amount of funds to move on the card |
LaneId | body | int | No | Specifies which lane to use for the card sale. |
ClerkNumber | body | string | No | An optional clerk number for reference. |
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 |
---|---|---|---|---|
BillingAddress1 | body | string | No | The street address used for billing purposes. |
BillingAddress2 | body | string | No | The street address used for billing purposes. |
BillingCity | body | string | No | The name of the city used for billing purposes. |
BillingEmail | body | string | No | The e-mail address used for billing purposes. |
BillingName | body | string | No | The name used for billing purposes. |
BillingPhone | body | string | No | The phone number used for billing purposes. The recommended format is (800)555-1212. |
BillingPostalCode | body | string | No | The postal code used for billing purposes. |
BillingState | body | string | No | The name of the state used for billing purposes. This value may be any 2 character state code or the full state name. |
ShippingAddress1 | body | string | No | The street address used for shipping purposes. |
ShippingAddress2 | body | string | No | The street address used for shipping purposes. |
ShippingCity | body | string | No | The name of the city used for shipping purposes. |
ShippingEmail | body | string | No | The e-mail address used for shipping purposes. |
ShippingName | body | string | No | The name used for shipping purposes. |
ShippingPhone | body | string | No | The phone number used for shipping purposes. The recommended format is (800)555-1212 |
ShippingPostalCode | body | string | No | The postal code used for shipping purposes. |
ShippingState | body | string | No | The name of the state used for shipping purposes. This value may be any 2 character state code or the full state name. |
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 |
---|---|---|---|---|
PaymentAccountId | body | string | No | The payment account ID. |
PaymentAccountReferenceNumber | body | string | No | The payment account reference number. |
AvsResponseCode | body | string | No | The AVS response code. |
ApprovedAmount | body | decimal | No | The amount approved by the processor. This is the actual amount that will be charged or credited. |
CardLogo | body | string | No | The card logo. Possible values are: Visa, Mastercard, Discover, Amex, Diners Club, JCB, Carte Blanche, Other. |
ConvenienceFeeAmount | body | decimal | No | The convenience fee added to the transaction |
SubTotalAmount | body | decimal | No | The original amount sent for the transaction. |
TipAmount | body | decimal | No | The tip amount added to the transaction. |
TerminalId | body | string | No | The ID of the terminal used during the transaction |
TotalAmount | body | decimal | No | The total amount of the transaction. |
ReferenceNumber | body | string | No | The reference number. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ApprovalNumber | body | string | No | Approval number from the processor. Depending on card type and processor an approval number might not be returned. |
IsApproved | body | bool | No | Set to true if the host approved the transaction. |
Processor | body | Processor | No | Response information from the processor. |
StatusCode | body | TransactionFlowStatus | No | The status code for the transaction.Allowable Values
|
TransactionDateTime | body | string | No | Transaction date/time in ISO8601 format |
TransactionId | body | string | No | The transaction ID from the processor |
MerchantId | body | string | No | The Merchant used to process 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/PaymentAccountSaleRequest HTTP/1.1
Host: booking.pufferdayspa.com
Content-Type: application/xml
Content-Length: length
<paymentAccountSaleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tripos.vantiv.com/2014/09/TriPos.Api">
<address>
<billingAddress1>String</billingAddress1>
<billingAddress2>String</billingAddress2>
<billingCity>String</billingCity>
<billingEmail>String</billingEmail>
<billingName>String</billingName>
<billingPhone>String</billingPhone>
<billingPostalCode>String</billingPostalCode>
<billingState>String</billingState>
<shippingAddress1>String</shippingAddress1>
<shippingAddress2>String</shippingAddress2>
<shippingCity>String</shippingCity>
<shippingEmail>String</shippingEmail>
<shippingName>String</shippingName>
<shippingPhone>String</shippingPhone>
<shippingPostalCode>String</shippingPostalCode>
<shippingState>String</shippingState>
</address>
<clerkNumber>String</clerkNumber>
<configuration>
<allowPartialApprovals>false</allowPartialApprovals>
<checkForDuplicateTransactions>false</checkForDuplicateTransactions>
<currencyCode>None</currencyCode>
<marketCode>Default</marketCode>
</configuration>
<convenienceFeeAmount>0</convenienceFeeAmount>
<laneId>0</laneId>
<paymentAccountId>String</paymentAccountId>
<referenceNumber>String</referenceNumber>
<shiftId>String</shiftId>
<ticketNumber>String</ticketNumber>
<tipAmount>0</tipAmount>
<transactionAmount>0</transactionAmount>
</paymentAccountSaleRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <paymentAccountSaleResponse 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> <approvedAmount>0</approvedAmount> <avsResponseCode>String</avsResponseCode> <cardLogo>String</cardLogo> <convenienceFeeAmount>0</convenienceFeeAmount> <paymentAccountId>String</paymentAccountId> <paymentAccountReferenceNumber>String</paymentAccountReferenceNumber> <referenceNumber>String</referenceNumber> <subTotalAmount>0</subTotalAmount> <terminalId>String</terminalId> <tipAmount>0</tipAmount> <totalAmount>0</totalAmount> </paymentAccountSaleResponse>