Request a BIN lookup
This is the first required step. When you request the BIN lookup we will send you the bank details that will allow your customer to pay via open banking instead of their card.
Authentication
The request has to be authorised with a Bearer token received via our oAuth authentication endpoint, and attached to the Authorisation headers. It will look something like this (note the American spelling of Authorization)
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciO ... F_n1hAeBoplzOfQ
Find out more about API authentication
Request body
Schema: application/json
Details of the Transformer match you would like to initiate, in a JSON object.
field | required | type | length | description |
bin |
yes | integer | 6 or 8 digits | The first 6/8 digits of a card entered by the payer on your checkout |
Request example
- Sandbox
- Production
{
"bin": "123456"
}
{
"bin": "567890"
}
Responses
When a request is submitted, Transformer will return one of the following responses.
200 OK (Successful Match)
The BIN has been recognised and matched with the corresponding bank. The response includes the name and logo of the bank as well as the Transformer code that should be used in the payment initiation request.
An empty value will be returned in the Terms and Conditions field, which should currently be treated as a placeholder. We plan to include T&Cs in the response in Transformer version 1.1, which would allow the customer to avoid being redirected to Volt’s checkout when initiating the payment.
{
"transformerCode": "XYZ",
"bankLogo": "{asset_url}",
"bankName": "Barclays",
"termsAndConditions": "{Terms and conditions text}"
}
400 Bad request (Invalid BIN)
We cannot accept the payload from the request you sent because the BIN is invalid. It should be 6 or 8 digits long.
{
"exception": {
"message": "BIN must be 6 or 8 digits long"
}
}
401 Access denied
Your credentials were invalid, usually because a valid authentication token was not supplied. It may be that the token you used has expired. You will need to re-authenticate and then resubmit this request with updated credentials.
{
"exception": {
"message": "Unauthorized"
}
}
403 Not authorised
Although your credentials are correct, you do not have access to this product. You will be prompted to contact your account manager to enable Transformer.
{
"exception": {
"message": "We have matched BIN with the bank but you do not have access to this product. Please contact your account manager to enable Volt Transformer"
}
}
{
"exception": {
"message": "You do not have access to this product. Please contact your account manager to enable Volt Transformer"
}
}
404 BIN not matched
BIN has not been matched with any of the banks in our database, therefore payment initiation is not possible.
{
"exception": {
"message": "BIN could not be matched"
}
}
- On this page
- Responses