Skip to content

Guide · PrestaShop · 11 min read

Connect PrestaShop to Sage 100 France: orders, stock and prices without typing twice

Ivan VujnovicPublished on

In short: when your PrestaShop store and Sage 100 France don’t talk to each other, someone types every order again, and the stock shown on the site ends up wrong. A good link starts with one decision: which system has the final say for each piece of data. Then there are three ways to connect them: a ready-made connector, a custom link, or an API added to Sage 100, in other words a doorway for other software. For a program to write into Sage 100, the official route is the Objets Métiers, a toolkit provided by Sage.

The 3 ways to connect them Get in touch

PrestaShop and Sage 100 France: a two-way linkSage 100 sends the store its items, prices and stock. The store sends Sage 100 its orders and new customers. A relay program, installed next to Sage 100, moves this data and writes into Sage 100 through its Objets Métiers, following its rules. For each piece of data, one system has the final say.ONE LINK, BOTH WAYSPrestaShopthe storeSage 100the ERPItems, prices, stockOrders, customersRelay programObjets MétiersThe relay writes into Sage 100,following its rules.For each piece of data, one system has the final say.PrestaShop and Sage 100 France: a two-way linkSage 100 sends the store its items, prices and stock. The store sends Sage 100 its orders and new customers. A relay program, installed next to Sage 100, moves this data and writes into Sage 100 through its Objets Métiers, following its rules. For each piece of data, one system has the final say.ONE LINK,BOTH WAYSRelay programObjets MétiersSage 100the ERPItems,prices, stockOrders,customersPrestaShopthe storeThe relay writes into Sage 100,following its rules.For each piece of data, onesystem has the final say.

Why connect the store to Sage 100

Without a link, the store and the ERP live separate lives. Every order placed on the site is typed again into Sage 100 to be prepared and invoiced. The site’s stock is corrected by hand, and every price change is made twice.

The consequences come fast: a mistake in an address or a quantity, a product sold online that is no longer in stock, an invoice that doesn’t match the order, and time lost copying.

With a link, the order goes from the store to Sage 100 on its own, and Sage 100 sends back to the store what it knows better: prices, stock, order progress. Each keeps its role: the store sells, Sage 100 manages.

Which system has the final say, for each piece of data

The most common mistake is to let both systems change the same data. The day they disagree, nobody knows which one to believe. Before connecting anything, decide, piece by piece, which system has the final say.

Which system has the final say, and which way each piece of data flows
DataSystem with the final sayDirectionWhen
Item references and namesSage 100Sage 100 to the storeOn every creation or change
Product texts, photos and categoriesPrestaShopStay in the storeNo exchange
Prices and customer-specific pricesSage 100Sage 100 to the storeOn every change
StockSage 100Sage 100 to the storeAfter every movement, and at regular intervals
OrdersPrestaShopThe store to Sage 100On every paid order
CustomersPrestaShop for consumers, Sage 100 for business accountsBoth waysOn every order
Progress: shipping, invoice, parcel trackingSage 100Sage 100 to the storeAt every step

This table is a starting point, not a template: a store for business customers, with negotiated prices, doesn’t have the same needs as a consumer store. What matters is that your choices are written down before the first test.

Does Sage 100 have an API?

Not a ready-to-use web API: unlike many online tools, Sage 100 has no doorway on the web through which other software could read and write its data. For a program to write into it properly, to create an order or a customer, the official route is the Objets Métiers: a library provided by Sage, installed on a Windows computer that already runs Sage 100. It applies the software’s rules: document numbering, checks, stock movements.

Some vendors also sell a web API for Sage 100, installed next to it: to write, it generally goes through the same Objets Métiers. As for the Sage 100 database, you can read it to get figures out, but you should never write into it directly.

This guide is about Sage 100 France. The products sold under the Sage 100 name in Germany or in the United States are different software, with their own connection tools: their APIs don’t apply to Sage 100 France.

The 3 ways to connect PrestaShop and Sage 100

In the three methods below, writing into Sage 100 almost always goes through the Objets Métiers. What changes is who writes the program, and how closely it follows your rules.

  • A ready-made connector

    Specialist vendors sell connectors that sync items, stock, prices and orders. It is the simplest route when your catalogue and your rules are standard. The trade-off: you follow their choices, and what the connector doesn’t plan for, it doesn’t do.

  • A custom link

    A small program, installed next to Sage 100, reads and writes in Sage through the Objets Métiers, and talks to the store through PrestaShop’s API. It follows your exact rules: items with variants, customer-specific prices, several warehouses, order statuses. It is the route to choose when the standard isn’t enough.

  • An API added to Sage 100

    A web API sold by a vendor, installed next to Sage 100, acts as a gateway. It is useful when several tools must read or write in Sage: the store, a customer relationship tool (CRM), an app for sales reps. You still have to build the link with PrestaShop, monitor this extra component, and often pay a subscription.

A method to avoid: writing directly into the Sage 100 database. It is tempting, but it bypasses the software’s rules: document numbering, stock movements, accounting. The errors only show up later, and they are hard to undo. Reading the database to get figures out, yes. Writing into it, no.

The path of an order, from the store to Sage 100

With a custom link, here is what happens when a customer orders. Nobody types anything again, and the store’s stock follows Sage 100.

The path of an order, from the store to Sage 1001. The customer orders and pays online. 2. The relay picks up the order. 3. Sage 100 creates the sales order. 4. Sage 100 reserves the goods. 5. The store receives the available stock.1Thecustomerorders andpays online2The relaypicks upthe order3Sage 100creates thesales order4Sage 100reservesthe goods5The storereceives theavailablestockThe path of an order, from the store to Sage 1001. The customer orders and pays online. 2. The relay picks up the order. 3. Sage 100 creates the sales order. 4. Sage 100 reserves the goods. 5. The store receives the available stock.1The customer ordersand pays online2The relay picks upthe order3Sage 100 createsthe sales order4Sage 100 reservesthe goods5The store receivesthe available stock
The path of an order: from the store to Sage 100, then Sage 100’s stock back to the store.

The relay program runs on the Sage 100 server. It is the one that fetches new orders and sends stock to the store, over an encrypted connection (HTTPS). The store never accesses Sage 100: your server doesn’t need to be open to the internet.

Stock doesn’t need to be sent second by second. What matters is that it goes out after every order and every delivery of goods, and at regular intervals the rest of the time.

The 6 most common pitfalls

They are almost always the same. Knowing them before you start avoids most bad surprises.

References that don’t match

Each item must carry the same reference in Sage 100 and in PrestaShop. One single difference, a space or an extra zero, and the order arrives in Sage with an unknown item. Clean up before connecting, not after.

Variants on both sides

A shirt in three sizes and two colours is an item with variants (“gammes”) in Sage 100 and a product with combinations in PrestaShop. Each combination must find its exact reference in Sage, otherwise stock and orders get mixed up. And Sage 100 handles at most two variant dimensions per item, for example size and colour: a PrestaShop product with three attributes needs its own rule.

VAT and rounding

PrestaShop and Sage 100 don’t always calculate taxes the same way: per line or on the total, rounding at each step or at the end. Possible result: a one-cent gap between the order and the invoice. Set the store’s rounding accordingly, and test with real baskets.

Shipping costs and discounts

In Sage 100, shipping costs and discounts must become lines or amounts on the document, often with an item reserved for shipping costs. Decide in advance how each case is written: free delivery, promo code, basket discount.

Duplicate or lost orders

If the link stops in the middle of a transfer, the order must be neither created twice nor forgotten. The fix: keep the store’s order number on the Sage 100 document, check that it doesn’t exist before creating, and log every exchange.

The wrong stock

Which stock should go to the store: what is in the warehouse, or what is left once the orders already taken are removed? And from which warehouses? Without a rule, the store sells what is already reserved, or hides what is available.

Keeping the link secure

  • Your Sage 100 server is not open to the internet: the relay program is the one that calls the store, over HTTPS.
  • As PrestaShop’s documentation advises, the access key to the webservice (the store’s API) only has the rights the link needs: reading orders, updating stock, prices and order progress. This key is enough to connect, with no password: it must stay secret.
  • Sage 100 is backed up before the first sync, and the first tests run on a copy of Sage 100 and a copy of the store.
  • Someone is alerted when the link stops, or when an order is rejected.

The checklist before you start

  • Your Sage 100 is installed on your premises, or on a server where a program can be added: Sage 100 Online does not allow it.
  • Each item has the same reference in Sage 100 and in the store, combinations included.
  • For each piece of data, you know which system has the final say.
  • The stock to send is defined: which warehouses, with or without pending orders.
  • Shipping costs, discounts and VAT rounding have a written rule.
  • Business customers and their prices are ready in Sage 100.
  • A copy of Sage 100 and a copy of the store are used for tests.
  • One person is alerted if the link stops.

Would you rather hand it over?

I have already built a module that connects a PrestaShop store to Sage 100 both ways: every order placed on the site reaches Sage 100 without being typed again. I start by looking at your Sage 100, your store and your rules, then I tell you whether an off-the-shelf connector is enough, or whether a custom link is worth it. And you talk directly to the person who writes the code.

Get in touch See my PrestaShop services

Reply within one business day

Frequently asked questions

Do I have to buy a connector?

No. A connector fits when your needs are standard, a custom link when your rules are specific. In both cases, ask how the link writes into Sage 100: through the Objets Métiers, the official route, never directly into the database.

How do I choose a PrestaShop Sage 100 connector?

Test it with your real cases before you commit: your items with variants, your customer-specific prices, your warehouses, an order with shipping costs and a promo code. And ask what happens when the link stops: orders must resume without duplicates.

Can stock update in real time?

Almost: the link can send stock after every order and every delivery of goods, and at regular intervals the rest of the time. The real issue lies elsewhere: choosing the right stock and the right warehouses.

Is there an API for Sage 100?

No ready-to-use web API for Sage 100 France. You go through the Objets Métiers, Sage’s official library, or through an API sold by a vendor, which generally relies on these same Objets Métiers to write.

Our Sage 100 is in our offices, or online: is that a problem?

In your offices, or on a server where a program can be installed, no: the relay program runs next to Sage 100 and calls the store over HTTPS, without opening your server to the internet. Sage 100 Online, however, hosted by Sage on a shared server, gives no access to the Objets Métiers: you first need to talk to Sage about changing editions.

Can we keep different prices for different customers?

Yes. If your customer or category prices are in Sage 100, the link carries them into the store: each business customer sees their own prices once logged in.

What happens if the link stops?

Orders stay recorded in the store. A well-built link picks them up when it restarts, without duplicates, and alerts someone as soon as it stops. Plan for it from the start, not after the first breakdown.

What about WooCommerce?

The principle is the same: Sage 100 has the final say on stock and prices, the store sends the orders, and the Objets Métiers write into Sage 100. Only the way of talking to the store changes: WooCommerce’s API instead of PrestaShop’s. To choose between the two, see WooCommerce or PrestaShop.

What about Sage 50?

Sage 50 is different software: this guide is about Sage 100. The starting rules remain the same: one system with the final say for each piece of data, identical item references, a rule for VAT.

Sources

Keep reading

Contact

Let’s talk about your project

A few lines are enough, even if your idea isn’t fully formed yet. I read every message and reply personally.

Reply within one business day

Prefer email?

contact@ivanvujno.com


    Your answers are only used to reply to you. Privacy policy