Aggiungere un documento
curl --request POST \
--url https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "PROOF_OF_ADDRESS",
"id": "POA-0001",
"issuingCountry": "BRA"
}
'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents"
payload = {
"type": "PROOF_OF_ADDRESS",
"id": "POA-0001",
"issuingCountry": "BRA"
}
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: 'PROOF_OF_ADDRESS', id: 'POA-0001', issuingCountry: 'BRA'})
};
fetch('https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents', 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/entity/v1/entities/{entityId}/documents",
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' => 'PROOF_OF_ADDRESS',
'id' => 'POA-0001',
'issuingCountry' => 'BRA'
]),
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/entity/v1/entities/{entityId}/documents"
payload := strings.NewReader("{\n \"type\": \"PROOF_OF_ADDRESS\",\n \"id\": \"POA-0001\",\n \"issuingCountry\": \"BRA\"\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/entity/v1/entities/{entityId}/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"PROOF_OF_ADDRESS\",\n \"id\": \"POA-0001\",\n \"issuingCountry\": \"BRA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents")
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\": \"PROOF_OF_ADDRESS\",\n \"id\": \"POA-0001\",\n \"issuingCountry\": \"BRA\"\n}"
response = http.request(request)
puts response.read_body{
"documentId": "e0ea9515-442e-4bc5-bc82-b8d278255c37",
"entityId": "5aced5da-40c1-4bec-85ff-c8cd1bcb4526",
"type": "PROOF_OF_ADDRESS",
"id": "POA-0001",
"issuingCountry": "BRA",
"issueDate": null,
"expirationDate": null,
"isPrimary": false,
"status": "PENDING",
"metadata": null,
"proofs": [],
"createdAt": "2024-01-15T17:03:11Z",
"updatedAt": "2024-01-15T17:03:11Z"
}
Documenti
Aggiungere un documento
POST
/
api
/
entity
/
v1
/
entities
/
{entityId}
/
documents
Aggiungere un documento
curl --request POST \
--url https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "PROOF_OF_ADDRESS",
"id": "POA-0001",
"issuingCountry": "BRA"
}
'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents"
payload = {
"type": "PROOF_OF_ADDRESS",
"id": "POA-0001",
"issuingCountry": "BRA"
}
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: 'PROOF_OF_ADDRESS', id: 'POA-0001', issuingCountry: 'BRA'})
};
fetch('https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents', 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/entity/v1/entities/{entityId}/documents",
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' => 'PROOF_OF_ADDRESS',
'id' => 'POA-0001',
'issuingCountry' => 'BRA'
]),
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/entity/v1/entities/{entityId}/documents"
payload := strings.NewReader("{\n \"type\": \"PROOF_OF_ADDRESS\",\n \"id\": \"POA-0001\",\n \"issuingCountry\": \"BRA\"\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/entity/v1/entities/{entityId}/documents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"PROOF_OF_ADDRESS\",\n \"id\": \"POA-0001\",\n \"issuingCountry\": \"BRA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents")
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\": \"PROOF_OF_ADDRESS\",\n \"id\": \"POA-0001\",\n \"issuingCountry\": \"BRA\"\n}"
response = http.request(request)
puts response.read_body{
"documentId": "e0ea9515-442e-4bc5-bc82-b8d278255c37",
"entityId": "5aced5da-40c1-4bec-85ff-c8cd1bcb4526",
"type": "PROOF_OF_ADDRESS",
"id": "POA-0001",
"issuingCountry": "BRA",
"issueDate": null,
"expirationDate": null,
"isPrimary": false,
"status": "PENDING",
"metadata": null,
"proofs": [],
"createdAt": "2024-01-15T17:03:11Z",
"updatedAt": "2024-01-15T17:03:11Z"
}
Dichiara un documento aggiuntivo per un’entità esistente: una prova di residenza, un atto costitutivo, una procura o qualsiasi altro documento giustificativo. I file si caricano in seguito con “Caricare un documento probatorio”.
- Il documento principale è sempre quello inviato al momento della creazione dell’entità. Se qui invii isPrimary: true, la risposta è 400 VALIDATION_ERROR.
- L’entità non deve trovarsi nello stato IN_REVIEW, REJECTED, BLOCKED o CLOSED.
application/problem+json con un code stabile. Catalogo completo: Stati delle entità e codici di errore.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. Da esso vengono ricavati il tuo conto esercente e l'utente che esegue l'operazione.
Esempio:
"Bearer <your_access_token>"
Parametri del percorso
Corpo
application/json
Consulta “Tipi di documenti e documenti probatori”.
Opzioni disponibili:
DNI, NATIONAL_ID, DRIVER_LICENSE, PASSPORT, CE, CC, CUIT, CUIL, RFC, CURP, CPF, CNPJ, RUC, NIT, TAX_ID, ARTICLES_OF_INCORPORATION, POWER_OF_ATTORNEY, TAX_CERTIFICATE, PAYSLIP, ARCA_REGISTRATION, PROOF_OF_ADDRESS, PROOF_OF_FUNDS, OTHER Esempio:
"PROOF_OF_ADDRESS"
Risposta
Creato.
Tipo di documento.
Opzioni disponibili:
DNI, NATIONAL_ID, DRIVER_LICENSE, PASSPORT, CE, CC, CUIT, CUIL, RFC, CURP, CPF, CNPJ, RUC, NIT, TAX_ID, ARTICLES_OF_INCORPORATION, POWER_OF_ATTORNEY, TAX_CERTIFICATE, PAYSLIP, ARCA_REGISTRATION, PROOF_OF_ADDRESS, PROOF_OF_FUNDS, OTHER Esempio:
"PROOF_OF_ADDRESS"
Stato derivato del documento: EXPIRED se expirationDate è già passata, REJECTED se un documento probatorio attivo è stato rifiutato, VERIFIED se tutti i documenti probatori attivi sono approvati, altrimenti PENDING.
Opzioni disponibili:
PENDING, VERIFIED, REJECTED, EXPIRED Esempio:
"PENDING"
Ultima modifica il 22 novembre 2026

