Skip to content

SAP Business One · Service Layer

SAP Business One integration with e-commerce, marketplaces and third-party systems

Integrating SAP Business One means orders, stock, prices, customers, invoices and payments moving between SAP and your other systems without anyone re-keying them. Codai builds these integrations on the Service Layer (or the DI API when needed), with a queue, reprocessing, a log per record and alerts when something fails. We work for companies and for SAP Business One partners that need integration work done, and the test is always the same: the integration has to sell more or cost less than the manual work it replaces.

  • Service Layer
  • Webhooks and REST APIs
  • Queue and retries
  • WhatsApp Business
  • Carriers

Who it is for

Companies that sell or operate across more than one system and use SAP Business One as the backbone for orders, inventory and finance.

  • Brands selling through online stores or marketplaces that still key orders into SAP by hand.
  • Distributors selling the same stock across several channels, sales reps and counters.
  • Operations that quote shipping and track deliveries on each carrier's website.
  • SAP Business One partners whose customers need an integration the partner does not have the team to build.

Problems we solve

The cost is almost always in re-keying data and in the lag between one system and the next.

Orders entered twice

The order lands in the store and someone re-types it into SAP. Invoicing slows down and item, price and address errors creep in.

Stale stock on the channel

The channel sells what is gone, leading to cancellations and a worse marketplace rating, or hides what is still available.

Prices and master data out of sync

The SAP price list changes and the channel keeps the old one; the same customer is recorded differently in each place.

Tracking outside the flow

Customers ask where their order is and someone has to check the carrier's site to answer.

Integrations that fail silently

An old integration stops working and nobody notices until a customer complains.

What we deliver

An integration service between SAP and each system, with clear ownership of every piece of data, a stateful queue and a dashboard showing what went through, what failed and why.

Most common flows
FlowDirectionTypical trigger
Sales orderChannel → SAPChannel webhook or periodic polling
Stock by warehouseSAP → channelScheduled and after each movement
PricesSAP → channelWhen the price list changes
CustomersChannel → SAPWith the first order
Invoice, status and trackingSAP → channel and customerAfter invoicing and shipping
Incoming paymentsBank or gateway → SAPScheduled reconciliation

A stateful queue, not a direct wire

Every message enters a queue and is recorded as received, processed or failed. An idempotency key stops the same order from being created twice, and a failed order can be reprocessed once fixed, without redoing everything else.

The Service Layer as the front door

A dedicated technical user, reused sessions and automatic reconnection. Batches go in $batch requests, which group several operations into a single call. Everything is written through SAP's own rules, so your validations still apply.

The DI API comes in only when your SAP version has no Service Layer or does not expose the object needed. The comparison is on our SAP Business One consulting page.

E-commerce and marketplaces

We integrate through each platform's API (Shopify, WooCommerce, VTEX, Amazon and others) or through the hub you already use. The warehouse, price list and stock reservation rule per channel are configurable, without touching code.

Tax documents and e-invoicing

Invoice issuing, including e-invoicing where it is mandatory, stays in the tax flow you already run in SAP. The integration reads the result (number, key, document file) and sends it back to the channel and the customer.

WhatsApp

Through the official WhatsApp Business API: order status, invoice copies, delivery notices and internal approvals, with data coming from SAP.

Carriers

Rates, labels and tracking through the carrier's or aggregator's API. The tracking number goes back to the delivery document in SAP, in a user-defined field.

Monitoring and tests

A queue dashboard, email or WhatsApp alerts on failure and a log with each message's payload. Tests cover the errors that really happen: unknown item, blocked customer, out of stock, SAP offline.

SAP has its own integration tool, the Integration Framework (B1if). If you already have scenarios there, we work on top of them. For new flows we usually prefer versioned code, which is easier to test, review and hand over to another team.

How we work

We start with one flow, almost always the sales order, and only expand once it runs without intervention.

  1. Mapping

    short: days to a few weeks

    Which systems, which data, in which direction, and which system is the source of truth for each (stock in SAP, product photos in the store, for example). We leave with the field list, the rules and the expected gain.

  2. Build on a test database

    weeks, depending on the number of flows

    The integration runs against a copy of SAP and the channel's sandbox, when one exists.

  3. Pilot

    one flow, closely watched

    The first flow goes to production under close monitoring. We fix whatever real data reveals.

  4. Expansion and operation

    ongoing

    The remaining flows go live one by one. After that we keep monitoring, fixing and tracking changes in the channels' APIs, which happen without notice.

Frequently asked questions

Should we integrate through the Service Layer or the DI API?

Through the Service Layer, whenever your SAP version has it and exposes what is needed. It runs on the server, speaks HTTP and requires nothing installed on client machines. The DI API is for environments without a Service Layer or for objects your version does not expose there yet.

Is the integration real-time?

It depends on the flow and the channel. When the channel sends a webhook, the order reaches SAP within seconds. When it does not, we poll at short intervals. Stock usually combines a scheduled push with a push right after each movement.

What happens if SAP or the store goes down?

Messages wait in the queue and are processed when the system is back. Nothing is lost, and the dashboard shows what is pending.

Do we need additional SAP licenses to integrate?

The integration uses an SAP user, and licensing for that user follows SAP's rules for your contract. Confirm with your SAP partner before the project; we raise it during mapping.

We are an SAP partner. Can you build the integration for our customer?

Yes. You keep the customer relationship; we build, test and document to your standards, and handle operation if you want us to. Branding and code ownership are agreed in the contract.

We already have an integration that keeps breaking. Can you take it over?

We start with an audit: logs, duplicated or lost orders, places with no error handling. That produces a recommendation to fix or rewrite, with the cost of each path.

Which systems need to talk to your SAP?

Tell us which ones and how orders come in today. We will reply with the technical path and what we need to start.