For convenience purposes only, Versapay can supply third party reference data to its partners and users. This data can be used to implement client-side tooling (e.g., fraud mitigation services), but it may not be redistributed. The accuracy and completeness of this third party data cannot be guaranteed and is for informational and convenience purposes only. Contact support@versapay.com for eligibility for reference data enablement.
1 of 4 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file
GET/api/reference_data/v1/response_codesRetrieve list of supported error response codesobserved#
GET/api/reference_data/v1/country_codesRetrieve list of countries and mapped provincesconformant#
GET/api/reference_data/v1/binGet Bank Identification Number (BIN) reference data#
GET/api/reference_data/v1/bin/{bin}Get Bank Identification Number (BIN) reference data#
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
version: 1.3.35
title: Versapay API Reference Reference Data API
contact:
name: Versapay Support
url: https://www.versapay.com/support
email: support@versapay.com
x-logo:
url: https://developers.versapay.com/images/logo.png
termsOfService: https://www.versapay.com/terms-of-use
license:
name: Copyright 2022 Versapay. All Rights Reserved.
description: For convenience purposes only, Versapay can supply third party reference data to its partners and users. This data can be used to implement client-side tooling (e.g., fraud mitigation services), but it may not be redistributed. The accuracy and completeness of this third party data cannot be guaranteed and is for informational and convenience purposes only. Contact support@versapay.com for eligibility for reference data enablement.
servers:
- url: https://secure.versapay.com
description: Production
- url: https://uat.versapay.com
description: UAT
tags:
- name: Reference Data
description: For convenience purposes only, Versapay can supply third party reference data to its partners and users. This data can be used to implement client-side tooling (e.g., fraud mitigation services), but it may not be redistributed. The accuracy and completeness of this third party data cannot be guaranteed and is for informational and convenience purposes only. Contact support@versapay.com for eligibility for reference data enablement.
paths:
/api/reference_data/v1/response_codes:
get:
tags:
- Reference Data
summary: Retrieve list of supported error response codes
description: 'View the list of possible error response codes that may be returned as part of a `response_code` key (and/or `gateway_error_*` related keys) in Order Transactions API. For instance the following response payload highlights a `211` response code:
```
{
"success": false,
"transaction": "8ATB...586N",
"authorization": "5dl1...ady5",
"gateway_token": "71...77",
"order": "12345",
"wallet": "2ZW4...8Q6V",
"credit_card": "CC4X...WXGX",
"transactions": [
{
"token": "...",
"amount_in_cents": 13151,
"type": "transaction",
"transaction_type": "request_money",
"state": "declined",
"created_at": "2023-11-14T12:13:29-05:00",
"step_types": [
"TransactionSteps::CardSaleStep"
],
"action": "sale",
"payment_method": "credit_card",
"wallet": "2ZW4...8Q6V",
"credit_card": "CC4X...WXGX",
"settlement_token": "MA4P...LD5P",
"currency": "usd",
"approved_amount_cents": 0,
"fee_amount_cents": 0,
"fee_exempt": true,
"gateway_response": {...},
"gateway_token": "7126377",
"gateway_authorization_response": "520.014: INVALID ACCOUNT NUMBER",
"gateway_error_scope": "tpro4",
"gateway_error_code": "520.014",
"gateway_error_message": "INVALID ACCOUNT NUMBER",
"authorization_response": "500",
"avs_response": "Z",
"credit_card_bin": "410040",
"credit_card_masked_number": "XXXXXXXXXXXX9700",
"credit_card_brand": "visa",
"credit_card_expiry": "082026"
}
],
"response_code": 211
}
```
The /api/reference_data/v1/response_codes payload reports `211` as follows:
```
{
"code": 211,
"description": "Account number invalid"
}
```'
responses:
'200':
description: Successful Operation
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ResponseCode'
operationId: getApiReferenceDataV1ResponseCodes
x-operation-id-source: derived
/api/reference_data/v1/country_codes:
get:
tags:
- Reference Data
summary: Retrieve list of countries and mapped provinces
description: Get the list of country codes and mapped provinces.
responses:
'200':
description: Successful Operation
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseCountryCodes'
operationId: getApiReferenceDataV1CountryCodes
x-operation-id-source: derived
/api/reference_data/v1/bin:
get:
tags:
- Reference Data
summary: Get Bank Identification Number (BIN) reference data
description: View the Bank Identification Number (BIN) reference data, including bank names, phone number, URLs, country, brand and card types.
responses:
'200':
description: Successful Operation
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/BIN'
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message
example: You need to sign in or create an account before continuing.
operationId: getApiReferenceDataV1Bin
x-operation-id-source: derived
/api/reference_data/v1/bin/{bin}:
get:
tags:
- Reference Data
summary: Get Bank Identification Number (BIN) reference data
description: View the Bank Identification Number (BIN) reference data for a given bin number, including bank names, phone number, URLs, and card types.
parameters:
- name: bin
in: path
description: Bank Identification Number. It has to have of at least 6 digits.
required: true
schema:
$ref: '#/components/schemas/BankIdentificationNumber'
responses:
'200':
description: Successful Operation
content:
application/json:
schema:
type: object
properties: null
$ref: '#/components/schemas/BIN'
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message
example: You need to sign in or create an account before continuing.
operationId: getApiReferenceDataV1BinByBin
x-operation-id-source: derived
components:
schemas:
BIN:
type: object
properties:
url:
$ref: '#/components/schemas/URL'
bin:
$ref: '#/components/schemas/BankIdentificationNumber'
phone:
$ref: '#/components/schemas/Phone'
type:
$ref: '#/components/schemas/BankCardType'
country:
$ref: '#/components/schemas/CountryAlpha3Code'
category:
$ref: '#/components/schemas/BankCardCategory'
brand:
$ref: '#/components/schemas/BankCardBrand'
bank:
$ref: '#/components/schemas/BankName'
URL:
type: string
format: url
example: https://www.example.com
ResponseCode:
type: object
properties:
code:
type: string
example: 100
description:
type: string
example: Approved
BankCardCategory:
type: string
example: PREPAID
Phone:
type: string
example: 503-685-4116
description: cannot begin with 1 or 0
BankCardBrand:
type: string
example: VISA
ResponseCountryCodes:
type: object
properties:
countries:
type: object
description: Mapping of country codes (ISO alpha-2) to country names
additionalProperties:
type: string
example: Canada
example:
CA: Canada
US: United States
AU: Australia
AF: Afghanistan
AX: Åland Islands
provinces:
type: object
description: Mapping of country codes to a list of provinces/states codes and names
additionalProperties:
type: array
items:
type: object
additionalProperties:
type: string
example:
NSW: New South Wales
example:
- ACT: Australian Capital Territory
- NSW: New South Wales
- VIC: Victoria
example:
CA:
- 'ON': Ontario
- QC: Quebec
US:
- CA: California
- NY: New York
- TX: Texas
AU:
- ACT: Australian Capital Territory
- NSW: New South Wales
- VIC: Victoria
BankIdentificationNumber:
type: string
maxLength: 8
minLength: 6
pattern: ^\d{6,8}$
example: '411111'
BankCardType:
type: string
example: CREDIT
CountryAlpha3Code:
type: string
pattern: ^[A-Z]{3}$
example: USA
maxLength: 3
minLength: 3
description: The uppercase 3-character ISO country code
BankName:
type: string
example: BANK OF VERSAPAY
x-tagGroups:
- name: Versapay API
description: Introduction to the Versapay API.
tags:
- Overview
- Versioning & Compatibility
- Environments
- Rate Limits
- Authentication
- Webhooks
- Watermark & Limit
- name: Collaborative AR
description: Operations available for Collaborative AR integration.
tags:
- Reference Data
- Onboarding
- Ecommerce Integration
- Orders
- Order Transactions
- Testing Order Transactions
- Gift Cards
- Card Present EMV
- Settlement Reporting
- Wallets
- Customers
- Invoices
- Autopay
- Invoicing Payments
- Divisions
- Notifications
- Collaboration
- File Imports