Ajouter un document
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"
}
Documents
Ajouter un document
POST
/
api
/
entity
/
v1
/
entities
/
{entityId}
/
documents
Ajouter un document
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"
}
Déclare un document supplémentaire pour une entité existante : un justificatif de domicile, des statuts constitutifs, une procuration ou tout autre document complémentaire. Les fichiers sont téléversés ensuite avec « Téléverser un justificatif ».
- Le document principal est toujours celui envoyé lors de la création de l’entité. Si vous envoyez isPrimary: true ici, l’API renvoie 400 VALIDATION_ERROR.
- L’entité ne doit pas avoir le statut IN_REVIEW, REJECTED, BLOCKED ou CLOSED.
application/problem+json avec un code stable. Catalogue complet : Statuts des entités et codes d’erreur.Autorisations
En-têtes
Jeton d'accès Bearer pour l'authentification. Ce jeton s'obtient via les endpoints Obtenir un jeton d'accès ou Actualiser le jeton d'accès. Il permet d'identifier votre compte commerçant et l'utilisateur à l'origine de l'action.
Exemple:
"Bearer <your_access_token>"
Paramètres de chemin
Corps
application/json
Consultez Types de documents et de justificatifs.
Options 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 Exemple:
"PROOF_OF_ADDRESS"
Réponse
Créé.
Type de document.
Options 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 Exemple:
"PROOF_OF_ADDRESS"
Dernière modification le 22 novembre 2026

