Pipeline
Corriger (étape REMEDIATE)
Applique patches, lookup SIREN optionnel, revalide.
POST
/
invoices
/
remediate
Corriger (étape REMEDIATE)
curl --request POST \
--url http://localhost:8081/api/v1/invoices/remediate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "factur-x",
"buyer": {
"legal_name": "ACME"
},
"patches": {
"buyer_siren": "552100554",
"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: {legal_name: 'ACME'},
patches: {buyer_siren: '552100554', 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/remediate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/api/v1/invoices/remediate"
payload = {
"format": "factur-x",
"buyer": { "legal_name": "ACME" },
"patches": {
"buyer_siren": "552100554",
"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/remediate",
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' => [
'legal_name' => 'ACME'
],
'patches' => [
'buyer_siren' => '552100554',
'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;
}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
Response
Invoice fusionnée + validation
⌘I
Corriger (étape REMEDIATE)
curl --request POST \
--url http://localhost:8081/api/v1/invoices/remediate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "factur-x",
"buyer": {
"legal_name": "ACME"
},
"patches": {
"buyer_siren": "552100554",
"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: {legal_name: 'ACME'},
patches: {buyer_siren: '552100554', 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/remediate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/api/v1/invoices/remediate"
payload = {
"format": "factur-x",
"buyer": { "legal_name": "ACME" },
"patches": {
"buyer_siren": "552100554",
"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/remediate",
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' => [
'legal_name' => 'ACME'
],
'patches' => [
'buyer_siren' => '552100554',
'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;
}