Actualizar un documento
curl --request PATCH \
--url https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"issueDate": "2024-01-15",
"expirationDate": "2034-01-15",
"metadata": {
"tin": "formatted"
}
}
'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}"
payload = {
"issueDate": "2024-01-15",
"expirationDate": "2034-01-15",
"metadata": { "tin": "formatted" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
issueDate: '2024-01-15',
expirationDate: '2034-01-15',
metadata: {tin: 'formatted'}
})
};
fetch('https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}', 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/{docId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'issueDate' => '2024-01-15',
'expirationDate' => '2034-01-15',
'metadata' => [
'tin' => 'formatted'
]
]),
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/{docId}"
payload := strings.NewReader("{\n \"issueDate\": \"2024-01-15\",\n \"expirationDate\": \"2034-01-15\",\n \"metadata\": {\n \"tin\": \"formatted\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"issueDate\": \"2024-01-15\",\n \"expirationDate\": \"2034-01-15\",\n \"metadata\": {\n \"tin\": \"formatted\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"issueDate\": \"2024-01-15\",\n \"expirationDate\": \"2034-01-15\",\n \"metadata\": {\n \"tin\": \"formatted\"\n }\n}"
response = http.request(request)
puts response.read_body{
"documentId": "5ca3e868-2b76-4390-b25a-5d10c0db8516",
"entityId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"type": "TAX_ID",
"id": "00.000.000/0001-00",
"issuingCountry": "BRA",
"issueDate": "2024-01-15",
"expirationDate": "2034-01-15",
"isPrimary": false,
"status": "PENDING",
"metadata": {
"tin": "formatted"
},
"proofs": [],
"createdAt": "2024-01-15T17:18:54Z",
"updatedAt": "2024-01-15T17:19:32Z"
}
Documentos
Actualizar un documento
PATCH
/
api
/
entity
/
v1
/
entities
/
{entityId}
/
documents
/
{docId}
Actualizar un documento
curl --request PATCH \
--url https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"issueDate": "2024-01-15",
"expirationDate": "2034-01-15",
"metadata": {
"tin": "formatted"
}
}
'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}"
payload = {
"issueDate": "2024-01-15",
"expirationDate": "2034-01-15",
"metadata": { "tin": "formatted" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
issueDate: '2024-01-15',
expirationDate: '2034-01-15',
metadata: {tin: 'formatted'}
})
};
fetch('https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}', 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/{docId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'issueDate' => '2024-01-15',
'expirationDate' => '2034-01-15',
'metadata' => [
'tin' => 'formatted'
]
]),
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/{docId}"
payload := strings.NewReader("{\n \"issueDate\": \"2024-01-15\",\n \"expirationDate\": \"2034-01-15\",\n \"metadata\": {\n \"tin\": \"formatted\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"issueDate\": \"2024-01-15\",\n \"expirationDate\": \"2034-01-15\",\n \"metadata\": {\n \"tin\": \"formatted\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/documents/{docId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"issueDate\": \"2024-01-15\",\n \"expirationDate\": \"2034-01-15\",\n \"metadata\": {\n \"tin\": \"formatted\"\n }\n}"
response = http.request(request)
puts response.read_body{
"documentId": "5ca3e868-2b76-4390-b25a-5d10c0db8516",
"entityId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"type": "TAX_ID",
"id": "00.000.000/0001-00",
"issuingCountry": "BRA",
"issueDate": "2024-01-15",
"expirationDate": "2034-01-15",
"isPrimary": false,
"status": "PENDING",
"metadata": {
"tin": "formatted"
},
"proofs": [],
"createdAt": "2024-01-15T17:18:54Z",
"updatedAt": "2024-01-15T17:19:32Z"
}
Actualiza los datos de emisión de un documento declarado. type, id e isPrimary son inmutables.
- Cambiar los datos de un documento restablece a PENDING sus pruebas APPROVED: Localpayment las revisa de nuevo.
- Para cambiar el tipo o el número, agrega un documento nuevo y elimina el anterior.
application/problem+json con un code estable. Catálogo completo: Entity Statuses and Error Codes.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
Respuesta
OK.
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:
"TAX_ID"
Última modificación el 10 de noviembre de 2026

