Creare un alias per un conto virtuale
curl --request POST \
--url https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "C",
"value": "alias.example"
}
'import requests
url = "https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias"
payload = {
"type": "C",
"value": "alias.example"
}
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({type: 'C', value: 'alias.example'})
};
fetch('https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias', 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/virtual-account/{externalId}/alias",
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([
'type' => 'C',
'value' => 'alias.example'
]),
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/virtual-account/{externalId}/alias"
payload := strings.NewReader("{\n \"type\": \"C\",\n \"value\": \"alias.example\"\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/virtual-account/{externalId}/alias")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"C\",\n \"value\": \"alias.example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias")
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 \"type\": \"C\",\n \"value\": \"alias.example\"\n}"
response = http.request(request)
puts response.read_body{
"externalId": "94c6faee-0b35-4304-915b-e857981b4c01",
"alias": {
"type": "C",
"value": "alias.example"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias creation pending confirmation"
}
}
Alias del conto virtuale
Creare un alias per un conto virtuale
POST
/
api
/
virtual-account
/
{externalId}
/
alias
Creare un alias per un conto virtuale
curl --request POST \
--url https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "C",
"value": "alias.example"
}
'import requests
url = "https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias"
payload = {
"type": "C",
"value": "alias.example"
}
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({type: 'C', value: 'alias.example'})
};
fetch('https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias', 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/virtual-account/{externalId}/alias",
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([
'type' => 'C',
'value' => 'alias.example'
]),
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/virtual-account/{externalId}/alias"
payload := strings.NewReader("{\n \"type\": \"C\",\n \"value\": \"alias.example\"\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/virtual-account/{externalId}/alias")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"C\",\n \"value\": \"alias.example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/virtual-account/{externalId}/alias")
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 \"type\": \"C\",\n \"value\": \"alias.example\"\n}"
response = http.request(request)
puts response.read_body{
"externalId": "94c6faee-0b35-4304-915b-e857981b4c01",
"alias": {
"type": "C",
"value": "alias.example"
},
"status": {
"code": "100",
"description": "INPROGRESS",
"detail": "Alias creation pending confirmation"
}
}
Disponibilità: Argentina
Questa operazione consente agli esercenti di associare un alias personalizzato e facilmente leggibile (alias CVU) a un conto virtuale attivo esistente in Argentina.
Un alias sostituisce il CVU di 22 cifre con una stringa di testo breve e facile da ricordare, riducendo gli errori quando si condividono i dati di pagamento.
Informazioni
- L’alias deve essere univoco a livello nazionale. Non si tratta di una restrizione della piattaforma, ma di un requisito del sistema bancario argentino. Se un altro CVU usa già lo stesso alias, la richiesta viene rifiutata.
- Per aggiornare un alias, chiama questo stesso endpoint con il nuovo valore una volta trascorso il periodo di attesa obbligatorio di 24 ore.
- Una volta creato o aggiornato, l’alias non può essere modificato di nuovo per 24 ore. Non c’è un limite al numero totale di modifiche.
- L’alias viene attivato in modo asincrono. Una risposta
INPROGRESSnon significa che l’alias sia già attivo. Verifica l’attivazione con l’endpoint Ottenere lo stato di un conto virtuale.- Per controllare quali alias sono attualmente attivi su un conto virtuale, usa l’endpoint Ottenere lo stato di un conto virtuale.
Regole di formato dell’alias
- Sono ammessi solo lettere (a–z, A–Z), numeri (0–9) e punti (
.). - Spazi, trattini, trattini bassi, chiocciole (
@) e altri caratteri speciali non sono ammessi. - La lunghezza deve essere compresa tra 5 e 20 caratteri.
- Esempi validi:
alias.example,alias.example2026,alias.example.test
Best practice
- Usa alias significativi e coerenti per agevolare la riconciliazione interna e i flussi di assistenza.
- Registra le risposte di creazione degli alias e associale ai tuoi record interni delle transazioni per semplificare gli audit.
- Usa l’endpoint di verifica dello stato periodicamente o prima dell’incasso del pagamento per verificare che l’alias sia attivo e mappato correttamente.
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.
Parametri del percorso
Corpo
application/json
Risposta
Creato
Ultima modifica il 22 novembre 2026

