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

Kafinea

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

API

16
  • REST API – Bulk import (upsert)
  • REST API – Authentication
  • REST API – Retrieve a Document’s PDF
  • REST API – File Management
  • REST API – Entity Relationships
  • REST API – Introduction
  • REST API – Taxes, Tax Regions, and Territorial Rules
  • REST API – Requests and Querying
  • REST API – Refresh an online store order
  • REST API – Bulk deletion (trash)
  • REST API – Cost Accounting
  • REST API – Product Kits
  • REST API – Generic and Specific Products
  • REST API – Action links
  • REST API – Approvals
  • REST API – Full Reference (OpenAPI)

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
    • Invoicing Article Consumption
    • Recurring invoicing
  • 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
    • Cash accounting
    • Accounting entries
    • Tools for Checking Your Accounting
    • Accounting
    • Financial statements
    • 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

1
  • Electronic signature

Automation

2
  • Forms
  • Workflows

Templates

2
  • Email templates
  • Document templates

Artificial intelligence

4
  • AI Workflows
  • AI Chat
  • AI Text Assistant
  • Connect ChatGPT, Claude, or Gemini to Kafinea (MCP)

Kafinea interface

9
  • Automatic saving
  • Data Import/Export
  • Navigation
  • Records
  • Lists
  • The Layout Manager
  • Links Between Elements
  • Document Lines
  • List views: Kanban, Cards, Calendar, Planning, Gantt, Geographic map, and Analysis

Settings

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

Business Guides

2
  • Enable employees to complete their HR record independently
  • Mobilizing thousands of field workers at scale
  • Kafinea
  • Documentation
  • API
  • REST API – Refresh an online store order
View Categories

REST API – Refresh an online store order

3 minutes

0:00 / 3:16
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

This page describes the operation that re-runs the import of a document already downloaded from an online
store
. It is the remote, batch equivalent of the “Refresh from store”
button located on the document.

Operation Method Description
onlinestore_refresh_order POST Re-run the import of a batch of documents from their store

Restricted to administrators. This operation rewrites sales management documents from
an external source.


When to use it #

A document imported from a store reflects the store at the time of import. If a store
setting has changed since then (customer recognition, customer creation, a shipping fee
rule, an added item or payment method mapping), the document does not retroactively benefit from the new
setting. Refreshing re-runs it with the current settings, subject to the safeguards below.

The most common case: orders linked to the store’s fallback customer because
their customer was not yet recognized. You complete the mappings (see
Bulk Import) or you authorize customer creation on the store
record, then you refresh the orders concerned: each one is re-assigned to its customer.

The same batch allows you to set the payment method after completing the
Payment mappings on the store record. The method is retrieved with the current
mapping. If this mapping remains to be completed, the refresh proceeds and keeps the method already
present on the document. Payment terms are not modified by this mapping.

What the operation guarantees #

  • It updates the existing document, without creating a second document.
  • It applies the standard checks for locked documents and linked records. A document whose
    lines are included in an invoice, a delivery note, or a credit note is not refreshed: errors
    identifies this document, and the requested document remains unchanged.
  • It recalculates the tax region when provided by the store. If no region applies
    anymore with the current configuration, the document no longer carries one and the VAT to verify notice indicates this.
  • A rejection does not prevent the processing of other documents. The response indicates the document and the reason.
  • A new run remains possible for eligible documents, with current data and
    settings. With identical source and settings, it maintains the same result.

Before launching a batch, review the data, history, and linked records of the documents concerned.
Refreshing may overwrite adjustments made in Kafinea with store data;
exclude documents to be kept from the submitted list. A VAT to verify notice or a
Store amount discrepancy remains informational and does not, on its own, block invoicing.


Refresh a batch of documents #

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

Parameter Type Required Description
operation string yes onlinestore_refresh_order
sessionName string yes Session ID obtained upon authentication
ids string yes JSON array of document Webservice IDs, up to 100 maximum

The originating store and order reference are read from the document: you do not need
to provide anything else, and a document that does not originate from a store is flagged as such.

curl -X POST https://apps.kafinea.com/YourKafinea/webservice.php \
  -d "operation=onlinestore_refresh_order" \
  -d "sessionName=YOUR_SESSION_ID" \
  -d 'ids=["5x700001","5x700002"]'

Response example (all IDs on this page are fictitious):

{
  "success": true,
  "result": {
    "processed": 2,
    "refreshed": 2,
    "documents": [
      {"index": 0, "id": "5x700001", "module": "SalesOrder", "externalRef": "DEMO-701", "storeId": 900001},
      {"index": 1, "id": "5x700002", "module": "SalesOrder", "externalRef": "DEMO-702", "storeId": 900001}
    ],
    "errors": []
  }
}

index is the position of the document in the submitted array: this allows you to find the
line to correct when errors is not empty.


Related references 🔗 #

  • Bulk import (identifier mapping)
  • Complete API reference
  • Queries and search
  • Document tax region
Index
  • When to use it
  • What the operation guarantees
  • Refresh a batch of documents
  • 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
      • Purchases
      • Audits & KPIs
      • Accounting
      • Invoicing
    • Management
      • Documents
      • Interventions
      • Project Management
      • Inventory Management
    • HR
      • Employees
      • Timesheets
      • Absence Management
      • Recruitment
    • Customer Service
      • Service Contracts
      • Warranty Tracking
      • Maintenance
      • Tickets
    • Sales
      • Subscriptions
      • Sales Automation
      • CRM
      • Points of Sale
    • Cross-Features
      • API
      • Extranet
      • Electronic Signature
      • Workflows
  • Use Cases
  • Pricing
  • Login
  • Discover the demo