Skip to content
📢 Kafinea is a compatible solution for electronic invoicing! Learn more ➔
kafinea logo svg

Kafinea

  • Features
        • Finance
          • Accounting
          • Audits & KPIs
          • Invoicing
          • Purchases
        • Management
          • Documents
          • Inventory Management
          • Maintenance
          • Project Management
        • HR
          • Absence Management
          • Employees
          • Recruitment
          • Timesheets
        • Customer Service
          • Interventions
          • Service Contracts
          • Tickets
          • Warranty Tracking
        • Sales
          • CRM
          • Points of Sale
          • Sales Automation
          • Subscriptions
        • Cross-Features
          • API
          • Extranet
          • Electronic Signature
          • Workflows
  • Pricing
  • Login
  • Discover the demo
📢 Kafinea is electronic invoicing compatible! ➔
kafinea logo svg
Kafinea

Marketing

1
  • Leads

Sales

14
  • Customer purchase orders
  • Customer accounts
  • Customer Quotes
  • Customer credit notes
  • Company Search (Sirene)
  • Margins in quotes
  • Invoicing
    • Classic Invoicing
    • Progress Invoicing
    • Issue an electronic invoice
    • Recurring invoicing
    • Invoicing Article Consumption
  • Payments
    • Customer payments
    • Linking a payment to one or more invoices
  • Price list
    • Price list administrator guide

Purchases

5
  • Supplier invoices
  • Supplier Purchase Orders
  • Suppliers
  • Supplier Credits
  • Receiving an Electronic Invoice

Catalog

8
  • Units of measure
  • Products
  • Services
  • Sourcing Management
  • The Purchase Order Assistant
  • Generic products
  • Product kits
  • Catalog margin analysis

Finance

11
  • Bank Accounts
  • Manual entries
  • SEPA Mandates
  • Third-party bank accounts
  • Bank Transactions
  • Accounting
    • Accounting entries
    • Tools for Checking Your Accounting
    • Accounting
    • Financial statements
  • Fiscal years
    • Cash accounting
    • Fiscal years

Human Resources

5
  • Timesheets
  • Activities
  • Pay Slips
  • Employee Extranet
    • Leave Management
    • The employee portal card

Project management

2
  • Secure assignments using a people list
  • The responder area: view and accept my assignments

Customer Support

1
  • The Client Portal

Inventory management

4
  • Goods receipt notes
  • Delivery Notes
  • Stock movements
  • Inventory Valuation

Cash register

1
  • Cash Registers

Document management

3
  • Electronic signature
  • Templates
    • Email templates
    • Document templates

Automation

2
  • Forms
  • Workflows

Artificial intelligence

5
  • AI-assisted invoice OCR
  • Connect an External AI (MCP)
  • AI Chat
  • The AI Text Assistant
  • AI Workflows

Kafinea interface

8
  • Data Import/Export
  • Navigation
  • Lists
  • Records
  • The Layout Manager
  • Automatic saving
  • Document Lines
  • Links Between Elements

Settings

10
  • SMTP Settings
  • Access Rights
  • Numbering formats
  • Global search
  • User preferences
  • Permanent locking
  • Catalog popup filtering
  • Tax Configuration
  • The MCP Server
  • AI agents

Business Guides

2
  • Enable employees to complete their HR record independently
  • Mobilizing thousands of field workers at scale

API

7
  • REST API – Introduction
  • REST API – Entity Relationships
  • REST API – File Management
  • REST API – Requests and Querying
  • REST API – Drop-down lists (Picklist)
  • REST API – CRUD Operations
  • REST API – Authentication
  • Kafinea
  • Documentation
  • API
  • REST API – File Management
View Categories

REST API – File Management

1 minutes

Uploading a file involves several steps: create a document, upload the file, then link them.


Step 1: Get the Folder’s Webservice ID #

To create a document, you need the Webservice ID of the target folder. Use a query operation:

Curl example:

curl "https://apps.kafinea.com/YourKafinea/webservice.php?operation=query&sessionName=YOUR_SESSION_ID&query=SELECT%20id%20FROM%20DocumentFolders%20WHERE%20foldername%20LIKE%20'Default'%20LIMIT%201%20;"

Request:

SELECT id FROM DocumentFolders WHERE foldername LIKE 'Default' LIMIT 1 ;

Step 2: Create a Document Entity #

Create a Documents type entity via the create operation.

POST https://apps.kafinea.com/{instance}/webservice.php

Parameter Type Required Description
operation string yes Must be create
sessionName string yes Session ID
element JSON yes Document JSON object (see fields below)
elementType string yes Must be Documents

element object fields:

Field Type Required Description
notes_title string yes Document entity name
folderid string yes Folder Webservice ID (step 1)
filename string yes File name
filetype string yes MIME type (e.g., application/pdf)
filesize int yes File size in bytes
filestatus int yes 1 for active
filelocationtype string yes I for internal storage
assigned_user_id string yes Assigned user’s Webservice ID

Curl example:

curl -X POST https://apps.kafinea.com/YourKafinea/webservice.php \
  -d "operation=create" \
  -d "sessionName=YOUR_SESSION_ID" \
  -d 'element={"notes_title":"Mon document","folderid":"65x1","filename":"rapport.pdf","filetype":"application/pdf","filesize":12345,"filestatus":1,"filelocationtype":"I","assigned_user_id":"19x1"}' \
  -d "elementType=Documents"

Step 3: Upload the file (FileUpload) #

This operation uploads the file and links it to the created document. It can also be used alone to add images to products (replace attachmentType with Image and parentId with the product’s Webservice ID).

POST https://apps.kafinea.com/{instance}/webservice.php

Parameter Type Required Description
operation string yes Must be FileUpload
sessionName string yes Session ID
parentId string yes Document Webservice ID (step 2)
attachmentType string yes Attachment for a file, Image for an image
fileName string yes File name
fileContents string yes File content encoded in base64

Curl example:

curl -X POST https://apps.kafinea.com/YourKafinea/webservice.php \
  -d "operation=FileUpload" \
  -d "sessionName=YOUR_SESSION_ID" \
  -d "parentId=15x7890" \
  -d "attachmentType=Attachment" \
  -d "fileName=rapport.pdf" \
  -d "fileContents=$(base64 -w0 rapport.pdf)"

Retrieve a file (files_retrieve) #

Retrieves a file previously added to Kafinea. You need the WebserviceID of the file (not to be confused with that of the Document entity).

GET https://apps.kafinea.com/{instance}/webservice.php

Parameter Type Required Description
operation string yes Must be files_retrieve
sessionName string yes Session ID
id string yes File Webservice ID

Curl example:

curl "https://apps.kafinea.com/YourKafinea/webservice.php?operation=files_retrieve&sessionName=YOUR_SESSION_ID&id=28x5678"

Related references 🔗 #

  • CRUD Operations
  • Related Operations
Index
  • Step 1: Get the Folder's Webservice ID
  • Step 2: Create a Document Entity
  • Step 3: Upload the file (FileUpload)
  • Retrieve a file (files_retrieve)
  • Related references 🔗

An all-in-one software designed for SMEs. Take advantage of the automation capabilities and flexibility of our business management platform to make work easier for all your employees.

RESOURCES

Blog
Brand Guidelines
Distributors
Help
Security

Customer portal
ABOUT

About Us
Contact Us
Cookie Policy
FAQ
Legal Notice
Privacy Policy
Terms of Service

Electronic invoicing compatible solution
French Tech Grand Paris Logo
FINANCE

Accounting
Audits & KPIs
Invoicing
Purchases

MANAGEMENT

Documents
Inventory Management
Maintenance
Project Management

HR

Absence Management
Employees
Recruitment
Timesheets

CUSTOMER SERVICE

Interventions
Service Contracts
Tickets
Warranty Tracking

SALES

CRM
Points of Sale
Sales Automation
Subscriptions

© 2026 Madiasoft - Kafinea

24 rue Louis Blanc, 75010 PARIS, France

+33 1 70 06 05 41

Facebook Linkedin
kafinea logo svg
Gérer le consentement aux cookies
Pour offrir les meilleures expériences, nous utilisons des cookies pour stocker et/ou accéder aux informations des appareils. Le fait de consentir à ces cookies nous permettra de traiter des données telles que le comportement de navigation ou les ID uniques sur ce site. Le fait de ne pas consentir ou de retirer son consentement peut avoir un effet négatif sur certaines caractéristiques et fonctions.
Fonctionnel Always active
Le stockage ou l’accès technique est strictement nécessaire dans la finalité d’intérêt légitime de permettre l’utilisation d’un service spécifique explicitement demandé par l’abonné ou l’internaute, ou dans le seul but d’effectuer la transmission d’une communication sur un réseau de communications électroniques.
Préférences
Le stockage ou l’accès technique est nécessaire dans la finalité d’intérêt légitime de stocker des préférences qui ne sont pas demandées par l’abonné ou la personne utilisant le service.
Statistiques
Le stockage ou l’accès technique qui est utilisé exclusivement à des fins statistiques. Le stockage ou l’accès technique qui est utilisé exclusivement dans des finalités statistiques anonymes. En l’absence d’une assignation à comparaître, d’une conformité volontaire de la part de votre fournisseur d’accès à internet ou d’enregistrements supplémentaires provenant d’une tierce partie, les informations stockées ou extraites à cette seule fin ne peuvent généralement pas être utilisées pour vous identifier.
Marketing
Le stockage ou l’accès technique est nécessaire pour créer des profils d’internautes afin d’envoyer des publicités, ou pour suivre l’internaute sur un site web ou sur plusieurs sites web ayant des finalités marketing similaires.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Voir les préférences
  • {title}
  • {title}
  • {title}
  • Features
    • Finance
      • Accounting
      • Audits & KPIs
      • Invoicing
      • Purchases
    • Management
      • Documents
      • Interventions
      • Inventory Management
      • Project Management
    • HR
      • Absence Management
      • Employees
      • Recruitment
      • Timesheets
    • Customer Service
      • Maintenance
      • Service Contracts
      • Tickets
      • Warranty Tracking
    • Sales
      • CRM
      • Points of Sale
      • Sales Automation
      • Subscriptions
    • Cross-Features
      • API
      • Electronic Signature
      • Extranet
      • Workflows
  • Pricing
  • Login
  • Discover the demo