POST | /api/v1/balance | Requests a balance for a gift card. |
---|
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 |
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. |
BalanceAmount | body | decimal | No | The balance of the gift card. |
BalanceCurrencyCode | body | string | No | The balance currency code. |
BinValue | body | string | No | The BIN entry that matched the account number. |
CardLogo | body | string | No | The card logo (e.g. Visa, Mastercard, etc). |
EntryMode | body | string | No | Description of how card was entered: Keyed, Swiped, Chip. |
ExpirationYear | body | string | No | The card's expiration year. NOTE: Not all cards that support balance inquiry will have an expiration date. |
ExpirationMonth | body | string | No | The card's expiration month. NOTE: Not all cards that support balance inquiry will have an expiration date. |
PaymentType | body | string | No | Description of how card payment type: None, Credit, Debit. |
TerminalId | body | string | No | The ID of the terminal used during the transaction |
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/BalanceRequest HTTP/1.1
Host: booking.pufferdayspa.com
Content-Type: application/xml
Content-Length: length
<balanceRequest 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>
</balanceRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <balanceResponse 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> <balanceAmount>0</balanceAmount> <balanceCurrencyCode>String</balanceCurrencyCode> <binValue>String</binValue> <cardLogo>String</cardLogo> <entryMode>String</entryMode> <expirationMonth>String</expirationMonth> <expirationYear>String</expirationYear> <paymentType>String</paymentType> <terminalId>String</terminalId> </balanceResponse>