/api/v1/businessProfil entreprise
Svar
- 200OK
Integrer FastFaktura-fakturering i verktøyene dine: kunder, fakturaer, utsendelser og PDF-er via et enkelt REST-API. Sandbox-kontoer simulerer reelle utsendelser og bruker Stripe i testmodus.
https://app.fastfaktura.io/api/v1Generer en API-nøkkel fra kontoinnstillingene dine, og kall 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 forespørsel må inkludere API-nøkkelen din, enten i X-Api-Key-headeren eller som Bearer-token. Begge metodene er likeverdige.
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åkrevd | uuid | |
currencypåkrevd | string | |
due_date | string | null | |
notes | string | null | |
linespåkrevd | 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åkrevd | string[] | |
reminder | boolean |
/api/v1/invoices/{id}/eventsTimeline d'événements
Struktur for objektene som API-et godtar og returnerer.
| 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åkrevd | string | |
quantitypåkrevd | number | |
unit_price_centspåkrevd | integer | Centimes |
tax_ratepåkrevd | 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 |