Obtenir les informations du BIN
curl --request GET \
--url https://api.stage.localpayment.com/api/resources/bin-validation \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/resources/bin-validation"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.localpayment.com/api/resources/bin-validation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stage.localpayment.com/api/resources/bin-validation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stage.localpayment.com/api/resources/bin-validation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stage.localpayment.com/api/resources/bin-validation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/resources/bin-validation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"bin": "40000000",
"bank": "INTL HDQTRS-CENTER OWNED",
"card": "VISA",
"type": "CREDIT",
"level": "TRADITIONAL",
"country": "United States of America",
"countryCode": "US",
"website": "",
"phone": "",
"valid": true
}
Services de validation
Obtenir les informations d'un BIN
GET
/
api
/
resources
/
bin-validation
Obtenir les informations du BIN
curl --request GET \
--url https://api.stage.localpayment.com/api/resources/bin-validation \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/resources/bin-validation"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.localpayment.com/api/resources/bin-validation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stage.localpayment.com/api/resources/bin-validation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stage.localpayment.com/api/resources/bin-validation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stage.localpayment.com/api/resources/bin-validation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/resources/bin-validation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"bin": "40000000",
"bank": "INTL HDQTRS-CENTER OWNED",
"card": "VISA",
"type": "CREDIT",
"level": "TRADITIONAL",
"country": "United States of America",
"countryCode": "US",
"website": "",
"phone": "",
"valid": true
}
Validez un numéro d’identification bancaire (BIN) pour vérifier la validité d’une carte et obtenir des informations clés comme l’émetteur, la marque, le type et le pays. Utilisez cette vérification pour éviter les échecs de paiement dus à des données de carte non valides.
À noter
Le champ countryCode de la réponse est au format ISO-3166-1 Alpha-2. Veillez à convertir cette valeur au format ISO-3166-1 Alpha-3 avant de la transmettre à d’autres endpoints de notre système.
Autorisations
En-têtes
Jeton d'accès Bearer pour l'authentification. Ce jeton s'obtient via les endpoints Obtenir un jeton d'accès ou Actualiser le jeton d'accès.
Réponse
OK
Dernière modification le 22 novembre 2026

