Pipeline
Valider (étape VALIDATE)
Contrôles mentions 2026 + format. Corps structuré buyer / lines recommandé.
POST
/
invoices
/
validate
Valider (étape VALIDATE)
curl --request POST \
--url http://localhost:8081/api/v1/invoices/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "factur-x",
"buyer": {
"siren": "552100554",
"legal_name": "ACME SAS"
},
"seller": {
"siren": "512345678",
"legal_name": "Dupont Conseil"
},
"operation_category": "SERVICES",
"issue_date": "2026-07-17",
"service_date": "2026-07-17",
"lines": [
{
"description": "Conseil",
"quantity": 1,
"unit_price_ht": 100,
"vat_rate": 20
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
format: 'factur-x',
buyer: {siren: '552100554', legal_name: 'ACME SAS'},
seller: {siren: '512345678', legal_name: 'Dupont Conseil'},
operation_category: 'SERVICES',
issue_date: '2026-07-17',
service_date: '2026-07-17',
lines: [{description: 'Conseil', quantity: 1, unit_price_ht: 100, vat_rate: 20}]
})
};
fetch('http://localhost:8081/api/v1/invoices/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/api/v1/invoices/validate"
payload = {
"format": "factur-x",
"buyer": {
"siren": "552100554",
"legal_name": "ACME SAS"
},
"seller": {
"siren": "512345678",
"legal_name": "Dupont Conseil"
},
"operation_category": "SERVICES",
"issue_date": "2026-07-17",
"service_date": "2026-07-17",
"lines": [
{
"description": "Conseil",
"quantity": 1,
"unit_price_ht": 100,
"vat_rate": 20
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8081",
CURLOPT_URL => "http://localhost:8081/api/v1/invoices/validate",
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([
'format' => 'factur-x',
'buyer' => [
'siren' => '552100554',
'legal_name' => 'ACME SAS'
],
'seller' => [
'siren' => '512345678',
'legal_name' => 'Dupont Conseil'
],
'operation_category' => 'SERVICES',
'issue_date' => '2026-07-17',
'service_date' => '2026-07-17',
'lines' => [
[
'description' => 'Conseil',
'quantity' => 1,
'unit_price_ht' => 100,
'vat_rate' => 20
]
]
]),
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;
}{
"valid": true,
"score": 123,
"errors": [
"<string>"
],
"warnings": [
"<string>"
],
"checks": [
{
"code": "<string>",
"label": "<string>",
"ok": true
}
],
"suggestions": [
{}
],
"mode": "sandbox"
}Authorizations
bearerAuthapiKey
Sandbox : ip_sandbox_demo — Live : ip_live_…
Body
application/json
Available options:
factur-x, ubl, cii Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
GOODS, SERVICES, MIXED Show child attributes
Show child attributes
Show child attributes
Show child attributes
Utilisé par /remediate
Show child attributes
Show child attributes
Slug PA (emit)
Mode legacy — préférer body structuré
Show child attributes
Show child attributes
⌘I
Valider (étape VALIDATE)
curl --request POST \
--url http://localhost:8081/api/v1/invoices/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "factur-x",
"buyer": {
"siren": "552100554",
"legal_name": "ACME SAS"
},
"seller": {
"siren": "512345678",
"legal_name": "Dupont Conseil"
},
"operation_category": "SERVICES",
"issue_date": "2026-07-17",
"service_date": "2026-07-17",
"lines": [
{
"description": "Conseil",
"quantity": 1,
"unit_price_ht": 100,
"vat_rate": 20
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
format: 'factur-x',
buyer: {siren: '552100554', legal_name: 'ACME SAS'},
seller: {siren: '512345678', legal_name: 'Dupont Conseil'},
operation_category: 'SERVICES',
issue_date: '2026-07-17',
service_date: '2026-07-17',
lines: [{description: 'Conseil', quantity: 1, unit_price_ht: 100, vat_rate: 20}]
})
};
fetch('http://localhost:8081/api/v1/invoices/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/api/v1/invoices/validate"
payload = {
"format": "factur-x",
"buyer": {
"siren": "552100554",
"legal_name": "ACME SAS"
},
"seller": {
"siren": "512345678",
"legal_name": "Dupont Conseil"
},
"operation_category": "SERVICES",
"issue_date": "2026-07-17",
"service_date": "2026-07-17",
"lines": [
{
"description": "Conseil",
"quantity": 1,
"unit_price_ht": 100,
"vat_rate": 20
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8081",
CURLOPT_URL => "http://localhost:8081/api/v1/invoices/validate",
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([
'format' => 'factur-x',
'buyer' => [
'siren' => '552100554',
'legal_name' => 'ACME SAS'
],
'seller' => [
'siren' => '512345678',
'legal_name' => 'Dupont Conseil'
],
'operation_category' => 'SERVICES',
'issue_date' => '2026-07-17',
'service_date' => '2026-07-17',
'lines' => [
[
'description' => 'Conseil',
'quantity' => 1,
'unit_price_ht' => 100,
'vat_rate' => 20
]
]
]),
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;
}{
"valid": true,
"score": 123,
"errors": [
"<string>"
],
"warnings": [
"<string>"
],
"checks": [
{
"code": "<string>",
"label": "<string>",
"ok": true
}
],
"suggestions": [
{}
],
"mode": "sandbox"
}