/api/v1/businessProfil entreprise
Svar
- 200OK
Integrer FastFaktura-fakturering i dine værktøjer: kunder, fakturaer, afsendelse og PDF'er via en enkel REST API. Sandbox-konti simulerer rigtig afsendelse og bruger Stripe i testtilstand.
https://app.fastfaktura.io/api/v1Generer en API-nøgle fra dine kontoindstillinger, og kald derefter API'et med X-Api-Key-headeren.
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 }
]
}'Hver anmodning skal indeholde din API-nøgle, enten i X-Api-Key-headeren eller som et Bearer-token. Begge metoder er ækvivalente.
curl https://app.fastfaktura.io/api/v1/clients \ -H "X-Api-Key: ffk_xxxxxxxx"
curl https://app.fastfaktura.io/api/v1/clients \ -H "Authorization: Bearer ffk_xxxxxxxx"
/api/v1/businessProfil entreprise
/api/v1/businessMise à jour du profil
/api/v1/clientsListe des clients
pagequery | integer | |
qquery | string | Recherche nom/email/téléphone |
/api/v1/clientsCréation client
/api/v1/clients/{id}Détail client
/api/v1/clients/{id}Édition client
/api/v1/clients/{id}Archivage client (pas de suppression définitive)
/api/v1/invoicesListe des factures
pagequery | integer | |
statusquery | string |
/api/v1/invoicesCréation facture (avec lignes)
| Felt | Type | Beskrivelse |
|---|---|---|
client_idpåkrævet | uuid | |
currencypåkrævet | string | |
due_date | string | null | |
notes | string | null | |
linespåkrævet | InvoiceLine[] |
/api/v1/invoices/{id}Détail facture + lignes + événements
/api/v1/invoices/{id}/pdfPDF de la facture
/api/v1/invoices/{id}/sendEnvoi (email / sms / lien), mode normal ou rappel
| Felt | Type | Beskrivelse |
|---|---|---|
channelspåkrævet | string[] | |
reminder | boolean |
/api/v1/invoices/{id}/eventsTimeline d'événements
Struktur for de objekter, der accepteres og returneres af API'et.
| Felt | Type | Beskrivelse |
|---|---|---|
id | uuid | |
name | string | |
email | string | null | |
phone | string | null | E.164 |
address | string | null | |
country | string | null | |
locale | string | frennbsv |
external_id | string | null | |
tags | string[] | |
archived_at | string | null |
| Felt | Type | Beskrivelse |
|---|---|---|
descriptionpåkrævet | string | |
quantitypåkrævet | number | |
unit_price_centspåkrævet | integer | Centimes |
tax_ratepåkrævet | number | Pourcentage (ex. 20) |
| Felt | Type | Beskrivelse |
|---|---|---|
id | uuid | |
number | string | |
client_id | uuid | |
currency | string | EURUSDGBPNOKSEKDKK |
subtotal_cents | integer | |
tax_cents | integer | |
total_cents | integer | |
status | string | draftsentopenedpaidoverduecancelled |
due_date | string | null | |
public_url | string |