| GET | /api/v1/binQuery/{laneId} | Determine if a card falls into a specific BIN range such as prepaid, healthcare, or debit | Use the GET /binQuery/{laneId} endpoint to determine if a card falls into a specific BIN range such as prepaid, healthcare, or debit. The BIN query endpoint always makes an online call to the host in order to ensure the most up-to-date BIN information. If the card swiped or inserted is not found in the online BIN table, this endpoint returns a 404 Not Found HTTP response. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LaneId | path | int | Yes | The lane ID. |
| InokeManualEntry | query | boolean | No | The flag that invokes manual entry directly. |
| IsCscSupported | query | string | No | Invokes prompt for cardholder to enter card security code for manual keyed card entry. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Check | form | bool | No | Check card indicator |
| Commercial | form | bool | No | Commercial card indicator |
| Credit | form | bool | No | Credit card indicator |
| Debit | form | bool | No | Debit card indicator |
| Ebt | form | bool | No | EBT card indicator |
| Fleet | form | bool | No | Fleet card indicator |
| Gift | form | bool | No | Gift card indicator |
| HsaFsa | form | bool | No | HSA/FSA card indicator |
| InternationalBin | form | bool | No | International BIN indicator |
| PinLessBillPay | form | bool | No | PINless Bill Pay indicator |
| Prepaid | form | bool | No | Prepaid card indicator |
| Wic | form | bool | No | WIC card indicator |
| DurbinBinRegulation | form | string | No | Durbin BIN Regulation indicatorAllowable Values
|
| Processor | form | Processor | No | Response information from the processor. |
| 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/BinQueryRequest HTTP/1.1
Host: tripos.vantiv.com
Content-Type: application/json
Content-Length: length
{"laneId":0,"invokeManualEntry":false,"isCscSupported":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"check":false,"commercial":false,"credit":false,"debit":false,"ebt":false,"fleet":false,"gift":false,"hsaFsa":false,"internationalBin":false,"pinlessBillPay":false,"prepaid":false,"wic":false,"durbinBinRegulation":"String","_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"},"_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"}]}