API-referentie
Offertes
Offertes oplijsten, ophalen en in concept aanmaken.
Offertes oplijstenLink naar deze sectie
GET
/api/v1/offertesGeeft offertes terug, nieuwste eerst.
| Naam | Type | Verplicht | Uitleg |
|---|---|---|---|
limit | integer | nee | 1 tot 100, standaard 50 |
offset | integer | nee | Aantal over te slaan, standaard 0 |
status | string | nee | concept, verzonden, geaccepteerd, geweigerd of verlopen |
curl https://profactuur.be/api/v1/offertes \
-H "Authorization: Bearer $PROFACTUUR_KEY"Toon voorbeeldresponse
{
"data": [
{
"id": "7e8f...",
"status": "concept",
"totaal_incl": 726
}
],
"total": 1
}Offerte ophalenLink naar deze sectie
GET
/api/v1/offertes/{id}Geeft één offerte met regels terug.
| Naam | Type | Verplicht | Uitleg |
|---|---|---|---|
id | uuid | ja | ID van de offerte |
curl https://profactuur.be/api/v1/offertes/7e8f... \
-H "Authorization: Bearer $PROFACTUUR_KEY"Toon voorbeeldresponse
{
"data": {
"id": "7e8f...",
"nummer": "OF-2026-0003",
"status": "verzonden",
"regels": [
{
"omschrijving": "Webdesign",
"aantal": 8,
"eenheidsprijs": 75,
"btw_percentage": 21,
"totaal": 600
}
]
}
}Conceptofferte aanmakenLink naar deze sectie
POST
/api/v1/offertesMaakt een offerte in concept. Totalen en btw rekent ProFactuur zelf.
| Naam | Type | Verplicht | Uitleg |
|---|---|---|---|
klant_id | uuid | ja | Klant van het document |
regels | array | ja | Minstens één regel: omschrijving, aantal, eenheidsprijs, btw_percentage, of een product_id |
datum | date | nee | Standaard vandaag |
notities | string | nee | Vrije tekst onderaan het document |
geldig_tot | date | nee | Standaard 30 dagen na de datum |
curl -X POST https://profactuur.be/api/v1/offertes \
-H "Authorization: Bearer $PROFACTUUR_KEY" \
-H "Content-Type: application/json" \
-d '{"klant_id":"6f1c...","regels":[{"omschrijving":"Webdesign","aantal":8,"eenheidsprijs":75,"btw_percentage":21}]}'Toon voorbeeldresponse
{
"data": {
"id": "7e8f...",
"status": "concept",
"totaal_incl": 726
}
}