FastFaktura

FastFaktura API

v1 · 1.0.0

Integreer FastFaktura-facturatie in uw tools: klanten, facturen, verzending en PDF's via een eenvoudige REST API. Sandbox-accounts simuleren echte verzending en gebruiken Stripe in testmodus.

OpenAPI-specificatieBasis-URLhttps://app.fastfaktura.io/api/v1

Snelstart

Genereer een API-sleutel in uw accountinstellingen en roep de API aan met de X-Api-Key header.

curl
curl -X POST https://app.fastfaktura.io/api/v1/invoices \
  -H "X-Api-Key: ffk_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "1f0c4a9e-…",
    "currency": "EUR",
    "lines": [
      { "description": "Consulting", "quantity": 1, "unit_price_cents": 50000, "tax_rate": 20 }
    ]
  }'

Authenticatie

Elke aanvraag moet uw API-sleutel bevatten, ofwel in de X-Api-Key header of als Bearer-token. Beide methoden zijn gelijkwaardig.

X-Api-Key
curl https://app.fastfaktura.io/api/v1/clients \
  -H "X-Api-Key: ffk_xxxxxxxx"
Authorization: Bearer
curl https://app.fastfaktura.io/api/v1/clients \
  -H "Authorization: Bearer ffk_xxxxxxxx"

Endpoints

Bedrijf

get/api/v1/business

Profil entreprise

Antwoorden

  • 200OK
put/api/v1/business

Mise à jour du profil

Antwoorden

  • 200OK

Klanten

get/api/v1/clients

Liste des clients

Parameters

pagequeryinteger
qquerystringRecherche nom/email/téléphone

Antwoorden

  • 200OK
post/api/v1/clients

Création client

Antwoorden

  • 201Créé
get/api/v1/clients/{id}

Détail client

Antwoorden

  • 200OK
  • 404Introuvable
put/api/v1/clients/{id}

Édition client

Antwoorden

  • 200OK
delete/api/v1/clients/{id}

Archivage client (pas de suppression définitive)

Antwoorden

  • 200OK

Facturen

get/api/v1/invoices

Liste des factures

Parameters

pagequeryinteger
statusquerystring

Antwoorden

  • 200OK
post/api/v1/invoices

Création facture (avec lignes)

Aanvraagbody

VeldTypeOmschrijving
client_idvereistuuid
currencyvereiststring
due_datestring | null
notesstring | null
linesvereistInvoiceLine[]

Antwoorden

  • 201Créée
get/api/v1/invoices/{id}

Détail facture + lignes + événements

Antwoorden

  • 200OK
get/api/v1/invoices/{id}/pdf

PDF de la facture

Antwoorden

  • 200application/pdf
post/api/v1/invoices/{id}/send

Envoi (email / sms / lien), mode normal ou rappel

Aanvraagbody

VeldTypeOmschrijving
channelsvereiststring[]
reminderboolean

Antwoorden

  • 200OK (sandbox: envoi simulé)
get/api/v1/invoices/{id}/events

Timeline d'événements

Antwoorden

  • 200OK

Schema's

Structuur van de objecten die door de API worden geaccepteerd en geretourneerd.

Client

VeldTypeOmschrijving
iduuid
namestring
emailstring | null
phonestring | nullE.164
addressstring | null
countrystring | null
localestringfrennbsv
external_idstring | null
tagsstring[]
archived_atstring | null

InvoiceLine

VeldTypeOmschrijving
descriptionvereiststring
quantityvereistnumber
unit_price_centsvereistintegerCentimes
tax_ratevereistnumberPourcentage (ex. 20)

Invoice

VeldTypeOmschrijving
iduuid
numberstring
client_iduuid
currencystringEURUSDGBPNOKSEKDKK
subtotal_centsinteger
tax_centsinteger
total_centsinteger
statusstringdraftsentopenedpaidoverduecancelled
due_datestring | null
public_urlstring