Contact us
Back to knowledgebase

Order Management Systems

An order management system (OMS) is the merchant’s ledger of customer orders. It records what he has agreed to deliver, to whom, at what price, and by what date. As goods ship or come back, the ledger keeps track of what he still owes. When several sales channels draw on the same stock, he needs all their outstanding orders to know what he can promise the next customer.

The CRUD design

Order management systems tend to share a simple architecture. A front end, often written in TypeScript, displays the forms. An application server handles requests, and a relational database such as PostgreSQL keeps the records. An identity service can handle sign-in and a carrier can supply the shipping labels. Even the ability to record an order and reserve stock in one transaction comes with the database. The merchant still has to decide which orders qualify for a reservation.1

CRUD stands for create, read, update, delete. At the order desk, a clerk opens a draft, looks it up by customer, changes the delivery address, or discards it. One database row holds the terms common to the order. Each item gets a line of its own, with the order number, product, quantity, and price. The warehouse can look up unshipped lines by product while customer service looks up the same lines by order number.

A small development team could build an order book this way long before coding agents appeared. A narrow OMS is a good candidate for vibe coding today. A clerk can give a coding agent a sample marketplace file, describe the screens and rules he needs, and try the result against orders he knows well.2

One revealing test is to reduce an accepted order from six units to five. The agent can overwrite the six, or it can record one cancellation and release the corresponding reservation. Both versions can show five on the screen. The cancellation entry preserves the original commitment and explains how the sixth unit came back on sale. Nothing in the layout of the form tells the agent which behavior the merchant intended.

Order lines, shipments, and returns

A web store is designed to turn a visit into a sale. Its operator can judge a change to the checkout by counting how many visitors complete their purchases. He learns little from that count about whether a sale at the till just claimed the same stock. The order desk needs the commitments from both channels. It also needs the price each customer accepted. A multichannel OMS may publish a new price to every storefront at once, but existing orders must retain the price agreed at checkout.

Receiving an order and agreeing to fill it are separate acts, a distinction that matters when a customer has ordered several items. The GS1 purchase order response lets a supplier acknowledge receipt of the whole order, then accept some lines and decline others.3

A customer orders six desk lamps for an office. Three ship, he cancels one, and two remain on backorder. The order still shows six on the original line. A clerk can see how many he has left to send by deducting the shipment and the cancellation. A single “shipped” flag would leave him guessing.

Of six lamps ordered, three shipped, one was canceled, and two are still due. When one shipped lamp comes back damaged, a refund leaves two due. An exchange makes it three.

One lamp comes back with a dented shade. The receiving clerk has the same goods in hand whether the customer asked for a refund or an exchange. With a refund, the merchant still owes two lamps. With an exchange, he owes three. Inspection will tell the clerk what to do with the dented lamp. He needs the terms of the return to know whether to send another.

Reservations across sales channels

At 10:00 a retailer’s web store sells his last lamp and the OMS reserves it for that order. A marketplace is still displaying the availability figure it received a few minutes ago. At 10:01 it accepts an order of its own. There is one lamp on the shelf, one reservation in the OMS, and a customer on each channel expecting the goods.4

The web store reserves the lamp at 10:00. The marketplace accepts a second order at 10:01. A web cancellation requested at 10:02 reaches the OMS at 10:05. The lamp stays reserved for the first buyer until then.

At 10:02 the web buyer asks to cancel. The request reaches the OMS at 10:05, while the lamp is still in its bin. The merchant accepts the cancellation and transfers the reservation to the marketplace order. If the parcel had already left, he could refund the web buyer immediately and still have nothing to send the marketplace buyer.

A reservation belongs to an order line. If the cancellation is delivered twice, the second copy finds the web order’s hold already released. A routine that simply adds one to the available balance each time would put the marketplace buyer’s lamp back on sale. The same principle applies to incoming orders. The channel, order number, and line identify the sale. A message identifier or revision number lets the importer distinguish a retry from a subsequent amendment to that line.

Updating the marketplace more often gives it less time to sell from an old stock figure. A binding reservation at checkout closes that gap if both channels support it. Otherwise, the retailer can allot the last unit to one channel alone, or keep it on offer through both and cover an occasional shortfall. If the web buyer is coming at noon and the marketplace buyer expects delivery on Friday, a supplier willing to ship direct by Friday could still satisfy both customers. If both need the lamp at noon, listing it on just one channel spares the retailer a promise he cannot keep.

Stock availability and delivery promises

A quantity available to promise is meaningful for a place and a date. A lamp in the central warehouse might be available for Friday delivery and unavailable for pickup at the branch this afternoon. For a lamp due from the supplier on Thursday, a Friday promise also depends on receiving, inspection, and the last carrier collection. An accurate on-hand balance settles only part of the question.

Keep the date the customer requested, the date the merchant first promised, and the date of any revised agreement. A customer may willingly accept Tuesday after the merchant misses Friday. Overwrite Friday with Tuesday and the next service report can credit the merchant with an on-time delivery. The same order line may also carry more than one commitment. Two lamps due today and four next week give the warehouse a job that “six due next week” fails to describe.

Fulfillment and order routing

An online buyer wants one lamp. Shipping it from the local branch costs $6, against $10 from the central warehouse for the same delivery date. The warehouse has plenty of lamps. The branch has one left and no more due before the weekend.

Using the branch saves $4 in freight. If a walk-in sale lost before replenishment would have earned $40 in contribution, that saving pays for a 10% chance of losing the sale. Below 10%, ship from the branch. At a one-in-four chance, the expected loss is $10. Paying the extra $4 to ship from the warehouse leaves the merchant $6 ahead on average.

Branch freight is six dollars and a lost store sale costs forty dollars in margin. The warehouse costs ten dollars. The two choices break even at a ten percent chance of losing the sale. At twenty-five percent the warehouse saves six dollars on average.

The probability in this calculation is that the merchant will lose a sale. A shopper who finds the shelf empty and orders the lamp for home delivery still buys it. Counting every such visit as $40 of lost contribution overvalues the last lamp. Conversely, if the next inbound shipment slips a week, keeping the lamp at the branch may become profitable with no change in either freight rate.

Suppose the buyer also orders a shade that only the central warehouse stocks. The warehouse will send a parcel anyway. What does it cost to put the lamp in the same box? Comparing the two single-item freight rates could leave the merchant paying for a second shipment. Choosing a shipping site for each line of an order is one of the tasks known as distributed order management.

How an order ledger grows into a suite

The paper order book told a clerk what had been sold, what had gone out, and what remained to deliver. Several kinds of software grew into that job. An ERP could start from its stock ledger, a CRM from an accepted quotation. The specialist OMS started from the sales order.5

Online marketplaces made the case for a specialist especially clear. A merchant with a web store and a marketplace account could pay a clerk to copy orders from both and update the quantities on sale. An application that did those two jobs through the channels’ APIs could earn its keep without displacing the merchant’s accounting system.

The first merchant asks for a parcel label beside the order. That brings parcel weights and carrier services into the database. Another wants to credit a return against the parcel, which adds inspection results and credit notes. A third wants to order replacements for the goods written off. The OMS vendor now sells a purchasing module. An ERP vendor arrives at much the same product by adding marketplace orders to a stock ledger.

Existing accounts are the natural buyers for each addition. They can use the new module without importing years of orders into a separate application. Each addition also makes the next change harder. A revision to partial shipments has to work with labels already printed, exchanges in progress, and refunds issued under the old rules. Dropping an obscure feature would simplify the product for the vendor’s engineers, but the one retailer who relies on it has reason to leave. The other retailers will scarcely notice it has gone.

A merchant weighing the annual license fee against an in-house replacement need only price the workflows he actually uses. A retailer who grants refunds at the counter can leave out the repair-depot module another customer bought. What he must carry over is every credit he still owes and every return he expects to receive. The cost of recovering those obligations from old records can easily exceed the cost of writing the new returns screen.

Order management in the software stack

An OMS is principally a system of records. An ERP or a commerce platform can already fulfill that role. When the ERP and the web store can each release the same reservation independently, a third copy of the order book does little good. A dedicated OMS earns its place when the merchant gives it authority over the reservations that the other systems must honor.

A system of reports can establish how long the marketplace order went without stock. A system of intelligence can calculate whether to send the warehouse lamp or the branch lamp. Adding a “preferred warehouse” field to the order form gives a clerk somewhere to enter that decision. The field contributes nothing toward estimating the sale the branch might lose. Once a site has been chosen, the OMS still has to secure the reservation. Somebody may have bought the lamp at the till since the calculation ran.6

In a Lokad deployment, the web store may supply the customer’s original requested date, the OMS the successive promises, and the warehouse the quantities dispatched. A shipment extract for the office order above would show three lamps. The other three include one the customer canceled and two he is still waiting for. Recovering that distinction requires the order lines and their amendments, wherever the merchant keeps them.7

References


  1. CRUD Business Apps describes how groups of relational tables give rise to entities, screens, and workflows in enterprise software. ↩︎

  2. Your ERP Is Too Expensive discusses open-source databases, coding agents, and replacing a transactional application one function at a time. ↩︎

  3. GS1, EANCOM 2002 S4, Part II, “Purchase order response message (ORDRSP),” introduction. The standard distinguishes acknowledgment of receipt from acceptance and permits a response at the level of individual goods. ↩︎

  4. Perpetual Inventory explains how receipts, reservations, and dispatches produce different stock balances for taking an order and releasing a shipment. ↩︎

  5. For the origins of specialist ledgers and the incentives to keep rarely used features, see Introduction to Supply Chain, §5.3.1, “The origin of enterprise software” and §5.3.3, “Technological trajectory”. ↩︎

  6. See Introduction to Supply Chain, §5.2, “Classes of enterprise software”, for the distinction between recording a transaction and calculating a decision. ↩︎

  7. The IT FAQ describes how Lokad works with records from several applications while retaining their local definitions. ↩︎