FastFaktura

FastFaktura API

v1 · 1.0.0

Integrate FastFaktura invoicing into your tools: clients, invoices, sending and PDFs through a simple REST API. Sandbox accounts simulate real sending and use Stripe in test mode.

OpenAPI specificationBase URLhttps://app.fastfaktura.io/api/v1

Quickstart

Generate an API key from your account settings, then call the API with the 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 }
    ]
  }'

Authentication

Every request must include your API key, either in the X-Api-Key header or as a Bearer token. Both methods are equivalent.

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

Business

get/api/v1/business

Profil entreprise

Responses

  • 200OK
put/api/v1/business

Mise à jour du profil

Responses

  • 200OK

Clients

get/api/v1/clients

Liste des clients

Parameters

pagequeryinteger
qquerystringRecherche nom/email/téléphone

Responses

  • 200OK
post/api/v1/clients

Création client

Responses

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

Détail client

Responses

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

Édition client

Responses

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

Archivage client (pas de suppression définitive)

Responses

  • 200OK

Invoices

get/api/v1/invoices

Liste des factures

Parameters

pagequeryinteger
statusquerystring

Responses

  • 200OK
post/api/v1/invoices

Création facture (avec lignes)

Request body

FieldTypeDescription
client_idrequireduuid
currencyrequiredstring
due_datestring | null
notesstring | null
linesrequiredInvoiceLine[]

Responses

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

Détail facture + lignes + événements

Responses

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

PDF de la facture

Responses

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

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

Request body

FieldTypeDescription
channelsrequiredstring[]
reminderboolean

Responses

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

Timeline d'événements

Responses

  • 200OK

Schemas

Structure of the objects accepted and returned by the API.

Client

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

InvoiceLine

FieldTypeDescription
descriptionrequiredstring
quantityrequirednumber
unit_price_centsrequiredintegerCentimes
tax_raterequirednumberPourcentage (ex. 20)

Invoice

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