Commerce engineering

Checkout is the warehouse contract

Shipping promises, tax and the last unit of stock are decided before the pay button, from ERP data, not from the theme. Each value the buyer accepts at checkout is work the warehouse and finance have to deliver: a unit that exists, a dispatch date the 3PL can meet, a tax amount the invoice will match. Take those values from the ERP and the 3PL, and test them like code.

Intelligize Digital4 min readAll notes

A warehouse packer sealing a parcel at a packing bench

Key points

  • When checkout computes those values from theme settings, an app's own table or a number typed into a banner, the order disagrees with the ERP from the moment it is placed.
  • The stock a checkout should trust is available-to-promise: on hand, minus units reserved for open orders, minus the safety stock you will not sell.
  • Take cut-offs and serviceable areas from the 3PL or carrier data, refresh them when they change, and compute the date per location.
  • If the store rounds tax per line and the ERP rounds on the invoice total, a three-line order can differ by a paisa.
On this page

What the buyer agrees to

At the pay button the buyer accepts a set of values: the items and quantities, the price, the delivery method and date, the address, the tax and, for trade accounts, the payment terms. Each value becomes work for someone. The warehouse picks the items and meets the dispatch time, the carrier delivers on the promised day, and finance issues an invoice whose tax matches what was charged.

When checkout computes those values from theme settings, an app’s own table or a number typed into a banner, the order disagrees with the ERP from the moment it is placed. Someone then corrects it by hand, after the payment has gone through.

The last unit of stock

The stock a checkout should trust is available-to-promise: on hand, minus units reserved for open orders, minus the safety stock you will not sell. Most platforms reduce inventory when the order is placed. Two buyers can have the last unit in their carts at once, and one of them gets an apology. The figure is only as fresh as the ERP’s sales orders. If orders still reach the ERP by hand the next morning, as in the morning re-key, available-to-promise is a day old by the time checkout reads it.

Feed the store’s number from the ERP on every change. Sell the safety stock only on purpose. Decide in advance what happens to the second order, either a backorder with a date or a cancellation with a message.

With more than one warehouse, checkout also decides which location ships. That choice changes the dispatch date and the carrier, and in India it can change the tax.

Delivery dates

A delivery date is a calculation. It takes the dispatch cut-off at the shipping location, the handling time, the carrier’s transit time to that pincode or postcode, and the days the warehouse is closed. A banner that says “ships in 24 hours” stays up after the 3PL moves its cut-off. Take cut-offs and serviceable areas from the 3PL or carrier data, refresh them when they change, and compute the date per location.

The same data decides payment options. Cash on delivery is often available only on some pincodes and below an order value set by the courier. Checkout should read that list from the courier or the 3PL. A copy pasted into an app’s settings goes stale the first time the courier changes it.

Tax at checkout

In India the place of supply decides the tax type. A Delhi seller shipping within Delhi charges CGST and SGST. The same seller shipping to Bengaluru charges IGST. Each item needs its HSN code and rate from the item master. A trade buyer who wants input tax credit needs their GSTIN and legal name on the invoice, so checkout has to collect them and pass them to the sales order. VAT in the UK and sales tax in the US raise the same questions under different rules.

Rounding causes smaller, steadier errors. If the store rounds tax per line and the ERP rounds on the invoice total, a three-line order can differ by a paisa. Pick one rule and use it in both systems.

An illustrative order

An invented example. A trade buyer in Bengaluru orders three items from a Delhi store. The theme was set up with one tax rate, prices tax-inclusive, and no GSTIN field. Checkout charges the right total, by luck. The order carries no GSTIN and no split between tax types, so finance reissues the invoice by hand and the buyer waits for it before claiming credit. Checkout also promised delivery in two days, while the 3PL’s transit table for that route says four.

Where the theme fits

The theme presents the values, and the rules belong in the platform’s checkout logic and in the integration that feeds it. On Shopify the theme does not run inside checkout at all. Delivery, discount and payment rules there are set in the admin or built as Functions and apps. On WooCommerce and Adobe Commerce they are server-side code and configuration. On every platform the inputs should come from the ERP and the 3PL.

Test checkout like code. Keep a set of test addresses and baskets, one per tax case, serviceability case and stock case, and run them after every app install and every change to shipping or tax settings. Compare each result with what the ERP would have produced for the same order.

Feeding stock, tax data and delivery tables from the ERP is ERP integration work. The checkout itself, with its fields and apps, is part of eCommerce development, and the drop-off between cart and payment is what conversion optimisation measures.

Checklist for checkout data

6 checks
  • Stock at checkout is available-to-promise from the ERP, updated on change.
  • Dispatch cut-offs and serviceable pincodes come from the 3PL.
  • Tax class, rate and HSN code come from the item master.
  • Store and ERP round tax the same way. Test it with three-line orders.
  • Trade fields such as GSTIN and PO number reach the sales order.
  • Every failed check alerts a named person.

Send us one order that finance had to correct by hand.

We will trace each value back to where checkout took it from.

Get a quote. One form, one real reply.

Tell us what you are building or fixing. An engineer reads every request and replies within one business day, with a fixed scope, price and dates once we have talked.

Direct
[email protected]
Response time
Within one business day
Cost of asking
Nothing. The first 30-minute audit is free.

An engineer replies, not a form queue.