List invoices
curl --request GET \
--url https://{apiHost}/invoices \
--header 'x-api-key: <api-key>'import requests
url = "https://{apiHost}/invoices"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://{apiHost}/invoices', 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://{apiHost}/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{apiHost}/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{apiHost}/invoices")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{apiHost}/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"invoices": [
{
"currencyCode": "<string>",
"customer": {
"id": 123,
"name": "<string>",
"type": "<unknown>"
},
"dueDate": "<unknown>",
"id": 123,
"issuanceDate": "<unknown>",
"legalNumber": "<string>",
"lines": [
{
"article": {
"code": "<string>",
"id": 123,
"name": "<string>",
"unit": "<string>"
},
"description": "<string>",
"id": 123,
"quantity": "<unknown>",
"unitPrice": "<unknown>",
"vatRate": "<unknown>"
}
],
"netToPay": "<unknown>",
"reference": "<string>",
"site": {
"id": 123,
"name": "<string>"
},
"state": "<unknown>",
"totalBeforeTax": "<unknown>",
"type": "<unknown>"
}
]
}Invoicing
List invoices
Returns invoices, most recent first.
GET
/
invoices
List invoices
curl --request GET \
--url https://{apiHost}/invoices \
--header 'x-api-key: <api-key>'import requests
url = "https://{apiHost}/invoices"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://{apiHost}/invoices', 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://{apiHost}/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{apiHost}/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{apiHost}/invoices")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{apiHost}/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"invoices": [
{
"currencyCode": "<string>",
"customer": {
"id": 123,
"name": "<string>",
"type": "<unknown>"
},
"dueDate": "<unknown>",
"id": 123,
"issuanceDate": "<unknown>",
"legalNumber": "<string>",
"lines": [
{
"article": {
"code": "<string>",
"id": 123,
"name": "<string>",
"unit": "<string>"
},
"description": "<string>",
"id": 123,
"quantity": "<unknown>",
"unitPrice": "<unknown>",
"vatRate": "<unknown>"
}
],
"netToPay": "<unknown>",
"reference": "<string>",
"site": {
"id": 123,
"name": "<string>"
},
"state": "<unknown>",
"totalBeforeTax": "<unknown>",
"type": "<unknown>"
}
]
}Returns invoices, most recent first.
Response
{
"invoices": [
{
"id": 18,
"reference": "FA-0018",
"legalNumber": "2026-000118",
"type": "STANDARD",
"state": "DRAFT",
"issuanceDate": "2026-07-28",
"dueDate": "2026-08-27",
"currencyCode": "EUR",
"netToPay": 12750,
"customer": {
"id": 3,
"name": "MecMar",
"type": "CLIENT"
},
"site": {
"id": 1,
"name": "Atelier Nord"
},
"lines": [
{
"id": 41,
"quantity": 150,
"unitPrice": 85,
"vatRate": 0.2,
"article": {
"code": "CAM-PEEK",
"name": "Came PEEK"
}
}
]
}
]
}
Was this page helpful?