Ottenere i dettagli di un alias
curl --request POST \
--url https://api.stage.localpayment.com/api/payment/alias-detail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countryISOCode": "CO",
"aliasClassification": "Breb",
"aliasValue": "3668933567"
}
'import requests
url = "https://api.stage.localpayment.com/api/payment/alias-detail"
payload = {
"countryISOCode": "CO",
"aliasClassification": "Breb",
"aliasValue": "3668933567"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({countryISOCode: 'CO', aliasClassification: 'Breb', aliasValue: '3668933567'})
};
fetch('https://api.stage.localpayment.com/api/payment/alias-detail', 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/payment/alias-detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countryISOCode' => 'CO',
'aliasClassification' => 'Breb',
'aliasValue' => '3668933567'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stage.localpayment.com/api/payment/alias-detail"
payload := strings.NewReader("{\n \"countryISOCode\": \"CO\",\n \"aliasClassification\": \"Breb\",\n \"aliasValue\": \"3668933567\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stage.localpayment.com/api/payment/alias-detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countryISOCode\": \"CO\",\n \"aliasClassification\": \"Breb\",\n \"aliasValue\": \"3668933567\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/payment/alias-detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countryISOCode\": \"CO\",\n \"aliasClassification\": \"Breb\",\n \"aliasValue\": \"3668933567\"\n}"
response = http.request(request)
puts response.read_body{
"aliasType": "PHONE",
"aliasValue": "3668933567",
"bankName": "KAMIN S.A",
"firstName": "John",
"idType": "CC",
"idValue": "******0695",
"lastName": "Do**",
"status": "ACTIVE"
}{
"error": "DICE error: Keys not found or inactive",
"errorCode": "408"
}{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}{
"error": "Service not available for Breb in COL"
}Risorse
Ottenere i dettagli di un alias
POST
/
api
/
payment
/
alias-detail
Ottenere i dettagli di un alias
curl --request POST \
--url https://api.stage.localpayment.com/api/payment/alias-detail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countryISOCode": "CO",
"aliasClassification": "Breb",
"aliasValue": "3668933567"
}
'import requests
url = "https://api.stage.localpayment.com/api/payment/alias-detail"
payload = {
"countryISOCode": "CO",
"aliasClassification": "Breb",
"aliasValue": "3668933567"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({countryISOCode: 'CO', aliasClassification: 'Breb', aliasValue: '3668933567'})
};
fetch('https://api.stage.localpayment.com/api/payment/alias-detail', 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/payment/alias-detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countryISOCode' => 'CO',
'aliasClassification' => 'Breb',
'aliasValue' => '3668933567'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stage.localpayment.com/api/payment/alias-detail"
payload := strings.NewReader("{\n \"countryISOCode\": \"CO\",\n \"aliasClassification\": \"Breb\",\n \"aliasValue\": \"3668933567\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stage.localpayment.com/api/payment/alias-detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countryISOCode\": \"CO\",\n \"aliasClassification\": \"Breb\",\n \"aliasValue\": \"3668933567\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/payment/alias-detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countryISOCode\": \"CO\",\n \"aliasClassification\": \"Breb\",\n \"aliasValue\": \"3668933567\"\n}"
response = http.request(request)
puts response.read_body{
"aliasType": "PHONE",
"aliasValue": "3668933567",
"bankName": "KAMIN S.A",
"firstName": "John",
"idType": "CC",
"idValue": "******0695",
"lastName": "Do**",
"status": "ACTIVE"
}{
"error": "DICE error: Keys not found or inactive",
"errorCode": "408"
}{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}{
"error": "Service not available for Breb in COL"
}Verifica se un alias di payout è attivo e visualizza i dati mascherati del titolare prima di inviare un payout. Attualmente disponibile solo per la Colombia.
Consulta Verificare un alias di payout per il riferimento completo dei campi della risposta, le regole di mascheramento, le indicazioni sulla gestione degli errori e una demo interattiva.
Autorizzazioni
Intestazioni
Token di accesso Bearer per l'autenticazione. Questo token si ottiene dagli endpoint Ottenere il token di accesso o Rinnovare il token di accesso.
Corpo
application/json
Risposta
OK
Tipo di documento d'identità del titolare. Consulta Tipi di documento supportati.
Classificazione dell'alias risolto (documento d'identità, codice esercente, numero di cellulare, indirizzo e-mail o chiave alfanumerica). I valori confermati in produzione sono in maiuscolo, ad esempio PHONE; la stringa esatta per ciascuna delle altre categorie non è ancora confermata.
Ultima modifica il 22 novembre 2026

