| POST | /api/v1/paymentAccount | Creates a card account token based on the given data | |
|---|---|---|---|
| POST | /api/v1/paymentAccount/credit | [Deprecated] Use /v1/paymentAccount instead |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Address | body | Address | No | The cardholder address information for the transaction. |
| ExpirationMonth | body | string | No | The expiration month. |
| ExpirationYear | body | string | No | The expiration year. |
| LaneId | body | int | No | The lane ID. |
| PaymentAccountReferenceNumber | body | string | No | The payment account reference number |
| InokeManualEntry | body | bool | No | Invokes manual card entry. |
| IsCscSupported | body | string | No | Invokes prompt for cardholder to enter card security code for manual keyed card entry. |
| Configuration | body | TokenRequestConfiguration | No | Any value included in this section will override the corresponding value set in the triPOS.config |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BillingAddress1 | form | string | No | The street address used for billing purposes. |
| BillingAddress2 | form | string | No | The street address used for billing purposes. |
| BillingCity | form | string | No | The name of the city used for billing purposes. |
| BillingEmail | form | string | No | The e-mail address used for billing purposes. |
| BillingName | form | string | No | The name used for billing purposes. |
| BillingPhone | form | string | No | The phone number used for billing purposes. The recommended format is (800)555-1212. |
| BillingPostalCode | form | string | No | The postal code used for billing purposes. |
| BillingState | form | 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 | form | string | No | The street address used for shipping purposes. |
| ShippingAddress2 | form | string | No | The street address used for shipping purposes. |
| ShippingCity | form | string | No | The name of the city used for shipping purposes. |
| ShippingEmail | form | string | No | The e-mail address used for shipping purposes. |
| ShippingName | form | string | No | The name used for shipping purposes. |
| ShippingPhone | form | string | No | The phone number used for shipping purposes. The recommended format is (800)555-1212 |
| ShippingPostalCode | form | string | No | The postal code used for shipping purposes. |
| ShippingState | form | 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 |
|---|---|---|---|---|
| CardReadRetries | form | int? | No | Number of retries in case of bad card read. The default value is 1. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BinValue | form | string | No | The BIN entry that matched the account number. |
| CardLogo | form | string | No | The card logo. Possible values are: Visa, Mastercard, Discover, Amex, Diners Club, JCB, Carte Blanche, Other. |
| CardHolderName | form | string | No | The cardholder name. |
| EntryMode | form | string | No | Description of how card was entered.Allowable Values
|
| ExpirationYear | form | string | No | The card's expiration year |
| ExpirationMonth | form | string | No | The card's expiration month |
| PaymentAccountId | form | string | No | the payment account ID. |
| PaymentAccountReferenceNumber | form | string | No | the payment account reference number. |
| TerminalId | form | string | No | The ID of the terminal used during the transaction. |
| AccountNumber | form | string | No | The credit card number with the value masked except for the last 4. |
| FsaCard | form | string | No | Indicates whether the card used was a FSA card. Note: Maybe = No BIN entry to determine if FSA. Allowable Values
|
| BinAttributes | form | Dictionary<string, bool> | No | Available binAttributes of card. more» |
| 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/CreatePaymentAccountCreditRequest HTTP/1.1
Host: tripos.vantiv.com
Content-Type: application/json
Content-Length: length
{"address":{"billingAddress1":"String","billingAddress2":"String","billingCity":"String","billingEmail":"String","billingName":"String","billingPhone":"String","billingPostalCode":"String","billingState":"String","shippingAddress1":"String","shippingAddress2":"String","shippingCity":"String","shippingEmail":"String","shippingName":"String","shippingPhone":"String","shippingPostalCode":"String","shippingState":"String"},"expirationMonth":"String","expirationYear":"String","laneId":0,"paymentAccountReferenceNumber":"String","invokeManualEntry":false,"isCscSupported":"String","configuration":{"cardReadRetries":0}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"binValue":"String","cardLogo":"String","cardHolderName":"String","entryMode":"String","expirationYear":"String","expirationMonth":"String","paymentAccountId":"String","paymentAccountReferenceNumber":"String","terminalId":"String","accountNumber":"String","fsaCard":"String","binAttributes":{"String":false},"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":[{"href":"/api/v1/paymentAccount/String","method":"PUT","rel":"paymentAccountCredit"},{"href":"/api/v1/paymentAccount/String","method":"DELETE","rel":"paymentAccountCredit"},{"href":"/api/v1/sale/String","method":"POST","rel":"paymentAccountSale"},{"href":"/api/v1/authorization/String","method":"POST","rel":"paymentAccountAuthorization"},{"href":"/api/v1/refund/String","method":"POST","rel":"paymentAccountRefund"}],"_logs":["String"],"_type":"String","_warnings":[{"developerMessage":"String","userMessage":"String"}]}