Agregar 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"
}
Documentos
Agregar un documento
POST
/
api
/
entity
/
v1
/
entities
/
{entityId}
/
documents
Agregar 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"
}
Declara un documento adicional para una entidad existente: un comprobante de domicilio, los estatutos de constitución, un poder notarial o cualquier otro documento de respaldo. Los archivos se cargan posteriormente con Cargar una prueba.
- El documento principal es siempre el documento enviado al crear la entidad. Enviar isPrimary: true aquí devuelve 400 VALIDATION_ERROR.
- La entidad no debe estar en estado IN_REVIEW, REJECTED, BLOCKED ni CLOSED.
application/problem+json con un code estable. Catálogo completo: Estados de las entidades y códigos de error.Autorizaciones
Encabezados
Token de acceso Bearer para la autenticación. Este token se obtiene de los endpoints Get Access Token o Refresh Access Token. Tu cuenta de comerciante y el usuario que actúa se determinan a partir de él.
Ejemplo:
"Bearer <your_access_token>"
Parámetros de ruta
Cuerpo
application/json
Consulta Tipos de documentos y comprobantes.
Opciones disponibles:
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 Ejemplo:
"PROOF_OF_ADDRESS"
Respuesta
Creado.
Tipo de documento.
Opciones disponibles:
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 Ejemplo:
"PROOF_OF_ADDRESS"
Última modificación el 10 de noviembre de 2026

